田源
2024-03-20 733b2a61b582334174962aac815050366dc21795
整合代码
已修改3个文件
16 ■■■■■ 文件已修改
Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/ProjectWeb/src/components/dynamic-components/dynamic-table-form.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue
@@ -25,11 +25,12 @@
    <div v-if="type === 'form'">
      <el-button v-for="item in basicButtonList"
                 :key="item.oid"
                 :type="(item.paramVOS.buttonType !== 'text' ? item.paramVOS.buttonType : 'primary') || 'primary'" plain
                 size="small"
                 :icon="item.icon"
                 :type="(item.paramVOS.buttonType !== 'text' ? item.paramVOS.buttonType : 'primary') || 'primary'"
                 plain
                 size="small"
                 @click="buttonClick(item)">
        {{item.name}}
        {{ item.name }}
      </el-button>
    </div>
  </div>
@@ -67,11 +68,14 @@
      const basicColumn = this.butttonList;
      if (this.type === 'form') {
        console.log('basicColumn',basicColumn)
        return basicColumn;
      } else if (this.type === 'table') {
        const top = basicColumn.filter(item => item.paramVOS.location === 'top' || func.isEmpty(item.paramVOS.location)); // 过滤出来表格上面区域展示的按钮
        const menu = basicColumn.filter(item => item.paramVOS.location === 'menu'); // 过滤出来操作栏展示的按钮
        return {
          top: top,
          menu: menu
Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
@@ -78,7 +78,7 @@
          prop: item.field,
          type: typeValue,
          value: item.defaultValue,
          dicData: item.type === 'combox' ? item.dicData : null,
          dicData: item.type === 'combox' ? item.dicData : item.dicUrl,
          readonly: item.readOnly,
          disabled: item.disabled,
          labelSuffix: item.suffix,
Source/ProjectWeb/src/components/dynamic-components/dynamic-table-form.vue
@@ -99,7 +99,7 @@
          prop: item.field,
          type: typeValue,
          value: item.defaultValue,
          dicData: item.type === 'combox' ? item.dicData : null,
          dicData: item.type === 'combox' ? item.dicData : item.dicUrl,
          readonly: item.readOnly,
          disabled: item.disabled,
          labelSuffix: item.suffix,