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

Loading…
Cancel
Save