Browse Source

feat:[模板管理][update]

lkf
luojie 1 month ago
parent
commit
92ee1ecf68
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/components/Template/CustomTable.vue

+ 8
- 0
src/components/Template/CustomTable.vue View File

@ -707,6 +707,10 @@ export default {
return true;
},
onAddRow() {
if (this.$listeners && this.$listeners['onAddRow']) {
this.$emit('onAddRow');
return;
}
this.addRow({
actSolutionVolumePrecision: 3,//3
actSolutionConcentrationPrecision: 3,//3
@ -714,10 +718,14 @@ export default {
targetStartSolutionVolumePrecision: 3,//3
});
},
//
addRow(row = {}) {
this.localDataSource.push(row);
},
addRows(rows = []) {
this.localDataSource.push(...rows);
},
getDataSource() {
return this.localDataSource;
},

Loading…
Cancel
Save