yuan
4 天以前 79548559809eec7c4fb8c666314605d688dffeb4
src/components/PIMTable/PIMTable.vue
@@ -202,11 +202,11 @@
          style="width: 100%"
          @click="goLink(scope.row, item.linkMethod)"
        >
          <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span>
          <span v-if="!item.formatData">{{ dateOnly(scope.row[item.prop]) }}</span>
        </div>
        <!-- 默认纯展示数据 -->
        <div v-else class="cell" style="width: 100%">
          <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span>
          <span v-if="!item.formatData">{{ dateOnly(scope.row[item.prop]) }}</span>
          <span v-else>{{
            formatters(scope.row[item.prop], item.formatData)
          }}</span>
@@ -228,6 +228,7 @@
import pagination from "./Pagination.vue";
import { ref, inject, getCurrentInstance } from "vue";
import { ElMessage } from "element-plus";
import { dateOnly } from "@/utils/dateFormat";
// 获取全局的 uploadHeader
const { proxy } = getCurrentInstance();