feat: There is no way the, 发起 对接人 多人
This commit is contained in:
@@ -69,7 +69,7 @@
|
|||||||
label="起草单位"
|
label="起草单位"
|
||||||
width="120">
|
width="120">
|
||||||
<template slot-scope="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
label="起草人"
|
label="起草人"
|
||||||
width="120">
|
width="120">
|
||||||
<template slot-scope="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
style="margin-left: 0;margin-bottom:0;"
|
style="margin-left: 0;margin-bottom:0;"
|
||||||
:rules="formRules.bussFsSubUser1Name"
|
: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>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -604,6 +604,12 @@
|
|||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
:nodeList="nodeList"
|
:nodeList="nodeList"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<Role-tree
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="modalShowRoleFlag"
|
||||||
|
@checkedRole="checkedRole2"
|
||||||
|
:nodeList="nodeList2"
|
||||||
|
></Role-tree>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -686,6 +692,7 @@ export default {
|
|||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
modalShowFlag: false,
|
modalShowFlag: false,
|
||||||
|
modalShowRoleFlag: false,
|
||||||
standardSearch: {
|
standardSearch: {
|
||||||
standCode: "",
|
standCode: "",
|
||||||
standName: ""
|
standName: ""
|
||||||
@@ -792,26 +799,30 @@ export default {
|
|||||||
this.type = type
|
this.type = type
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
this.drawerTitle = '选择对接人'
|
this.drawerTitle = '选择对接人'
|
||||||
this.nodeList = []
|
this.nodeList2 = []
|
||||||
this.zrIndex = index
|
this.zrIndex = index
|
||||||
this.zrType = type
|
this.zrType = type
|
||||||
this.nodeList.push(row)
|
if(type === 'bussFsSubUser1'){
|
||||||
this.modalShowFlag = true
|
if ( row.bussFsSubUser1.length > 0) {
|
||||||
|
this.nodeList2 = row.bussFsSubUser1.split(',')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.modalShowRoleFlag = true
|
||||||
} else if (type === 2) {
|
} else if (type === 2) {
|
||||||
// 批量
|
// 批量
|
||||||
if (this.zrIdList.length > 0) {
|
if (this.zrIdList.length > 0) {
|
||||||
this.zrType = type
|
this.zrType = type
|
||||||
this.nodeList = []
|
this.nodeList2 = []
|
||||||
this.modalShowFlag = true
|
this.modalShowRoleFlag = true
|
||||||
this.drawerTitle = '批量选择对接人'
|
this.drawerTitle = '批量选择对接人'
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要编辑的数据')
|
this.$message.warning('请选择要编辑的数据')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.nodeList = []
|
this.nodeList2 = []
|
||||||
this.nodeList.push(row)
|
this.nodeList2.push(row)
|
||||||
this.drawerTitle = ''
|
this.drawerTitle = ''
|
||||||
this.modalShowFlag = true
|
this.modalShowRoleFlag = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectReplaceStandNumRowChange(val) {
|
selectReplaceStandNumRowChange(val) {
|
||||||
@@ -1199,6 +1210,44 @@ export default {
|
|||||||
this.drawerTitle = title;
|
this.drawerTitle = title;
|
||||||
this.modalShowFlag = true;
|
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) {
|
checkedRole (data) {
|
||||||
if (this.type === 0) {
|
if (this.type === 0) {
|
||||||
this.roleForm.deptUserId = data[0].id
|
this.roleForm.deptUserId = data[0].id
|
||||||
|
|||||||
Reference in New Issue
Block a user