Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
47194750ec
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/components/Template/CustomTable.vue

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

@ -71,7 +71,7 @@
{{ row[col.prop] }} {{ row[col.prop] }}
</template> </template>
</div> </div>
<div class="m-l-5" v-if="col.showBodySub">
<div class="m-l-5" v-if="isShowBodySub(col)">
<template v-if="col.bodySubType === 'inputNumber'"> <template v-if="col.bodySubType === 'inputNumber'">
<HandleFormItem :fieldKey="prefixKey+'_'+col.bodySubKey+'_'+rowIndex" :fieldItemLabel="fieldItemLabel" type="inputNumber" @blur="onSubBlur(rowIndex, col.bodySubKey, $event)" <HandleFormItem :fieldKey="prefixKey+'_'+col.bodySubKey+'_'+rowIndex" :fieldItemLabel="fieldItemLabel" type="inputNumber" @blur="onSubBlur(rowIndex, col.bodySubKey, $event)"
@copy="onCopy(rowIndex, col)" :item="getBodySubItem(col)" v-model="row[col.bodySubKey]" @copy="onCopy(rowIndex, col)" :item="getBodySubItem(col)" v-model="row[col.bodySubKey]"
@ -200,6 +200,12 @@ export default {
// this.initHeaderSelectValues(); // this.initHeaderSelectValues();
}, },
methods: { methods: {
isShowBodySub(col) {
if(col.hasOwnProperty("disabled")){
return col.showBodySub
}
return col.bodySubType && col.bodySubKey;
},
// //
handleClickable(col, rowIndex, colIndex) { handleClickable(col, rowIndex, colIndex) {
console.log("clickable",rowIndex,colIndex, col) console.log("clickable",rowIndex,colIndex, col)

Loading…
Cancel
Save