feat: 商品同步规则优化

This commit is contained in:
GaoHao
2025-04-11 17:57:35 +08:00
parent 688f30635b
commit cc13161f16
9 changed files with 76 additions and 11 deletions

View File

@@ -176,6 +176,8 @@ import searchConfig from "./goodsGroupconfig/search";
import searchConfig2 from "./goodsGroupconfig/search2";
import myDialog from '@/components/mycomponents/myDialog.vue'
import selectGoodslist from "./goodsGroupconfig/selectGoodslist.vue"
import { isSyncStatus } from "@/utils/index";
const {
searchRef,
searchRefs,
@@ -194,6 +196,18 @@ const {
handleFilterChange,
} = usePage();
if (isSyncStatus()) {
contentConfig.toolbar[0].hidden = true
contentConfig.cols[contentConfig.cols.length - 1].operat[0].hidden = true
contentConfig.cols[contentConfig.cols.length - 1].operat[1].hidden = true
contentConfig.cols[3].templet = "custom"
} else {
contentConfig.toolbar[0].hidden = false
contentConfig.cols[3].templet = "switch"
contentConfig.cols[contentConfig.cols.length - 1].operat[0].hidden = false
contentConfig.cols[contentConfig.cols.length - 1].operat[1].hidden = false
}
let switchref = ref(false)
// 新增

View File

@@ -73,7 +73,7 @@ const contentConfig: IContentConfig<UserPageQuery> = {
fixed: "right",
width: 280,
templet: "tool",
operat: ["edit", "delete"],
operat: [{ text: "编辑", icon: 'edit', name: "edit"}, { text: "删除", icon: 'delete', type: 'danger', name: "delete"}],
},
],
};