feat: There is no way the, 发起 对接人 多人
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
label="起草单位"
|
||||
width="120">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.qcdw" class="table-jump" :title="scope.row.qcdw">{{ scope.row.qcdw | ellipsis2 }}</span>
|
||||
<span v-if="scope.row.qcdw" :title="scope.row.qcdw">{{ scope.row.qcdw | ellipsis2 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -77,7 +77,7 @@
|
||||
label="起草人"
|
||||
width="120">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.qcrbuss" class="table-jump" :title="scope.row.qcrbuss">{{ scope.row.qcrbuss | ellipsis2 }}</span>
|
||||
<span v-if="scope.row.qcrbuss" :title="scope.row.qcrbuss">{{ scope.row.qcrbuss | ellipsis2 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -111,7 +111,7 @@
|
||||
style="margin-left: 0;margin-bottom:0;"
|
||||
:rules="formRules.bussFsSubUser1Name"
|
||||
>
|
||||
<el-input v-model="scope.row.bussFsSubUser1Name" placeholder="请选择对接人" @click.native="choiceZRRS(scope.row.bussFsSubUser1, 1, scope.$index)" />
|
||||
<el-input v-model="scope.row.bussFsSubUser1Name" placeholder="请选择对接人" :title="scope.row.bussFsSubUser1Name" @click.native="choiceZRRS(scope.row.bussFsSubUser1, 1, scope.$index)" />
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -604,6 +604,12 @@
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<Role-tree
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="modalShowRoleFlag"
|
||||
@checkedRole="checkedRole2"
|
||||
:nodeList="nodeList2"
|
||||
></Role-tree>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -686,6 +692,7 @@ export default {
|
||||
saveLoading: false,
|
||||
isSubmit: false,
|
||||
modalShowFlag: false,
|
||||
modalShowRoleFlag: false,
|
||||
standardSearch: {
|
||||
standCode: "",
|
||||
standName: ""
|
||||
@@ -792,26 +799,30 @@ export default {
|
||||
this.type = type
|
||||
if (type === 1) {
|
||||
this.drawerTitle = '选择对接人'
|
||||
this.nodeList = []
|
||||
this.nodeList2 = []
|
||||
this.zrIndex = index
|
||||
this.zrType = type
|
||||
this.nodeList.push(row)
|
||||
this.modalShowFlag = true
|
||||
if(type === 'bussFsSubUser1'){
|
||||
if ( row.bussFsSubUser1.length > 0) {
|
||||
this.nodeList2 = row.bussFsSubUser1.split(',')
|
||||
}
|
||||
}
|
||||
this.modalShowRoleFlag = true
|
||||
} else if (type === 2) {
|
||||
// 批量
|
||||
if (this.zrIdList.length > 0) {
|
||||
this.zrType = type
|
||||
this.nodeList = []
|
||||
this.modalShowFlag = true
|
||||
this.nodeList2 = []
|
||||
this.modalShowRoleFlag = true
|
||||
this.drawerTitle = '批量选择对接人'
|
||||
} else {
|
||||
this.$message.warning('请选择要编辑的数据')
|
||||
}
|
||||
} else {
|
||||
this.nodeList = []
|
||||
this.nodeList.push(row)
|
||||
this.nodeList2 = []
|
||||
this.nodeList2.push(row)
|
||||
this.drawerTitle = ''
|
||||
this.modalShowFlag = true
|
||||
this.modalShowRoleFlag = true
|
||||
}
|
||||
},
|
||||
selectReplaceStandNumRowChange(val) {
|
||||
@@ -1199,6 +1210,44 @@ export default {
|
||||
this.drawerTitle = title;
|
||||
this.modalShowFlag = true;
|
||||
},
|
||||
checkedRole2 (data) {
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
data.forEach( item => {
|
||||
if (nameList.length > 0) {
|
||||
nameList += ','
|
||||
idList += ','
|
||||
}
|
||||
idList += item.id
|
||||
nameList += item.name
|
||||
})
|
||||
|
||||
if (this.type === 0) {
|
||||
this.roleForm.deptUserId = data[0].id
|
||||
this.roleForm.deptUserIdName = data[0].name
|
||||
} else if (this.type === 1) {
|
||||
this.qbfsForm.modelData[this.zrIndex].bussFsSubUser1 = idList
|
||||
this.qbfsForm.modelData[this.zrIndex].bussFsSubUser1Name = nameList
|
||||
} else {
|
||||
this.qbfsForm.modelData.forEach(item => {
|
||||
this.zrIdList.forEach(items => {
|
||||
if (item.id === items) {
|
||||
item.bussFsSubUser1 = idList
|
||||
item.bussFsSubUser1Name = nameList
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// if(data !== undefined && data && data.length > 0){
|
||||
// const institutionIdList = this.unique(data.map(item => item.institutionId)).join(",")
|
||||
// const institutionNameList = this.unique(data.map(item => item.institutionName)).join(",")
|
||||
// this.form.QCDWID = institutionIdList
|
||||
// this.form.QCDW = institutionNameList
|
||||
// }
|
||||
|
||||
this.modalShowRoleFlag = false
|
||||
},
|
||||
checkedRole (data) {
|
||||
if (this.type === 0) {
|
||||
this.roleForm.deptUserId = data[0].id
|
||||
|
||||
Reference in New Issue
Block a user