diff --git a/src/components/Select/SelectMch.vue b/src/components/Select/SelectMch.vue
index e9e0b06..b0cc2e8 100644
--- a/src/components/Select/SelectMch.vue
+++ b/src/components/Select/SelectMch.vue
@@ -1,7 +1,7 @@
({
const state = reactive({
loading: true,
- selectId: selectId,
+ selectId: selectId.value,
options: [],
})
diff --git a/src/views/supermarket/mallCategory/form.vue b/src/views/supermarket/mallCategory/form.vue
index 6c5bb39..ff32a13 100644
--- a/src/views/supermarket/mallCategory/form.vue
+++ b/src/views/supermarket/mallCategory/form.vue
@@ -2,11 +2,9 @@
-
-
-
-
-
+
+
+
@@ -58,8 +56,6 @@
import { useDict } from "/@/hooks/dict"
import { useMessage } from "/@/hooks/message"
import { getObj, addObj, putObj, fetchList } from "/@/api/supermarket/mallCategory"
-import { selectOption as fetchMerchantSelect } from "/@/api/supermarket/mallMerchant"
-import { rule } from "/@/utils/validate"
import { ref, reactive, nextTick, onMounted } from "vue"
const emit = defineEmits(["refresh"])
@@ -90,9 +86,6 @@ const dataRules = ref({
// 分类选项
const categoryOptions = ref([])
-// 商户选项
-const merchantOptions = ref([])
-
// 获取所有分类(排除自身)
const loadCategories = async () => {
const res = await fetchList({ size: 9999 })
@@ -102,15 +95,8 @@ const loadCategories = async () => {
}
}
-// 加载商户选项
-const loadMerchantOptions = async () => {
- const res = await fetchMerchantSelect()
- merchantOptions.value = res.data || []
-}
-
onMounted(() => {
loadCategories()
- loadMerchantOptions()
})
// 打开弹窗
@@ -132,7 +118,6 @@ const openDialog = (id: string) => {
} else {
// 新增时直接加载分类和商户
loadCategories()
- loadMerchantOptions()
}
}
@@ -163,7 +148,6 @@ const getmallCategoryData = (id: string) => {
Object.assign(form, res.data)
// 编辑时加载分类和商户并排除自己
loadCategories()
- loadMerchantOptions()
})
.finally(() => {
loading.value = false
diff --git a/src/views/supermarket/mallCategory/index.vue b/src/views/supermarket/mallCategory/index.vue
index 5ac9729..1434dba 100644
--- a/src/views/supermarket/mallCategory/index.vue
+++ b/src/views/supermarket/mallCategory/index.vue
@@ -55,7 +55,7 @@
@sort-change="sortChangeHandle"
>
-
+
diff --git a/src/views/supermarket/mallProduct/form.vue b/src/views/supermarket/mallProduct/form.vue
index 6a1c99a..3dd959a 100644
--- a/src/views/supermarket/mallProduct/form.vue
+++ b/src/views/supermarket/mallProduct/form.vue
@@ -6,10 +6,8 @@
-
-
-
-
+
+
@@ -232,12 +230,12 @@