zenglf
2023-09-19 3457909638c660c0cfcb521b6104ab64c679b914
src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue
@@ -58,17 +58,18 @@
        @click="searchReset"
        icon="reload"
      >重置</a-button>
      <a-button
      <!-- <a-button
        @click="handleAdd"
        type="primary"
        icon="plus"
      >新增</a-button>
      >新增</a-button> -->
      <a-button
        v-has="'equipmentCategory:import&outport'"
        type="primary"
        icon="download"
        @click="handleExportXls('工厂')"
        @click="handleExportXls('设备分类报表')"
      >导出</a-button>
      <a-dropdown v-if="selectedRowKeys.length > 0">
      <a-dropdown v-if="selectedRowKeys.length > 0" v-has="'equipmentCategory:add&Edit&delete'">
        <a-button style="margin-left: 8px">
          批量操作
          <a-icon type="down" />
@@ -92,9 +93,16 @@
      :loading="loading"
      :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps:getCheckboxProps}"
      @change="handleTableChange"
      :scroll="{ x: 'calc(1200px + 50%)', y: 900 }"
      :scroll="{ x: true}"
    >
      <template slot="num" slot-scope="text" >
        <a-tooltip placement="top" :title="text" trigger="hover">
          <div>
            <template slot="title"> </template>
            <p style="cusor:pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 130px;">{{ text }}</p>
          </div>
        </a-tooltip>
      </template>
      <!--状态栏个性展示-->
      <!-- <span
        slot="status"
@@ -134,9 +142,9 @@
            <a-icon type="down" />
          </a>
          <a-menu slot="overlay">
            <a-menu-item>
            <!-- <a-menu-item>
              <a @click="handleEdit(record)">编辑</a>
            </a-menu-item>
            </a-menu-item> -->
            <a-menu-item v-if="record.equipmentCategoryDtlList.length==0">
              <a-popconfirm
@@ -173,10 +181,10 @@
      </span>
    </a-table>
    <equipment-category-model
    <!-- <equipment-category-model
      ref="modalForm"
      @ok="modalFormOk"
    ></equipment-category-model>
    ></equipment-category-model> -->
  </a-card>
</template>
@@ -191,7 +199,7 @@
  name: 'EquipmentCategory2List.',
  mixins: [JeecgListMixin],
  components: {
    EquipmentCategoryModel,
    // EquipmentCategoryModel,
    JInput,
    JEllipsis,
  },
@@ -221,7 +229,7 @@
          },
          width: 50,
        },
        {
      /*   {
          title: '上级设备分类编码',
          align: "center",
          dataIndex: 'parentNum',
@@ -234,45 +242,76 @@
          title: '上级设备分类名称',
          align: "center",
          dataIndex: 'parentName',
        },
        }, */
        {
          title: '设备分类编码',
          title: '分类编码',
          align: "center",
          dataIndex: 'num',
          scopedSlots: { customRender: 'num' },
          width: 100,
          ellipsis: true,
          // scopedSlots: {
          //   customRender: 'num',
          // },
          // sorter: true,
        },
        {
          title: '设备分类名称',
          title: '分类名称',
          align: "center",
          dataIndex: 'name',
          // scopedSlots: {
          //   customRender: 'name',
          // },
          // sorter: true,
        },
        {
          title: '分类标识',
          align: "center",
          dataIndex: 'equipmentCategoryUda1_dictText',
          // scopedSlots: {
          //   customRender: 'name',
          // },
          // sorter: true,
        },
        {
          title: '技术状态鉴定周期',
          align: "center",
          dataIndex: 'equipmentCategoryUda2_dictText',
          // scopedSlots: {
          //   customRender: 'name',
          // },
          // sorter: true,
        },
        {
          title: '创建人',
          align: "center",
          dataIndex: 'createBy',
        },
        {
          title: '创建时间',
          align: "center",
          dataIndex: 'createTime',
        },
        {
          title: '修改人',
          align: "center",
          dataIndex: 'updateBy',
        },
        {
          title: '创建时间',
          align: "center",
          dataIndex: 'createTime',
        },
        {
          title: '修改时间',
          align: "center",
          dataIndex: 'updateTime',
        },
        // {
@@ -285,16 +324,14 @@
        //   sorter: true,
        //   width: 100,
        // },
        {
          title: '操作',
          align: "center",
          dataIndex: 'action',
          scopedSlots: {
            customRender: 'action',
          },
          width: 150,
          fixed: 'right',
        },
        // {
        //   title: '操作',
        //   align: "center",
        //   dataIndex: 'action',
        //   scopedSlots: {
        //     customRender: 'action',
        //   },
        // },
      ],
      url: {
        list: "/eam/equipmentCategory/list",
@@ -424,8 +461,12 @@
    this.queryParam = {};
    this.queryParam.id = this.nodeSelected.key;
    this.loadData(1);
  }
  },
  mounted() {
    this.$bus.$on('loadData', (data) => {
      this.loadData();
    })
  },
}
</script>