|
@@ -41,7 +41,7 @@
|
|
|
</div>
|
|
|
<div class="power-content flex-wrap">
|
|
|
<div class="r24 flex1 part">
|
|
|
- <Organization ref="Organization" :defaultProps="defaultProps" :mainData="mainData" :vice="true" :data="data" @getTreeData="getOrgan" @radioChange="radioChange" :checkedKeys="orgCheckedKeys" :orgList="orgList" :radioCheck="radioNum" nodekey="OrganId" title="选择组织" />
|
|
|
+ <Organization ref="Organization" :defaultProps="defaultProps" :vice="true" :data="data" @getTreeData="getOrgan" @radioChange="radioChange" :checkedKeys="orgCheckedKeys" :checkedKeysDuo="checkedKeysDuo" @getTreeDataDuo="getTreeDataDuo" :orgList="orgList" nodekey="OrganId" title="选择组织" />
|
|
|
</div>
|
|
|
<!--开启多对多-->
|
|
|
<template v-if="OpenAuthData">
|
|
@@ -167,6 +167,7 @@ export default {
|
|
|
checkedKeys: [], //上级组织选中
|
|
|
RoleList: [],
|
|
|
checkedBoxs: [],
|
|
|
+ checkedKeysDuo: [],
|
|
|
arrs: [],
|
|
|
authArrs: [],//
|
|
|
OfficerId: null,
|
|
@@ -274,7 +275,7 @@ export default {
|
|
|
RoleList,
|
|
|
TacList,
|
|
|
GroupList,
|
|
|
- UserList
|
|
|
+ UserList,
|
|
|
} = obj;
|
|
|
this.form.name = OfficerName;
|
|
|
this.form.loginName = OfficerLoginName;
|
|
@@ -285,7 +286,6 @@ export default {
|
|
|
this.roleDatas = RoleList;
|
|
|
this.radioCheck = JobId;
|
|
|
this.JobId = JobId;
|
|
|
- this.lessChecksData = DepJobList;
|
|
|
this.isMainJob = false;
|
|
|
this.AppId = OrganId;
|
|
|
this.getJobListByOrgan(OrganId);
|
|
@@ -325,6 +325,13 @@ export default {
|
|
|
})
|
|
|
this.checkBoxList = datas;
|
|
|
}
|
|
|
+ if (DepJobList && DepJobList.length) {
|
|
|
+ const datas = [];
|
|
|
+ DepJobList.forEach(item => {
|
|
|
+ datas.push(item.organId);
|
|
|
+ })
|
|
|
+ this.checkedKeysDuo = datas;
|
|
|
+ }
|
|
|
this.checkedList = TacList;
|
|
|
this.loginCheckBoxs = TacList;
|
|
|
} else {
|
|
@@ -373,6 +380,10 @@ export default {
|
|
|
this.AppId = OrganId;
|
|
|
this.getJobListByOrgan(OrganId);
|
|
|
},
|
|
|
+ //获取组织选中的数据-多选
|
|
|
+ getTreeDataDuo (arr) {
|
|
|
+ this.lessData = arr;
|
|
|
+ },
|
|
|
//获取指定数据
|
|
|
decompose (data, id) {
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -558,6 +569,7 @@ export default {
|
|
|
GroupList: GroupIds.length ? GroupIds : [],
|
|
|
JobId: this.JobId,
|
|
|
Status: Number(this.Status),
|
|
|
+ DepJobList: this.lessData,
|
|
|
OrganId: this.AppId,
|
|
|
OfficerId: this.OfficerId,
|
|
|
UserList: this.OpenAuthData ? this.checkBoxList : []
|