gongchunyi
7 天以前 b77b30a7a58bfb2e6298391afc291c900fbc9c0a
src/views/equipmentManagement/upkeep/index.vue
@@ -63,12 +63,6 @@
            }"
                    @selection-change="handleScheduledSelectionChange"
                    @pagination="changeScheduledPage">
            <template #isActiveRef="{ row }">
              <el-tag v-if="row.isActive === 1"
                      type="success">开启</el-tag>
              <el-tag v-else
                      type="info">关闭</el-tag>
            </template>
            <template #statusRef="{ row }">
              <el-tag v-if="row.status === 1"
                      type="success">启用</el-tag>
@@ -314,7 +308,7 @@
    {
      prop: "frequencyType",
      label: "频次",
      minWidth: 50,
      minWidth: 150,
      // PIMTable 使用的是 formatData,而不是 Element-Plus 的 formatter
      formatData: cell =>
        ({
@@ -327,7 +321,7 @@
    {
      prop: "frequencyDetail",
      label: "开始日期与时间",
      minWidth: 130,
      minWidth: 150,
      // 同样改用 formatData,PIMTable 内部会把单元格值传进来
      formatData: cell => {
        if (typeof cell !== "string") return "";
@@ -348,14 +342,6 @@
        );
      },
    },
    {
      prop: "isActive",
      label: "定时任务",
      dataType: "slot",
      slot: "isActiveRef",
      align: "center",
      minWidth: 100,
    },
    { prop: "maintenancePerson", label: "保养人", minWidth: 100 },
    { prop: "registrant", label: "登记人", minWidth: 100 },
    {
@@ -371,7 +357,7 @@
      dataType: "slot",
      slot: "operation",
      align: "center",
      width: "150px",
      width: "200px",
    },
  ]);