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