licp
2024-03-28 f71832a6389efa2f851b8b7bd7a615ed2d3250e4
src/views/common/ztt-table.vue
@@ -150,6 +150,7 @@
        v-on="$listeners"
        :highlight-current-row="true"
        :row-key="rowKey"
        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
        @row-dblclick="dbClickRow"
        @row-contextmenu="contextMenu"
        @header-click="headClick"
@@ -182,6 +183,7 @@
          v-if="options.multiSelect && !isEdit"
          style="width: 55px;"
          :selectable="selectHandle"
        >
        </el-table-column>
        <!--单选框-->
@@ -324,8 +326,13 @@
              <template v-else>
                <template v-if="!item.render">
                  <template v-if="item.formatter">
                    <span v-if="item.isTag" style="text-align: center;">
                    <span v-if="item.isTag&&scope.row[item.prop]!=null" style="text-align: center;">
                      <el-tag style="width:60px;margin: 3px;" :type="scope.row[item.prop] == 0 ? 'success' : 'info'">
                        <span v-html="item.formatter(scope.row, item, scope.row[item.prop])"></span>
                      </el-tag>
                    </span>
                    <span v-if="item.isTags&&scope.row[item.prop]!=null" style="text-align: center;">
                      <el-tag style="width:60px;margin: 3px;" :type="scope.row[item.prop] == '正常' ? 'success' : (scope.row[item.prop] == '异常'?'warning':(scope.row[item.prop] == '返修'?'danger':'info'))">
                        <span v-html="item.formatter(scope.row, item, scope.row[item.prop])"></span>
                      </el-tag>
                    </span>
@@ -571,7 +578,9 @@
    //需要合并的字段集合
    mergeSpanArr: {
        type: Array,
        default: []
        default: ()=>{
            return []
        }
    },
    toolbarMaxLength: {
      type: Number,