项目清单确认流程 更改多个项目或清单选择问题
This commit is contained in:
@@ -372,6 +372,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
multipleSelection:[],
|
||||||
active: "1", //默认显示
|
active: "1", //默认显示
|
||||||
commentText: "",
|
commentText: "",
|
||||||
modalshowflag: false,
|
modalshowflag: false,
|
||||||
@@ -434,6 +435,15 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 表格勾选
|
||||||
|
handleSelectionChange(val) {
|
||||||
|
// 单选
|
||||||
|
if (val.length > 1) {
|
||||||
|
this.$refs.table.clearSelection()
|
||||||
|
this.$refs.table.toggleRowSelection(val.pop())
|
||||||
|
}
|
||||||
|
this.multipleSelection = val
|
||||||
|
},
|
||||||
handleTabs(type) {
|
handleTabs(type) {
|
||||||
this.active = type;
|
this.active = type;
|
||||||
},
|
},
|
||||||
@@ -581,10 +591,24 @@ export default {
|
|||||||
},
|
},
|
||||||
//清单勾选框数据
|
//清单勾选框数据
|
||||||
selectListChange(data) {
|
selectListChange(data) {
|
||||||
|
// 单选
|
||||||
|
if (data.length > 1) {
|
||||||
|
this.$refs.selection.clearSelection()
|
||||||
|
this.$refs.selection.toggleRowSelection(data.pop())
|
||||||
|
}
|
||||||
|
this.multipleSelection = data
|
||||||
|
|
||||||
this.selectedList = data;
|
this.selectedList = data;
|
||||||
},
|
},
|
||||||
//项目勾选框数据
|
//项目勾选框数据
|
||||||
selectProjectChange(data) {
|
selectProjectChange(data) {
|
||||||
|
// 单选
|
||||||
|
if (data.length > 1) {
|
||||||
|
this.$refs.selection.clearSelection()
|
||||||
|
this.$refs.selection.toggleRowSelection(data.pop())
|
||||||
|
}
|
||||||
|
this.multipleSelection = data
|
||||||
|
|
||||||
this.selectProject = data;
|
this.selectProject = data;
|
||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
|
|||||||
Reference in New Issue
Block a user