diff --git a/src/views/supermarket/mallCategory/form.vue b/src/views/supermarket/mallCategory/form.vue index cd73e38..6c5bb39 100644 --- a/src/views/supermarket/mallCategory/form.vue +++ b/src/views/supermarket/mallCategory/form.vue @@ -31,7 +31,7 @@ - + {{ item.label }} diff --git a/src/views/supermarket/mallCategory/index.vue b/src/views/supermarket/mallCategory/index.vue index 04eb2b2..5ac9729 100644 --- a/src/views/supermarket/mallCategory/index.vue +++ b/src/views/supermarket/mallCategory/index.vue @@ -1,84 +1,109 @@ diff --git a/src/views/supermarket/mallMerchant/form.vue b/src/views/supermarket/mallMerchant/form.vue index 306e4cb..dadb6d3 100644 --- a/src/views/supermarket/mallMerchant/form.vue +++ b/src/views/supermarket/mallMerchant/form.vue @@ -75,7 +75,7 @@ - + diff --git a/src/views/supermarket/mallMerchant/index.vue b/src/views/supermarket/mallMerchant/index.vue index cfe3c1d..ed29444 100644 --- a/src/views/supermarket/mallMerchant/index.vue +++ b/src/views/supermarket/mallMerchant/index.vue @@ -1,96 +1,125 @@ diff --git a/src/views/supermarket/mallProduct/form.vue b/src/views/supermarket/mallProduct/form.vue index 9d5d902..6a1c99a 100644 --- a/src/views/supermarket/mallProduct/form.vue +++ b/src/views/supermarket/mallProduct/form.vue @@ -1,590 +1,562 @@ \ No newline at end of file + diff --git a/src/views/supermarket/shopCategory/form.vue b/src/views/supermarket/shopCategory/form.vue index 3d170ae..fb9e8d2 100644 --- a/src/views/supermarket/shopCategory/form.vue +++ b/src/views/supermarket/shopCategory/form.vue @@ -23,9 +23,9 @@ - + - {{ item.label }} + {{ item.label }} @@ -137,7 +137,7 @@ const getshopCategoryData = (id: string) => { loading.value = true getObj(id) .then((res: any) => { - Object.assign(form, res.data) + Object.assign(form, res.data, { status: res.data.status.toString() }) // 编辑时加载分类并排除自己 loadCategories() }) diff --git a/src/views/supermarket/shopSku/index.vue b/src/views/supermarket/shopSku/index.vue index a97505b..5d7112f 100644 --- a/src/views/supermarket/shopSku/index.vue +++ b/src/views/supermarket/shopSku/index.vue @@ -1,65 +1,99 @@ \ No newline at end of file + try { + await delObjs(ids) + getDataList() + useMessage().success("删除成功") + } catch (err: any) { + useMessage().error(err.msg) + } +} + diff --git a/src/views/supermarket/shopSpu/index.vue b/src/views/supermarket/shopSpu/index.vue index 648e87f..436a844 100644 --- a/src/views/supermarket/shopSpu/index.vue +++ b/src/views/supermarket/shopSpu/index.vue @@ -60,7 +60,7 @@ - +