WXL
2024-05-28 257f46bce7c3325c9d9aed68e0df84ea279019aa
src/components/SFtable/index.vue
@@ -34,7 +34,7 @@
      :formatter="formatData"
    >
    </el-table-column>
    <el-table-column
    <!-- <el-table-column
      label="是否可用"
      align="center"
      key="isavailable"
@@ -43,9 +43,8 @@
    >
      <template slot-scope="scope">
        <dict-tag :options="qyoptions" :value="scope.row.usestate" />
      </template>
    </el-table-column>
    </el-table-column> -->
    <el-table-column
      v-if="center"
      label="操作"
@@ -144,8 +143,14 @@
        }
        return "手动";
      }
      if (column.property === "createTime") {
        return dayjs(cellValue).format("YYYY.MM.DD HH:mm:ss");
      if (
        column.property === "createTime" ||
        column.property === "inhosptime"
      ) {
        if (cellValue === null) {
          return "";
        }
        return dayjs(cellValue).format("YYYY-MM-DD ");
      }
      return cellValue;
    },