Commit 30eabda0 by xue_wengang

角色管理

parent cb77b029
......@@ -8,7 +8,7 @@
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@toInfor="toInfor"
:pageASs='pageASs'
:pageASs="pageASs"
@selectionChange="selectionChange"
ref="rightContent"
>
......@@ -69,7 +69,7 @@ export default {
fkxy: "",
},
slect: [],
pageASs:'queryXsxx',
pageASs: "queryXsxx",
header: "涉黑涉恶案件侦查",
pageBs: "queryXsxx",
cxFormData: {
......@@ -120,7 +120,7 @@ export default {
label: "线索编号",
toInfor: true,
prop: "shsexsbh",
width: '200'
width: "200",
},
{
label: "线索名称",
......@@ -129,6 +129,7 @@ export default {
{
label: "关联案事件",
prop: "asjbh",
toInfor: true,
},
{
label: "涉及地区",
......@@ -138,14 +139,14 @@ export default {
label: "涉及行业领域",
prop: "shsexssjhylydm",
},
{
{
label: "是否上报",
prop: "sfsb",
},
{
label: '反馈状态',
prop: 'sffk'
}
label: "反馈状态",
prop: "sffk",
},
],
cxUrl: "/selectXsList",
Menu: [
......@@ -172,13 +173,19 @@ export default {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
toInfor(obj) {
this.$router.pushToTab({
path:'/xsxq',
query: {
shsexsbh: obj.shsexsbh
}
})
toInfor(obj, type) {
debugger;
if (type.prop == "asjbh") {
let path = `${this.$baseUrl.alyIP5}/queryAjdaxxs?asjbh=${obj.asjbh}`;
window.open(path, "_blank");
} else {
this.$router.pushToTab({
path: "/xsxq",
query: {
shsexsbh: obj.shsexsbh,
},
});
}
},
xsFk(csope) {
this.$set(this.examineInfo, "shsexsbh", csope.row.shsexsbh);
......@@ -240,8 +247,8 @@ export default {
},
toXf() {
this.$router.pushToTab({
path: '/wfzdzczl'
})
path: "/wfzdzczl",
});
},
toSb(scope) {
let params = new FormData();
......
......@@ -73,7 +73,7 @@ export default {
page: 1,
roleAlias: "",
parentId: 0,
menuIds:''
menuIds: "",
},
cxQueryField: [
{
......@@ -141,6 +141,7 @@ export default {
//全选
checkAll: false,
selec: [],
parentArr: [],
};
},
created() {
......@@ -157,6 +158,7 @@ export default {
res.data.forEach((item) => {
if (item.hasChildren) {
self.getTreeCode(item.children);
self.parentArr.push(item.id);
}
item.label = item.title;
});
......@@ -170,12 +172,16 @@ export default {
},
methods: {
currentChecked(nodeObj, SelectedObj) {
this.selectedTree = [...SelectedObj.checkedKeys,...SelectedObj.halfCheckedKeys];
this.selectedTree = [
...SelectedObj.checkedKeys,
...SelectedObj.halfCheckedKeys,
];
},
getTreeCode(children) {
children.forEach((item) => {
if (item.hasChildren) {
item.label = item.title;
this.parentArr.push(item.id);
this.getTreeCode(item.children);
} else {
item.label = item.title;
......@@ -214,9 +220,13 @@ export default {
}
},
editMenu() {
debugger;
if (this.selectedId.length > 0) {
this.dialogVisible = true;
this.selec = this.selectedId[0].menuListId;
let arr = new Set([...this.parentArr])
this.selec = new Set(this.selectedId[0].menuListId.filter(x => !arr.has(x)));
console.log(difference);
//this.selec = this.selectedId[0].menuListId;
} else {
this.$message.error("请选择角色");
}
......@@ -231,6 +241,7 @@ export default {
// row.forEach((item) => {
// this.selectedId.push(item.id);
// });
debugger;
this.selectedId = val;
this.checkAll = false;
this.selec = [];
......@@ -240,9 +251,9 @@ export default {
this.$message.warning("只能单选");
return;
}
this.$nextTick(() => {
this.$refs.tree.setCheckedKeys([]);
});
// this.$nextTick(() => {
// this.$refs.tree.setCheckedKeys([]);
// });
},
handleClose() {
this.dialogVisible = false;
......@@ -326,7 +337,7 @@ export default {
} else {
this.$refs.tree.setCheckedKeys([]);
this.selec = [];
this.selectedTree = []
this.selectedTree = [];
}
},
},
......
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