fix: 修复场景自动化里的场景编辑无法饮用场景的缺陷

修复场景自动化里的场景编辑无法饮用场景的缺陷
This commit is contained in:
song-tianyang 2021-06-02 15:23:13 +08:00 committed by 刘瑞斌
parent 556d383314
commit d52a95cae1
2 changed files with 12 additions and 0 deletions

View File

@ -16,6 +16,8 @@
field-key="API_SCENARIO"
operator-width="200"
@refresh="search(projectId)"
@callBackSelectAll="callBackSelectAll"
@callBackSelect="callBackSelect"
ref="scenarioTable">
<span v-for="(item) in fields" :key="item.key">
@ -812,6 +814,12 @@ export default {
this.$emit('updateInitApiTableOpretion','0');
return false;
}
},
callBackSelectAll(selection){
this.$emit('selection', selection);
},
callBackSelect(selection){
this.$emit('selection', selection);
}
}
};

View File

@ -202,12 +202,16 @@ export default {
setUnSelectIds(this.data, this.condition, this.selectRows);
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
this.selectIds = Array.from(this.selectRows).map(o => o.id);
//
this.$emit('callBackSelectAll',selection);
},
handleSelect(selection, row) {
_handleSelect(this, selection, row, this.selectRows);
setUnSelectIds(this.data, this.condition, this.selectRows);
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
this.selectIds = Array.from(this.selectRows).map(o => o.id);
//
this.$emit('callBackSelect',selection);
},
isSelectDataAll(data) {
this.condition.selectAll = data;