fix(场景自动化): 修复导入场景时列表数据显示错误的问题

This commit is contained in:
shiziyuan9527 2021-03-24 13:47:29 +08:00
parent f13746e655
commit c99e59a044
2 changed files with 7 additions and 1 deletions

View File

@ -218,6 +218,10 @@
default: false,
},
selectNodeIds: Array,
selectProjectId: {
type: String,
default: ""
},
trashEnable: {
type: Boolean,
default: false,
@ -342,7 +346,7 @@
},
watch: {
selectNodeIds() {
this.search();
this.selectProjectId ? this.search(this.selectProjectId) : this.search();
},
trashEnable() {
if (this.trashEnable) {

View File

@ -16,6 +16,7 @@
<ms-api-scenario-list
:select-node-ids="selectNodeIds"
:select-project-id="projectId"
:referenced="true"
:trash-enable="false"
@selection="setData"
@ -131,6 +132,7 @@
},
setProject(projectId) {
this.projectId = projectId;
this.selectNodeIds = [];
},
}
}