Commit b81e23fe by gao_yingdong

路由跳转修改

parent 96d24af8
......@@ -174,7 +174,7 @@ export default {
path: "zdryGl",
});
} else if (item.id == "queryYpzl") {
this.$router.push({
this.$router.pushToTab({
path: "/wfzdzczl",
});
} else {
......
......@@ -515,6 +515,14 @@ const menuLayouts = [
component: () => import("@/views/shse/fzth/fzthxz.vue")
},
{
path: "/fzth",
name: "fzth",
meta: {
title: '犯罪团伙信息'
},
component: () => import("@/views/shse/fzth/fzth.vue")
},
{
path: "/cf",
name: "cf",
meta: {
......
......@@ -822,7 +822,7 @@ export default {
},
methods: {
add() {
this.$router.push({
this.$router.pushToTab({
path: "/queryAdd",
});
},
......@@ -895,7 +895,7 @@ export default {
}
},
toJj(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/jjhcyp",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -903,7 +903,7 @@ export default {
});
},
toFp(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/fphcyp",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -987,7 +987,7 @@ export default {
});
},
edit(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/queryXg",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -995,7 +995,7 @@ export default {
});
},
toInfor(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/detailHbyp",
query: {
xxzjbh: scope.xxzjbh,
......@@ -1037,7 +1037,7 @@ export default {
if (res.code == 200 && res.success) {
this.$message.success("导入成功");
this.revokeVisiable = false;
this.$router.push("queryZdjyhd");
this.$router.pushToTab("queryZdjyhd");
sessionStorage.setItem("routerPath", "queryZdjyhd");
setTimeout(() => {
this.$bus.$emit("routerPath");
......@@ -1058,7 +1058,7 @@ export default {
}
},
toCbyp(scoped) {
this.$router.push({
this.$router.pushToTab({
path: "/bshcb",
});
},
......
......@@ -203,7 +203,7 @@ export default {
});
},
toInfor(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/detailHbyp",
query: {
xxzjbh: scope.xxzjbh,
......
......@@ -468,7 +468,7 @@ export default {
},
methods: {
add() {
this.$router.push({
this.$router.pushToTab({
path: "/queryAdd",
});
},
......@@ -641,7 +641,7 @@ export default {
});
},
toInfor(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/detailHbyp",
query: {
xxzjbh: scope.xxzjbh,
......@@ -650,7 +650,7 @@ export default {
},
tohqhcp(scope) {
debugger;
this.$router.push({
this.$router.pushToTab({
path: "/detailHcypcp",
query: {
xxzjbh: scope.row.xxzjbh,
......
......@@ -184,7 +184,7 @@ export default {
},
methods: {
add() {
this.$router.push({
this.$router.pushToTab({
path: "/queryAdd",
});
},
......@@ -257,7 +257,7 @@ export default {
}
},
toJj(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/jjhcyp",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -265,7 +265,7 @@ export default {
});
},
toFp(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/fphcyp",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -277,7 +277,7 @@ export default {
this.dialogVisibleFk = true;
},
toSq(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/queryspAdd",
query: {
xxzjbh:scope.row.xxzjbh
......@@ -355,7 +355,7 @@ export default {
});
},
edit(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/queryXg",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -363,7 +363,7 @@ export default {
});
},
toInfor(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/detailHbyp",
query: {
xxzjbh: scope.xxzjbh,
......@@ -372,7 +372,7 @@ export default {
},
tohqhcp(scope) {
debugger
this.$router.push({
this.$router.pushToTab({
path: "/detailHcypcp",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -414,7 +414,7 @@ export default {
if (res.code == 200 && res.success) {
this.$message.success("导入成功");
this.revokeVisiable = false;
this.$router.push("queryZdjyhd");
this.$router.pushToTab("queryZdjyhd");
sessionStorage.setItem("routerPath", "queryZdjyhd");
setTimeout(() => {
this.$bus.$emit("routerPath");
......
......@@ -373,7 +373,7 @@ export default {
},
methods: {
add() {
this.$router.push({
this.$router.pushToTab({
path: "/queryAdd",
});
},
......@@ -446,7 +446,7 @@ export default {
}
},
toJj(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/jjhcyp",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -454,7 +454,7 @@ export default {
});
},
toFp(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/fphcyp",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -539,7 +539,7 @@ export default {
});
},
edit(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/queryXg",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -547,7 +547,7 @@ export default {
});
},
toInfor(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/detailHbyp",
query: {
xxzjbh: scope.xxzjbh,
......@@ -556,7 +556,7 @@ export default {
},
tohqhcp(scope) {
debugger;
this.$router.push({
this.$router.pushToTab({
path: "/detailHcypcp",
query: {
xxzjbh: scope.row.xxzjbh,
......@@ -598,7 +598,7 @@ export default {
if (res.code == 200 && res.success) {
this.$message.success("导入成功");
this.revokeVisiable = false;
this.$router.push("queryZdjyhd");
this.$router.pushToTab("queryZdjyhd");
sessionStorage.setItem("routerPath", "queryZdjyhd");
setTimeout(() => {
this.$bus.$emit("routerPath");
......
......@@ -11,6 +11,7 @@
ref="rightContent"
>
<template #listOperation="scope">
<span class="hbyps" @click="toAdd(scope.scope)">新增</span>
<span class="hbyps" @click="toHb(scope.scope)">合并</span>
</template>
<template #btnGroup="scope">
......@@ -29,7 +30,7 @@
v-for="(columnTitle, index) in xsTableList"
:key="index"
:label="columnTitle.label"
:width="columnTitle.width"
align="center"
>
<template slot-scope="scope">
<div style="color: #555555">
......@@ -37,13 +38,13 @@
</div>
</template>
</el-table-column>
<el-table-column label="是否主团伙">
<el-table-column label="是否主团伙" align="center" width="100">
<template slot-scope="scope">
<el-radio-group v-model="scope.row.sfzth">
<!-- :disabled="scope.row.disabled" -->
<el-radio :label="1"></el-radio>
<el-radio :label="0"></el-radio>
</el-radio-group>
<el-radio
v-model="radio"
:label="scope.$index"
@change.native="getRadio(scope.row, scope.$index)"
></el-radio>
</template>
</el-table-column>
</el-table>
......@@ -69,6 +70,7 @@ export default {
},
data() {
return {
radio: false,
xsTableList: [
{
label: "团伙编号",
......@@ -85,11 +87,6 @@ export default {
width: "145",
prop: "thtm",
},
// {
// label: "是否主团伙",
// prop: "sfzth",
// width: "200",
// },
],
sfzth: "",
dialogVisible: false,
......@@ -166,13 +163,15 @@ export default {
},
fileArr: [],
zdXxzjbh: "",
indexRadio: 0,
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
toCf(scope) {
getRadio(scope, index) {
this.indexRadio = index;
debugger;
},
selectionChange(row) {
......@@ -197,10 +196,16 @@ export default {
},
// 确认合并
handleHb() {
debugger;
let params = new FormData();
this.xsShuju.forEach((item, index) => {
params.append("th" + "[" + index + "]" + ".thbh", item.thbh);
params.append("th" + "[" + index + "]" + ".sfzth", item.sfzth);
params.append(
"th" + "[" + index + "]" + ".sfzth",
index == this.indexRadio ? "1" : "0"
);
console.log(index == this.indexRadio ? "1" : "0");
});
hbThajxyr(params).then((res) => {
if (res.code == 200) {
......@@ -215,13 +220,27 @@ export default {
},
thxq(scope) {
debugger;
this.$router.push({
this.$router.pushToTab({
path: "/xq",
query: {
thbh: scope.row.thbh,
},
});
},
toAdd() {
this.$router.pushToTab({
path: "/fzth",
});
},
},
mounted() {},
watch: {
xsShuju: {
handler(val, old) {
debugger;
},
},
deep: true,
},
};
</script>
......@@ -273,6 +292,11 @@ export default {
}
</style>
<style scoped lang="scss">
/deep/.el-radio__label {
font-size: 14px;
padding-left: 10px;
display: none;
}
.el-form-item {
margin: 15px 0 20px 0;
}
......
......@@ -87,11 +87,11 @@ export default {
prop: "ajmc",
width: "200",
},
{
label: "接警编号",
prop: "jjbh",
width: "200",
},
// {
// label: "接警编号",
// prop: "jjbh",
// width: "200",
// },
{
label: "发现时间",
prop: "fxasjsj",
......
......@@ -171,7 +171,7 @@ export default {
},
methods: {
toInfor(obj) {
this.$router.push({
this.$router.pushToTab({
path:'/xsxq',
query: {
shsexsbh: obj.shsexsbh
......@@ -194,7 +194,7 @@ export default {
});
},
add() {
this.$router.push({
this.$router.pushToTab({
path: "/xsxxxz",
});
},
......@@ -225,7 +225,7 @@ export default {
});
},
toXg(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/xsxxxz",
query: {
shsexsbh: scope.row.shsexsbh,
......@@ -237,7 +237,7 @@ export default {
this.slect = row;
},
toXf() {
this.$router.push({
this.$router.pushToTab({
path: '/wfzdzczl'
})
},
......
......@@ -23,6 +23,7 @@
:cxUrl="cxUr2"
@selectionChange="selectionChange"
@onSelect="onSelect"
@getRadio="getRadio"
></eldialog-content>
<div slot="footer" class="dialog-footer">
<el-button
......@@ -86,6 +87,7 @@ export default {
},
data() {
return {
indexRadio: 0,
jjlyJyqk: "",
sfjsPdbz: "",
dialogFormYq: false,
......@@ -169,10 +171,10 @@ export default {
label: "用户手机",
prop: "telephone",
},
{
label: "用户单位代码",
prop: "unitcode",
},
// {
// label: "用户单位代码",
// prop: "unitcode",
// },
{
label: "用户单位名称",
prop: "unitname",
......@@ -238,7 +240,10 @@ export default {
},
mounted() {},
methods: {
toInfor () {},
getRadio(scope, index) {
this.indexRadio = index;
},
toInfor() {},
dialogBcYQ() {
jsYhzYq({
sfjsPdbz: this.sfjsPdbz,
......@@ -322,13 +327,13 @@ export default {
debugger;
}
},
onSelect(rows , row) {
debugger
let selected = rows.length && rows.indexOf(row) != -1
if (selected == true) {
this.dialogForm = true;
onSelect(rows, row) {
debugger;
let selected = rows.length && rows.indexOf(row) != -1;
// if (selected == true) {
// this.dialogForm = true;
}
// }
},
// 保存
dialogBc() {
......@@ -345,10 +350,11 @@ export default {
params.append(`userList[${index}].yhLxdh`, item.telephone);
params.append(`userList[${index}].yhDwdm`, item.unitcode);
params.append(`userList[${index}].yhDwmc`, item.unitname);
params.append(`userList[${index}].yhJb`, index == this.indexRadio ? '0001' : '0000');
});
this.selectedId1.forEach((item, index) => {
params.append(`userList[${index}].yhJb`, item.radio);
});
// this.selectedId1.forEach((item, index) => {
// params.append(`userList[${index}].yhJb`, item.radio);
// });
saveNewYhz(params).then((res) => {
if (res.code == "200") {
this.$message({
......
......@@ -317,6 +317,15 @@
</div>
</template>
</el-table-column>
<el-table-column label="负责人" align="center" width="100">
<template slot-scope="scope">
<el-radio
v-model="radio"
:label="scope.$index"
@change.native="getRadio(scope.row, scope.$index)"
></el-radio>
</template>
</el-table-column>
</el-table>
<!--分页-->
<el-pagination
......@@ -377,6 +386,7 @@ export default {
},
data() {
return {
radio: false,
srcList: [],
tagType: ["danger", "success", "warning", "info", ""],
tPage: null,
......@@ -473,6 +483,9 @@ export default {
self.doQuery("yes");
},
methods: {
getRadio(scope, index) {
this.$emit("getRadio", scope, index);
},
change(scope) {
debugger;
},
......@@ -492,8 +505,7 @@ export default {
this.$emit("selectionChange", row);
},
onSelect(rows, row) {
this.$emit("onSelect", rows , row);
this.$emit("onSelect", rows, row);
},
EditCode() {
var self = this;
......@@ -1039,6 +1051,11 @@ export default {
}
</style>
<style scoped lang="scss">
/deep/.el-radio__label {
font-size: 14px;
padding-left: 10px;
display: none;
}
@import "@/assets/styles/rightContent.scss";
.el-dropdown-menu {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment