fix(接口场景): 引用场景的弹窗中不再显示场景的操作按钮

引用场景的弹窗中不再显示场景的操作按钮
This commit is contained in:
song-tianyang 2021-07-15 18:11:10 +08:00 committed by 刘瑞斌
parent dade120602
commit e842bb88d8
2 changed files with 9 additions and 2 deletions

View File

@ -271,6 +271,10 @@ export default {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
isReferenceTable: {
type: Boolean,
default: false,
},
selectNodeIds: Array, selectNodeIds: Array,
selectProjectId: { selectProjectId: {
type: String, type: String,
@ -462,8 +466,10 @@ export default {
if (!this.projectName || this.projectName === "") { if (!this.projectName || this.projectName === "") {
this.getProjectName(); this.getProjectName();
} }
this.operators = this.unTrashOperators; if(!this.isReferenceTable){
this.buttons = this.unTrashButtons; this.operators = this.unTrashOperators;
this.buttons = this.unTrashButtons;
}
this.condition.filters = {status: ["Prepare", "Underway", "Completed"]}; this.condition.filters = {status: ["Prepare", "Underway", "Completed"]};
let orderArr = this.getSortField(); let orderArr = this.getSortField();
if (orderArr) { if (orderArr) {

View File

@ -19,6 +19,7 @@
:select-project-id="projectId" :select-project-id="projectId"
:referenced="true" :referenced="true"
:trash-enable="false" :trash-enable="false"
:is-reference-table="true"
@selection="setData" @selection="setData"
:custom-num="customNum" :custom-num="customNum"
ref="apiScenarioList"/> ref="apiScenarioList"/>