Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
bd5000341a
3 changed files with 6 additions and 5 deletions
  1. +2
    -2
      src/components/Template/CustomTable.vue
  2. +1
    -1
      src/components/Template/HandleFormItem.vue
  3. +3
    -2
      src/views/business/comps/template/TemplateTable.vue

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

@ -392,7 +392,7 @@ export default {
options: col.bodyOptions,
maxlength: col.bodyMaxlength,
label: this.$t(col.label),
precision: currentItem[col.bodyPrecisionKey] || col.precision || 0,
precision: currentItem[col.bodyPrecisionKey] || col.precision ,
copyFrom: col.copyFrom || "",
compareTo: col.bodyCompareTo, // compareTo
type: col.bodyType || "input",
@ -409,7 +409,7 @@ export default {
maxlength: col.bodySubMaxlength || 10,
label: "",
placeholder: col.bodySubPlaceholder || "请输入",
precision: col.subPrecision || 0,
precision: col.subPrecision,
compareTo: col.bodySubCompareTo, // compareTo
type: col.bodySubType || "input",
}

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

@ -11,7 +11,7 @@
<DecimalInput v-else-if="type === 'inputNumber'" @blur="onCommonHandleSaveRecord"
:maxlength="item.maxlength || 10" class="flex1" :disabled="getDisabled()"
:controls="item.controls || false" :min="item.min || 0" :prepend="item.prepend"
:decimalDigits="item.precision" :class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')"
:decimalDigits="item.precision || 6" :class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')"
:placeholder="getPlaceholder()" v-model="inputValue" @input="onInputChange" @change="onInputChange" />
<el-select v-else-if="type === 'select'" class="flex1" :multiple="item.multiple"
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" v-model="inputValue"

+ 3
- 2
src/views/business/comps/template/TemplateTable.vue View File

@ -80,8 +80,9 @@ export default {
if (v.fhyjjl) {
this.fhyjjl = JSON.parse(v.fhyjjl) || [];
}
if (v.fieldCheckObj) {
this.fieldCheckObj = JSON.parse(v.fieldCheckObj) || {};
if (v.zdgxjl) {
this.fieldCheckObj = JSON.parse(v.zdgxjl) || {};
console.log(this.fieldCheckObj,v.zdgxjl,"v.zdgxjl")
}
}
}

Loading…
Cancel
Save