田源
2024-11-25 36bbb746731b65d401cbe49853227e316d5e8c32
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
@@ -270,6 +270,7 @@
      const queryFields = !validatenull(this.currentDefineVO.queryColumns) ? this.currentDefineVO.queryColumns.map(item => item.field) : [];
      return this.currentDefineVO.cols[0].map(item => {
        const search = queryFields.includes(item.field); // 判断 field 是否在 queryColumns 里
        item.type = this.columnType[item.fieldType] || item.fieldType;
        if (this.currentDefineVO.btmType == 'fileobject' && item.field == 'name') {
          //是文件
          item.formatter = function (d) {
@@ -280,13 +281,17 @@
        if (typeof formatter == "string" && formatter != '') {
          formatter = eval("(" + formatter + ")");
        }
        item.type = this.columnType[item.fieldType] || item.fieldType;
        if (['date', 'datetime', 'time'].includes(item.type)) {
          item.valueFormat = item.dateFormate;
          item.format = item.dateFormate;
        }
        return {
          ...item,
          prop: item.field,
          label: item.title,
          search: search,
          formatter: formatter
          formatter: formatter,
          overHidden: true
        };
      });
    },