From 1a8f5192cb0f31e06f7a7e2bd3859528ce7beadd Mon Sep 17 00:00:00 2001 From: ctw <> Date: Wed, 8 Jan 2025 16:24:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E6=8D=A2=E7=AE=97=EF=BC=8C=E8=B0=83=E6=95=B4=E9=83=A8?= =?UTF-8?q?=E5=88=86=E8=A1=A8=E5=8D=95=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 +- src/api/wallet/mch-manage.ts | 74 ++++++++-------- src/components/Select/SelectCtcgd.vue | 85 +++++++++++++++++++ src/components/index.ts | 2 + src/views/canteen/boxesInfo/form.vue | 14 +-- src/views/canteen/boxesInfo/index.vue | 12 ++- src/views/canteen/canteenCategory/form.vue | 8 +- src/views/canteen/canteenCategory/index.vue | 28 +++--- src/views/canteen/canteenDailyMenu/index.vue | 63 ++++++-------- .../canteen/canteenOnlineCategory/form.vue | 8 +- .../canteen/canteenOnlineCategory/index.vue | 6 +- src/views/canteen/canteenOnlineSpu/form.vue | 29 ++++--- src/views/canteen/canteenOnlineSpu/index.vue | 24 ++++-- src/views/canteen/canteenSpu/form.vue | 63 ++++++++------ src/views/canteen/canteenSpu/index.vue | 29 +++++-- 15 files changed, 290 insertions(+), 163 deletions(-) create mode 100644 src/components/Select/SelectCtcgd.vue diff --git a/.env.development b/.env.development index 54dfa3c..577906e 100644 --- a/.env.development +++ b/.env.development @@ -10,12 +10,14 @@ ENV = 'development' # ADMIN 服务地址 # VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/ -VITE_ADMIN_PROXY_PATH = http://localhost:9999 +# VITE_ADMIN_PROXY_PATH = http://localhost:9999/ +VITE_ADMIN_PROXY_PATH = http://192.168.101.29:9999/ # 邓-本地 # 图片访问基础地址 -# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api +# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089 # VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc - VITE_IMAGE_BASE_PATH = http://localhost:9999 +# VITE_IMAGE_BASE_PATH = http://localhost:9999 +VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地 # 代码生成服务地址 VITE_GEN_PROXY_PATH = http://192.168.110.156:5003 diff --git a/src/api/wallet/mch-manage.ts b/src/api/wallet/mch-manage.ts index 58a1b4b..cf367c0 100644 --- a/src/api/wallet/mch-manage.ts +++ b/src/api/wallet/mch-manage.ts @@ -1,50 +1,50 @@ -import request from "/@/utils/request" +import request from '/@/utils/request'; export function pageJoin(query?: Object) { - return request({ - url: '/wallet/mch-manage/page-join', - method: 'get', - params: query - }) + return request({ + url: '/wallet/mch-manage/page-join', + method: 'get', + params: query, + }); } export function fetchList(query?: Object) { - return request({ - url: '/wallet/mch-manage/page', - method: 'get', - params: query - }) + return request({ + url: '/wallet/mch-manage/page', + method: 'get', + params: query, + }); } export function addObj(obj?: Object) { - return request({ - url: '/wallet/mch-manage', - method: 'post', - data: obj - }) + return request({ + url: '/wallet/mch-manage', + method: 'post', + data: obj, + }); } export function getObj(id?: string) { - return request({ - url: '/wallet/mch-manage/' + id, - method: 'get' - }) + return request({ + url: '/wallet/mch-manage/' + id, + method: 'get', + }); } export function delObjs(ids?: Object) { - return request({ - url: '/wallet/mch-manage', - method: 'delete', - data: ids - }) + return request({ + url: '/wallet/mch-manage', + method: 'delete', + data: ids, + }); } export function putObj(obj?: Object) { - return request({ - url: '/wallet/mch-manage', - method: 'put', - data: obj - }) + return request({ + url: '/wallet/mch-manage', + method: 'put', + data: obj, + }); } /** @@ -52,11 +52,11 @@ export function putObj(obj?: Object) { * @param type */ export function selectMerchantList(type?: string) { - return request({ - url: '/wallet/mch-manage/selectMerchantList', - method: 'get', - params: { - type: type - } - }) + return request({ + url: '/wallet/mch-manage/selectMerchantList', + method: 'get', + params: { + type: type, + }, + }); } diff --git a/src/components/Select/SelectCtcgd.vue b/src/components/Select/SelectCtcgd.vue new file mode 100644 index 0000000..c48a8a5 --- /dev/null +++ b/src/components/Select/SelectCtcgd.vue @@ -0,0 +1,85 @@ + + + diff --git a/src/components/index.ts b/src/components/index.ts index d3f3a02..5d54803 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -19,6 +19,7 @@ import SelectWalletType from '/@/components/Select/SelectWalletType.vue'; import SelectMch from '/@/components/Select/SelectMch.vue'; import SelectDept from '/@/components/Select/SelectDept.vue'; import SelectCtcg from '/@/components/Select/SelectCtcg.vue'; +import SelectCtcgd from '/@/components/Select/SelectCtcgd.vue'; // 第三方组件 import ElementPlus from 'element-plus'; @@ -59,6 +60,7 @@ export default { app.component('SelectMch', SelectMch); app.component('SelectDept', SelectDept); app.component('SelectCtcg', SelectCtcg); + app.component('SelectCtcgd', SelectCtcgd); // 导入全部的elmenet-plus的图标 for (const [key, component] of Object.entries(ElementPlusIconsVue)) { diff --git a/src/views/canteen/boxesInfo/form.vue b/src/views/canteen/boxesInfo/form.vue index aa5b34f..6a76685 100644 --- a/src/views/canteen/boxesInfo/form.vue +++ b/src/views/canteen/boxesInfo/form.vue @@ -2,28 +2,28 @@ - + - + - + - + - + {{ item.label }} @@ -129,7 +129,9 @@ const getboxesInfoData = (id: string) => { loading.value = true; getObj(id) .then((res: any) => { - Object.assign(form, res.data); + Object.assign(form, res.data, { + status: '' + res.data.status, + }); }) .finally(() => { loading.value = false; diff --git a/src/views/canteen/boxesInfo/index.vue b/src/views/canteen/boxesInfo/index.vue index 4990ffd..a59bd3b 100644 --- a/src/views/canteen/boxesInfo/index.vue +++ b/src/views/canteen/boxesInfo/index.vue @@ -40,20 +40,24 @@ @sort-change="sortChangeHandle" > - + - + + + - +