parent
556d383314
commit
d52a95cae1
|
@ -16,6 +16,8 @@
|
||||||
field-key="API_SCENARIO"
|
field-key="API_SCENARIO"
|
||||||
operator-width="200"
|
operator-width="200"
|
||||||
@refresh="search(projectId)"
|
@refresh="search(projectId)"
|
||||||
|
@callBackSelectAll="callBackSelectAll"
|
||||||
|
@callBackSelect="callBackSelect"
|
||||||
ref="scenarioTable">
|
ref="scenarioTable">
|
||||||
|
|
||||||
<span v-for="(item) in fields" :key="item.key">
|
<span v-for="(item) in fields" :key="item.key">
|
||||||
|
@ -812,6 +814,12 @@ export default {
|
||||||
this.$emit('updateInitApiTableOpretion','0');
|
this.$emit('updateInitApiTableOpretion','0');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
callBackSelectAll(selection){
|
||||||
|
this.$emit('selection', selection);
|
||||||
|
},
|
||||||
|
callBackSelect(selection){
|
||||||
|
this.$emit('selection', selection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -202,12 +202,16 @@ export default {
|
||||||
setUnSelectIds(this.data, this.condition, this.selectRows);
|
setUnSelectIds(this.data, this.condition, this.selectRows);
|
||||||
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
|
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
|
||||||
this.selectIds = Array.from(this.selectRows).map(o => o.id);
|
this.selectIds = Array.from(this.selectRows).map(o => o.id);
|
||||||
|
//有的组件需要回调父组件的函数,做下一步处理
|
||||||
|
this.$emit('callBackSelectAll',selection);
|
||||||
},
|
},
|
||||||
handleSelect(selection, row) {
|
handleSelect(selection, row) {
|
||||||
_handleSelect(this, selection, row, this.selectRows);
|
_handleSelect(this, selection, row, this.selectRows);
|
||||||
setUnSelectIds(this.data, this.condition, this.selectRows);
|
setUnSelectIds(this.data, this.condition, this.selectRows);
|
||||||
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
|
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
|
||||||
this.selectIds = Array.from(this.selectRows).map(o => o.id);
|
this.selectIds = Array.from(this.selectRows).map(o => o.id);
|
||||||
|
//有的组件需要回调父组件的函数,做下一步处理
|
||||||
|
this.$emit('callBackSelect',selection);
|
||||||
},
|
},
|
||||||
isSelectDataAll(data) {
|
isSelectDataAll(data) {
|
||||||
this.condition.selectAll = data;
|
this.condition.selectAll = data;
|
||||||
|
|
Loading…
Reference in New Issue