“linengliang”
2023-08-29 78bdb5114382f006fb53fd461c7b90f4f43afc39
src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue
@@ -58,15 +58,15 @@
        @click="searchReset"
        icon="reload"
      >重置</a-button>
      <a-button
      <!-- <a-button
        @click="handleAdd"
        type="primary"
        icon="plus"
      >新增</a-button>
      >新增</a-button> -->
      <a-button
        type="primary"
        icon="download"
        @click="handleExportXls('工厂')"
        @click="handleExportXls('设备分类报表')"
      >导出</a-button>
      <a-dropdown v-if="selectedRowKeys.length > 0">
        <a-button style="margin-left: 8px">
@@ -92,7 +92,7 @@
      :loading="loading"
      :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps:getCheckboxProps}"
      @change="handleTableChange"
      :scroll="{ x: 'calc(1200px + 50%)', y: 900 }"
      :scroll="{ x: true, y: 900 }"
    >
      <!--状态栏个性展示-->
@@ -134,9 +134,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 +173,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 +191,7 @@
  name: 'EquipmentCategory2List.',
  mixins: [JeecgListMixin],
  components: {
    EquipmentCategoryModel,
    // EquipmentCategoryModel,
    JInput,
    JEllipsis,
  },
@@ -236,43 +236,71 @@
          dataIndex: 'parentName',
        }, */
        {
          title: '设备分类编码',
          title: '分类编码',
          align: "center",
          dataIndex: 'num',
          width: 200 ,
          // scopedSlots: {
          //   customRender: 'num',
          // },
          // sorter: true,
        },
        {
          title: '设备分类名称',
          title: '分类名称',
          align: "center",
          dataIndex: 'name',
          width: 200 ,
          // scopedSlots: {
          //   customRender: 'name',
          // },
          // sorter: true,
        },
        {
          title: '分类标识',
          align: "center",
          dataIndex: 'equipmentCategoryUda1_dictText',
          // scopedSlots: {
          //   customRender: 'name',
          // },
          // sorter: true,
          width: 200 ,
        },
        {
          title: '技术状态鉴定周期',
          align: "center",
          dataIndex: 'equipmentCategoryUda2_dictText',
          // scopedSlots: {
          //   customRender: 'name',
          // },
          // sorter: true,
          width: 200 ,
        },
        {
          title: '创建人',
          align: "center",
          dataIndex: 'createBy',
          width: 200 ,
        },
        {
          title: '创建时间',
          align: "center",
          dataIndex: 'createTime',
          width: 200 ,
        },
        {
          title: '修改人',
          align: "center",
          dataIndex: 'updateBy',
          width: 200 ,
        },
        {
          title: '修改时间',
          align: "center",
          dataIndex: 'updateTime',
          width: 200 ,
        },
        // {
@@ -285,16 +313,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 +450,12 @@
    this.queryParam = {};
    this.queryParam.id = this.nodeSelected.key;
    this.loadData(1);
  }
  },
  mounted() {
    this.$bus.$on('loadData', (data) => {
      this.loadData();
    })
  },
}
</script>