Browse Source

feat:[模板管理][update]

ouqian
luojie 1 month ago
parent
commit
7ccfe003f3
2 changed files with 8 additions and 2 deletions
  1. +6
    -0
      src/components/Template/CustomTable.vue
  2. +2
    -2
      src/views/business/comps/template/comps/pcr/PCR008.vue

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

@ -927,6 +927,12 @@ export default {
}); });
}, },
deleteSelectedRows(rowsIndex){
this.deleteRows(rowsIndex);
this.selectedRows = [];
this.isIndeterminate = false;
this.$emit('selectionChange', this.selectedRows);
},
// formData // formData
updateDataSource(dataSource = []) { updateDataSource(dataSource = []) {
this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource)); this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource));

+ 2
- 2
src/views/business/comps/template/comps/pcr/PCR008.vue View File

@ -17,7 +17,7 @@
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" <BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef"
:formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData" @onRegentSubmit="onRegentSubmit" /> :formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData" @onRegentSubmit="onRegentSubmit" />
<div v-if="fillType == 'preFill'"> <div v-if="fillType == 'preFill'">
<el-button type="danger" @click="onClickDelete">{{
<el-button :disabled="deleteRows.length === 0" type="danger" @click="onClickDelete">{{
$t('form.delete') }}</el-button> $t('form.delete') }}</el-button>
</div> </div>
@ -236,7 +236,7 @@ export default {
onClickDelete() { onClickDelete() {
this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { this.$modal.confirm(this.$t('form.confirmDelete')).then(() => {
this.$refs.stepTableRef.deleteRows(this.deleteRows)
this.$refs.stepTableRef.deleteSelectedRows(this.deleteRows)
this.$refs.stepTableRef.justUpdateFilledFormData(); this.$refs.stepTableRef.justUpdateFilledFormData();
}).catch(() => { }); }).catch(() => { });

Loading…
Cancel
Save