zhaowei
2025-03-06 ddd818f74d59c1fdeeed29714d660d7e49200c04
src/views/eam/InspectionCycleList.vue
@@ -1,7 +1,7 @@
<template>
  <a-card
    :bordered="false"
    title="点检周期规则"
    title=""
  >
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
@@ -69,6 +69,7 @@
        @click="handleAdd"
        type="primary"
        icon="plus"
        v-has="'inspectionCycle:add'"
      >新增</a-button>
      <a-button
@@ -77,7 +78,7 @@
        icon="search"
      >查询</a-button>
      <a-button
        type="primary"
        type="info"
        @click="searchReset"
        icon="reload"
        style="margin-left: 8px"
@@ -121,7 +122,7 @@
      <a-table
        ref="table"
        size="middle"
        :scroll="{ x: 'calc(1500px + 50%)', y: 900 }"
        :scroll="{ x: 'calc(2000px + 50%)', y: 900 }"
        bordered
        rowKey="id"
        :columns="columns"
@@ -139,22 +140,26 @@
          <a
            v-if="record.versionStatus == '2'"
            @click="handleRevise(record)"
            v-has="'inspectionCycle:revise'"
          >升版</a>
          <a-divider type="vertical" />
          <a
            v-if="record.versionStatus == '1'"
            @click="handleTakeEffect(record)"
            v-has="'inspectionCycle:takeEffect'"
          >生效</a>
          <a-divider type="vertical" />
          <a
            v-if="record.versionStatus == '1'"
            @click="handleEdit(record)"
            v-has="'inspectionCycle:edit'"
          >编辑</a>
          <a-divider type="vertical" />
          <a-popconfirm
            v-if="record.versionStatus == '1'"
            title="确定删除吗?"
            @confirm="() => handleDelete(record.id)"
            v-has="'inspectionCycle:delete'"
          >
            <a>删除</a>
          </a-popconfirm>
@@ -201,25 +206,15 @@
          },
        },
        {
          title: '版本',
          align: 'center',
          dataIndex: 'version',
        },
        {
          title: '版本状态',
          align: 'center',
          dataIndex: 'versionStatusName',
        },
        {
          title: '周期编码',
          align: 'center',
          dataIndex: 'code',
        },
        {
          title: '周期名称',
          align: 'center',
          dataIndex: 'name',
        },
        // {
        //   title: '周期名称',
        //   align: 'center',
        //   dataIndex: 'name',
        // },
        {
          title: '周期',
          align: 'center',
@@ -262,24 +257,54 @@
          dataIndex: 'unitName',
        },
        {
          title: '调整方式',
          title: '版本',
          align: 'center',
          dataIndex: 'arrangeWayName',
          dataIndex: 'version',
        },
        {
          title: '开工条件',
          title: '版本状态',
          align: 'center',
          dataIndex: 'startConditionName',
          dataIndex: 'versionStatusName',
        },
        // {
        //   title: '调整方式',
        //   align: 'center',
        //   dataIndex: 'arrangeWayName',
        // },
        // {
        //   title: '开工条件',
        //   align: 'center',
        //   dataIndex: 'startConditionName',
        // },
        // {
        //   title: '逾期处理方式',
        //   align: 'center',
        //   dataIndex: 'overdueDisposeModeName',
        // },
        // {
        //   title: '依据日历',
        //   align: 'center',
        //   dataIndex: 'accordingCalendarName',
        // },
        // {
        //   title: '生效时间',
        //   align: 'center',
        //   dataIndex: 'takeEffectTime',
        // },
        // {
        //   title: '失效时间',
        //   align: 'center',
        //   dataIndex: 'loseEfficacyTime',
        // },
        {
          title: '创建人',
          align: 'center',
          dataIndex: 'createBy',
        },
        {
          title: '逾期处理方式',
          title: '创建日期',
          align: 'center',
          dataIndex: 'overdueDisposeModeName',
        },
        {
          title: '依据日历',
          align: 'center',
          dataIndex: 'accordingCalendarName',
          dataIndex: 'createTime',
        },
        {
          title: '操作',