Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
e24a27f00d
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      src/components/Template/CustomTable.vue
  2. +1
    -1
      src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue

+ 3
- 3
src/components/Template/CustomTable.vue View File

@ -132,7 +132,7 @@ export default {
}, },
showAddRow: { showAddRow: {
type: Boolean, type: Boolean,
default: true,
default: undefined,
}, },
// //
showOperation: { showOperation: {
@ -215,8 +215,8 @@ export default {
this.$emit("clickable", col,rowIndex) this.$emit("clickable", col,rowIndex)
}, },
isShowAddRos() { isShowAddRos() {
if(!this.showAddRow) {
return false;
if(this.showAddRow !== undefined){
return this.showAddRow
} }
return this.templateFillType === 'preFill'; return this.templateFillType === 'preFill';
}, },

+ 1
- 1
src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue View File

@ -16,7 +16,7 @@
<div class="template-form-item"> <div class="template-form-item">
<BaseInfoFormPcakge @clickable="handleClickable" ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur" <BaseInfoFormPcakge @clickable="handleClickable" ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" /> :formData="formData" />
<CustomTable fieldItemLabel = "操作步骤" :showAddRow="fillType === 'actFill'" @blur="onHandleTableBlur" :showOperation="fillType === 'actFill'" ref="stepTableRef" :columns="stepColumns"
<CustomTable fieldItemLabel = "操作步骤" @blur="onHandleTableBlur" :showOperation="fillType === 'actFill'" ref="stepTableRef" :columns="stepColumns"
:formData="formData" > :formData="formData" >
<template slot="operation" slot-scope="{ row, rowIndex}"> <template slot="operation" slot-scope="{ row, rowIndex}">
<TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" @deleteRow="deleteRow"></TableOpertaion> <TableOpertaion :fillType="fillType" :row="row" :rowIndex="rowIndex" @deleteRow="deleteRow"></TableOpertaion>

Loading…
Cancel
Save