commit
This commit is contained in:
@@ -208,19 +208,18 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="落实人"
|
label="落实人"
|
||||||
width="170"
|
width="210"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.implementerId" style="display: none;" />
|
<el-input v-model="scope.row.implementerId" style="display: none;" />
|
||||||
<el-input v-model="scope.row.implementer" placeholder="请选择落实人"
|
<el-input v-model="scope.row.implementer" placeholder="请选择落实人"
|
||||||
@click.native="choiceZRRS(scope.row.implementerId, 1, scope.$index)" />
|
@click.native="choiceZRRS(scope.row, 1, scope.$index)" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<!-- 选择责任人-->
|
<!-- 选择责任人-->
|
||||||
<Role-tree
|
<Role-tree
|
||||||
check-box
|
|
||||||
is-title="选择落实人"
|
is-title="选择落实人"
|
||||||
:is-visible.sync="modalshowflag"
|
:is-visible.sync="modalshowflag"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
@@ -571,15 +570,25 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
checkedRole(data) {
|
checkedRole(data) {
|
||||||
|
var idList = "";
|
||||||
|
var nameList = "";
|
||||||
|
data.forEach(item => {
|
||||||
|
if (nameList.length > 0) {
|
||||||
|
nameList += ",";
|
||||||
|
idList += ",";
|
||||||
|
}
|
||||||
|
idList += item.id;
|
||||||
|
nameList += item.name;
|
||||||
|
});
|
||||||
if (this.type === 1) {
|
if (this.type === 1) {
|
||||||
this.listForm.breakdownList[this.lsIndex].implementerId = data[0].id;
|
this.listForm.breakdownList[this.lsIndex].implementerId = idList;
|
||||||
this.listForm.breakdownList[this.lsIndex].implementer = data[0].name;
|
this.listForm.breakdownList[this.lsIndex].implementer = nameList;
|
||||||
} else if (this.type === 2) {
|
} else if (this.type === 2) {
|
||||||
this.listForm.breakdownList.forEach(item => {
|
this.listForm.breakdownList.forEach(item => {
|
||||||
this.selectList.forEach(items => {
|
this.selectList.forEach(items => {
|
||||||
if (item === items) {
|
if (item === items) {
|
||||||
item.implementerId = data[0].id;
|
item.implementerId = idList;
|
||||||
item.implementer = data[0].name;
|
item.implementer = nameList;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -596,13 +605,20 @@ export default {
|
|||||||
this.nodeList = [];
|
this.nodeList = [];
|
||||||
this.lsIndex = index;
|
this.lsIndex = index;
|
||||||
this.lsType = type;
|
this.lsType = type;
|
||||||
this.nodeList.push(row);
|
if(row.implementerId){
|
||||||
|
this.nodeList = row.implementerId.split(",");
|
||||||
|
}else{
|
||||||
|
this.nodeList.push(row);
|
||||||
|
}
|
||||||
this.modalshowflag = true;
|
this.modalshowflag = true;
|
||||||
} else if (type === 2) {
|
} else if (type === 2) {
|
||||||
// 批量
|
// 批量
|
||||||
if (this.selectList.length > 0) {
|
if (this.selectList.length > 0) {
|
||||||
this.lsType = type;
|
this.lsType = type;
|
||||||
this.nodeList = [];
|
this.nodeList = [];
|
||||||
|
if(row.implementerId){
|
||||||
|
this.nodeList = row.implementerId.split(",");
|
||||||
|
}
|
||||||
this.modalshowflag = true;
|
this.modalshowflag = true;
|
||||||
this.drawerTitle = "批量选择责任人";
|
this.drawerTitle = "批量选择责任人";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user