Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
91cb420350
5 changed files with 6 additions and 4 deletions
  1. +2
    -2
      src/components/Template/BaseInfoFormPcakge.vue
  2. +1
    -1
      src/components/Template/CustomTable.vue
  3. +1
    -1
      src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
  4. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue
  5. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue

+ 2
- 2
src/components/Template/BaseInfoFormPcakge.vue View File

@ -95,7 +95,7 @@
<div class="grid-container gap2"> <div class="grid-container gap2">
<div v-for="(sItem, key) in item.config" class="c-Item flex item-center" <div v-for="(sItem, key) in item.config" class="c-Item flex item-center"
:class="getSpanClass(sItem)" :key="key"> :class="getSpanClass(sItem)" :key="key">
<div class="step-form-title" v-if="sItem.label">{{ $t( sItem.label) }}</div>
<div class="step-form-title" :style = "{'width': sItem.labelWidth ? sItem.labelWidth + 'px' : '150px'}" v-if="sItem.label">{{ $t( sItem.label) }}</div>
<div v-if="sItem.type === 'dateTime'" class="flex1"> <div v-if="sItem.type === 'dateTime'" class="flex1">
<HandleFormItem :field-item-label="fieldItemLabel" :field-key="prefixKey+'_'+key" type="dateTime" :item="sItem" v-model="formFields[key]" <HandleFormItem :field-item-label="fieldItemLabel" :field-key="prefixKey+'_'+key" type="dateTime" :item="sItem" v-model="formFields[key]"
@copy="onCopy(sItem, key)" :error="errors[key]" @update:error="errors[key] = false" @copy="onCopy(sItem, key)" :error="errors[key]" @update:error="errors[key] = false"
@ -555,7 +555,7 @@ export default {
} }
.gap2 { .gap2 {
gap: 0 64px;
gap: 0 48px;
} }
.w-100 { .w-100 {

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

@ -34,7 +34,7 @@
<div v-for="(col, colIndex) in columns" :key="colIndex" class="custom-table-cell body-cell" <div v-for="(col, colIndex) in columns" :key="colIndex" class="custom-table-cell body-cell"
:style="{ width: col.width ? col.width + 'px' : 'auto' }"> :style="{ width: col.width ? col.width + 'px' : 'auto' }">
<div class="inner-table-cell"> <div class="inner-table-cell">
<div>
<div class="flex1">
<template v-if="col.bodyType === 'input'"> <template v-if="col.bodyType === 'input'">
<HandleFormItem :fieldKey="prefixKey+'_'+col.prop+'_'+rowIndex" :fieldItemLabel="fieldItemLabel" type="input" @blur="onBlur(rowIndex, col.prop, $event)" @copy="onCopy(rowIndex, col)" <HandleFormItem :fieldKey="prefixKey+'_'+col.prop+'_'+rowIndex" :fieldItemLabel="fieldItemLabel" type="input" @blur="onBlur(rowIndex, col.prop, $event)" @copy="onCopy(rowIndex, col)"
class="body-input" :item="getBodyItem(col, rowIndex)" v-model="row[col.prop]" class="body-input" :item="getBodyItem(col, rowIndex)" v-model="row[col.prop]"

+ 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 = "操作步骤" @blur="onHandleTableBlur" :showOperation="fillType === 'actFill'" ref="stepTableRef" :columns="stepColumns"
<CustomTable fieldItemLabel = "操作步骤" @blur="onHandleTableBlur" :showOperation="false" 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>

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/QXWDX.vue View File

@ -214,6 +214,7 @@ export default {
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
labelWidth: 80,
}, },
} }
} }

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue View File

@ -214,6 +214,7 @@ export default {
subKey: "subJz", subKey: "subJz",
subFillType: "actFill", subFillType: "actFill",
maxlength: 20, maxlength: 20,
labelWidth: 80,
}, },
} }
} }

Loading…
Cancel
Save