From 704a721f1ea9e3050be765afff0bb86dbc6bb603 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期一, 11 八月 2025 10:42:43 +0800 Subject: [PATCH] 报红更改 --- src/views/system/dept/utils/hook.tsx | 39 +++++++++++++++------------------------ 1 files changed, 15 insertions(+), 24 deletions(-) diff --git a/src/views/system/dept/utils/hook.tsx b/src/views/system/dept/utils/hook.tsx index 0608031..01b6a0d 100644 --- a/src/views/system/dept/utils/hook.tsx +++ b/src/views/system/dept/utils/hook.tsx @@ -1,4 +1,4 @@ -import dayjs from "dayjs"; +// import dayjs from "dayjs"; import editForm from "../form.vue"; import { handleTree } from "@/utils/tree"; import { message } from "@/utils/message"; @@ -15,22 +15,17 @@ caigourenDelete, caigourenBatchDelete } from "@/api/item/index"; -import { usePublicHooks } from "../../hooks"; +// import { usePublicHooks } from "../../hooks"; import { addDialog } from "@/components/ReDialog"; -import { type Ref, reactive, ref, onMounted, h, computed } from "vue"; +import { type Ref, reactive, ref, onMounted, h } from "vue"; import type { FormItemProps } from "./types"; -import { - cloneDeep, - isAllEmpty, - deviceDetection, - getKeyList -} from "@pureadmin/utils"; -import { useUserStoreHook } from "@/store/modules/user"; +import { cloneDeep, deviceDetection, getKeyList } from "@pureadmin/utils"; +// import { useUserStoreHook } from "@/store/modules/user"; import type { PaginationProps } from "@pureadmin/table"; -const nowRole = computed(() => { - return useUserStoreHook().nowRole; -}); +// const nowRole = computed(() => { +// return useUserStoreHook().nowRole; +// }); const selectedNum = ref(0); export function useDept(tableRef: Ref) { @@ -102,7 +97,7 @@ const formRef = ref(); const dataList = ref([]); const loading = ref(true); - const { tagStyle } = usePublicHooks(); + // const { tagStyle } = usePublicHooks(); const getOrderStatus = row => { const res = state.orderStatusList.find(item => { return row.orderStatus == item.status; @@ -131,7 +126,7 @@ label: "椤圭洰杩涘害", prop: "orderStatus", minWidth: 70, - cellRenderer: ({ row, props }) => getOrderStatus(row) + cellRenderer: ({ row }) => getOrderStatus(row) }, { label: "鎶ュ悕璐�", @@ -157,15 +152,13 @@ label: "璐ㄧ枒", prop: "zhiyi", minWidth: 100, - cellRenderer: ({ row, props }) => ( - <span>{row.status === 1 ? "鏈�" : "鏃�"}</span> - ) + cellRenderer: ({ row }) => <span>{row.status === 1 ? "鏈�" : "鏃�"}</span> }, { label: "鎶曡瘔", prop: "tousu", minWidth: 100, - cellRenderer: ({ row, props }) => ( + cellRenderer: ({ row }) => ( // <el-tag size={props.size} style={tagStyle.value(row.status)}> <span>{row.status === 1 ? "鏈�" : "鏃�"}</span> // </el-tag> @@ -200,7 +193,7 @@ label: "椤圭洰杩涘害", prop: "orderStatus", minWidth: 70, - cellRenderer: ({ row, props }) => getOrderStatus(row) + cellRenderer: ({ row }) => getOrderStatus(row) }, { label: "鎶ュ悕璐�", @@ -226,15 +219,13 @@ label: "璐ㄧ枒", prop: "zhiyi", minWidth: 100, - cellRenderer: ({ row, props }) => ( - <span>{row.status === 1 ? "鏈�" : "鏃�"}</span> - ) + cellRenderer: ({ row }) => <span>{row.status === 1 ? "鏈�" : "鏃�"}</span> }, { label: "鎶曡瘔", prop: "tousu", minWidth: 100, - cellRenderer: ({ row, props }) => ( + cellRenderer: ({ row }) => ( // <el-tag size={props.size} style={tagStyle.value(row.status)}> <span>{row.status === 1 ? "鏈�" : "鏃�"}</span> // </el-tag> -- Gitblit v1.9.1