张诺
4 天以前 69a87f1a00c2937f269592e481ca1a9cc4dd98e9
src/views/equipmentManagement/inspectionManagement/index.vue
@@ -41,6 +41,12 @@
                  :is-selection="true"
                  :border="true"
                  :table-style="{ width: '100%', height: 'calc(100vh - 23em)' }"
                              :page="{
          current: pageNum,
          size: pageSize,
          total: total,
        }"
                              @pagination="pagination"
          >
          <template #inspector="{ row }">
            <div class="person-tags">
@@ -62,14 +68,6 @@
          </template>
            </PIMTable>
        </div>
        <pagination
            v-if="total>0"
            :page="pageNum"
            :limit="pageSize"
            :total="total"
            @pagination="handlePagination"
            :layout="'total, prev, pager, next, jumper'"
        />
      </div>
    </el-card>
    <form-dia ref="formDia" @closeDia="handleQuery"></form-dia>
@@ -131,12 +129,12 @@
    prop: "frequencyType",
    label: "频次",
    minWidth: 150,
    formatter: (_, __, val) => ({
      formatData: (cell) => ({
      DAILY: "每日",
      WEEKLY: "每周",
      MONTHLY: "每月",
      QUARTERLY: "季度"
    }[val] || "")
      }[cell] || "")
  },
  {
    prop: "frequencyDetail",
@@ -160,7 +158,7 @@
    }
  },
  { prop: "registrant", label: "登记人", minWidth: 100 },
  { prop: "createTime", label: "登记日期", minWidth: 100 },
   { prop: "dateStr", label: "登记日期", minWidth: 100 },
]);
// 操作列配置
@@ -221,10 +219,9 @@
  pageSize.value = 10;
  getList();
};
// 分页处理
const handlePagination = (val) => {
   pageNum.value = val.page;
   pageSize.value = val.size;
const pagination = (obj) => {
   pageNum.value = obj.page;
   pageSize.value = obj.limit;
   getList();
};
// 获取列表数据