|
@@ -239,10 +239,10 @@
|
|
node-key="id"
|
|
node-key="id"
|
|
:load="loadNode"
|
|
:load="loadNode"
|
|
lazy>
|
|
lazy>
|
|
|
|
+ <!-- @change="val => radioGroupChange(data, val, node)" -->
|
|
<template slot-scope="{ node, data }">
|
|
<template slot-scope="{ node, data }">
|
|
<span v-if="node.level === 2">
|
|
<span v-if="node.level === 2">
|
|
- <el-checkbox-group v-model="data.check"
|
|
|
|
- @change="val => radioGroupChange(data, val, node)">
|
|
|
|
|
|
+ <el-checkbox-group v-model="data.check" @change="val => radioGroupChange(data, val, node)">
|
|
<el-checkbox class="zhiwuChecks"
|
|
<el-checkbox class="zhiwuChecks"
|
|
v-for="item in data.roid"
|
|
v-for="item in data.roid"
|
|
:key="item.roleId"
|
|
:key="item.roleId"
|
|
@@ -668,7 +668,17 @@ export default {
|
|
let res = [];
|
|
let res = [];
|
|
Object.keys(this.check).forEach((value, index) => {
|
|
Object.keys(this.check).forEach((value, index) => {
|
|
this.check[value].forEach(ite => {
|
|
this.check[value].forEach(ite => {
|
|
- res.push(ite);
|
|
|
|
|
|
+ console.log(ite,res)
|
|
|
|
+ // if(res.length>0){
|
|
|
|
+ // if(res.every( function( item, index, array ){ return item.roleId!=ite.roleId})){
|
|
|
|
+ // console.log(ite)
|
|
|
|
+ // res.push(ite);
|
|
|
|
+ // }else{
|
|
|
|
+ // console.log(ite)
|
|
|
|
+ // }
|
|
|
|
+ // }else{
|
|
|
|
+ res.push(ite);
|
|
|
|
+ // }
|
|
});
|
|
});
|
|
});
|
|
});
|
|
let _a = res.filter(v => v);
|
|
let _a = res.filter(v => v);
|
|
@@ -742,8 +752,12 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
radioGroupChange (data, val, node) {
|
|
radioGroupChange (data, val, node) {
|
|
- this.$set(this.check, data.id, val);
|
|
|
|
- console.log(this.check)
|
|
|
|
|
|
+ this.check=[]
|
|
|
|
+ for (let i = 0; i < val.length; i++) {
|
|
|
|
+ data.id=val[i].deptId+'_'+val[i].roleId
|
|
|
|
+ this.$set(this.check, data.id, [val[i]]);
|
|
|
|
+ }
|
|
|
|
+ // console.log(this.check)
|
|
this.aaabbb[data.id] = val;
|
|
this.aaabbb[data.id] = val;
|
|
},
|
|
},
|
|
//tree
|
|
//tree
|
|
@@ -1072,6 +1086,7 @@ export default {
|
|
if (!this.ruleForm.electronicSignature) {
|
|
if (!this.ruleForm.electronicSignature) {
|
|
this.ruleForm.electronicSignature = this.url;
|
|
this.ruleForm.electronicSignature = this.url;
|
|
}
|
|
}
|
|
|
|
+ // console.log(response)
|
|
// TODO: 此处存在疑问点?
|
|
// TODO: 此处存在疑问点?
|
|
this.zhiwu1.roleName = response.majorRole
|
|
this.zhiwu1.roleName = response.majorRole
|
|
? response.majorRole.roleName
|
|
? response.majorRole.roleName
|
|
@@ -1502,7 +1517,6 @@ export default {
|
|
if (!this.data1.find(item => item.roleId === this.zhiwu1.roleId)) {
|
|
if (!this.data1.find(item => item.roleId === this.zhiwu1.roleId)) {
|
|
this.zhiwu1.roleName = null;
|
|
this.zhiwu1.roleName = null;
|
|
}
|
|
}
|
|
-
|
|
|
|
this.data1.forEach(item => {
|
|
this.data1.forEach(item => {
|
|
this.zhiwu2.forEach((gitem, gindex) => {
|
|
this.zhiwu2.forEach((gitem, gindex) => {
|
|
if (gitem.roleId == item.roleId) {
|
|
if (gitem.roleId == item.roleId) {
|