更改多个项目或清单选择问题
This commit is contained in:
@@ -226,7 +226,7 @@
|
||||
<div style="margin-top: 10px;width: 300px;">
|
||||
<el-input v-model="roleForm.statuteMinister" style="display: none;"></el-input>
|
||||
<el-input v-model="roleForm.statuteMinisterName" placeholder="选择标准法规部部长"
|
||||
@click.native="choiceZRR('statuteMinister', '选择技术管理中心主任', roleForm.statuteMinister)"></el-input>
|
||||
@click.native="choiceZRR('statuteMinister', '选择标准法规部部长', roleForm.statuteMinister)"></el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-card>
|
||||
@@ -533,6 +533,13 @@ export default {
|
||||
},
|
||||
//项目的多选框改变
|
||||
selectListChange(data) {
|
||||
// 单选
|
||||
if (data.length > 1) {
|
||||
this.$refs.selection.clearSelection()
|
||||
this.$refs.selection.toggleRowSelection(data.pop())
|
||||
}
|
||||
this.multipleSelection = data
|
||||
|
||||
this.selectedList = data;
|
||||
},
|
||||
pageChange(page) {
|
||||
|
||||
@@ -592,10 +592,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