修改 外部署名推荐审批流程 署名人领导 单选改为多选
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
<div style="margin-top: 10px;width: 300px;">
|
||||
<el-input :disabled="disabledXX" v-model="roleForm.dockUser" style="display: none;"></el-input>
|
||||
<el-input :disabled="disabledXX" v-model="roleForm.dockUserName" readonly placeholder="选择署名人领导"
|
||||
@click.native="choiceZRR('dockUser', '选择署名人领导', roleForm.dockUser)">
|
||||
@click.native="choiceDOCK('dockUser', '选择署名人领导', roleForm.dockUser)">
|
||||
</el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
@@ -349,6 +349,12 @@
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<Role-tree v-if="!disabledXX"
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="modalshowflagDOCK"
|
||||
@checkedRole="checkedRoleDOCK"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<!-- 多选责任人-->
|
||||
<Role-tree v-if="!disabledXX"
|
||||
is-title="选择署名人"
|
||||
@@ -382,6 +388,7 @@ export default {
|
||||
drawerTitle: "", //drawer标题
|
||||
modalshowflag: false, // 选择人员drawer开关
|
||||
modalshowflag2: false,
|
||||
modalshowflagDOCK: false,
|
||||
standModel: false, //添加标准抽屉
|
||||
zrIndex: "",
|
||||
nodeList: [], //存放人员信息数组
|
||||
@@ -796,6 +803,26 @@ export default {
|
||||
this.drawerTitle = title;
|
||||
this.modalshowflag = true;
|
||||
},
|
||||
choiceDOCK(type, title, id) {
|
||||
this.nodeList = [];
|
||||
this.nodeList = JSON.parse(JSON.stringify(id.split(',')))
|
||||
this.drawerTitle = title;
|
||||
this.modalshowflagDOCK = true;
|
||||
},
|
||||
checkedRoleDOCK (data) {
|
||||
let idList = "";
|
||||
let nameList = "";
|
||||
data.forEach(item => {
|
||||
if (nameList.length) {
|
||||
nameList += ",";
|
||||
idList += ",";
|
||||
}
|
||||
idList += item.id;
|
||||
nameList += item.name;
|
||||
});
|
||||
this.roleForm.dockUser = idList
|
||||
this.roleForm.dockUserName = nameList
|
||||
},
|
||||
checkedRole (data) {
|
||||
if (this.type === "dockUser") {
|
||||
this.roleForm.dockUser = data[0].id;
|
||||
|
||||
Reference in New Issue
Block a user