From cc9090de11f5de51e40ac218c852499ab682847a Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 2 Jan 2025 10:26:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=E9=80=89=E6=8B=A9=E5=95=86=E6=88=B7?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 +-- src/components/Select/SelectMerchant.vue | 74 ++++++++++++++++++++++++ src/components/index.ts | 2 + src/views/wallet/wallet-active/form.vue | 3 +- src/views/wallet/wallet-freeze/index.vue | 2 +- 5 files changed, 83 insertions(+), 6 deletions(-) create mode 100644 src/components/Select/SelectMerchant.vue diff --git a/.env.development b/.env.development index 274b324..e0df6a1 100644 --- a/.env.development +++ b/.env.development @@ -8,12 +8,12 @@ VITE_OPEN = true ENV = 'development' # ADMIN 服务地址 -VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ -#VITE_ADMIN_PROXY_PATH = http://192.168.110.156:9999 +# VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ +VITE_ADMIN_PROXY_PATH = http://localhost:9999 # 图片访问基础地址 -VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api -# VITE_IMAGE_BASE_PATH = http://localhost:9999 +# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api +VITE_IMAGE_BASE_PATH = http://localhost:9999 # 代码生成服务地址 VITE_GEN_PROXY_PATH = http://192.168.110.156:5003 diff --git a/src/components/Select/SelectMerchant.vue b/src/components/Select/SelectMerchant.vue new file mode 100644 index 0000000..00403b1 --- /dev/null +++ b/src/components/Select/SelectMerchant.vue @@ -0,0 +1,74 @@ + + + \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index 6e99cb0..98eb687 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -16,6 +16,7 @@ import PreviewImage from "/@/components/PreviewImage/index.vue" // 业务组件 import SelectUser from '/@/components/Select/SelectUser.vue' import SelectWalletType from '/@/components/Select/SelectWalletType.vue' +import SelectMerchant from '/@/components/Select/SelectMerchant.vue' // 第三方组件 @@ -54,6 +55,7 @@ export default { app.component('PreviewImage', PreviewImage) app.component('SelectUser', SelectUser) app.component('SelectWalletType', SelectWalletType) + app.component('SelectMerchant', SelectMerchant) // 导入全部的elmenet-plus的图标 for (const [key, component] of Object.entries(ElementPlusIconsVue)) { diff --git a/src/views/wallet/wallet-active/form.vue b/src/views/wallet/wallet-active/form.vue index 0fd9889..e56fa6d 100644 --- a/src/views/wallet/wallet-active/form.vue +++ b/src/views/wallet/wallet-active/form.vue @@ -2,9 +2,10 @@ + - + diff --git a/src/views/wallet/wallet-freeze/index.vue b/src/views/wallet/wallet-freeze/index.vue index 85ab699..eb45dd3 100644 --- a/src/views/wallet/wallet-freeze/index.vue +++ b/src/views/wallet/wallet-freeze/index.vue @@ -45,7 +45,7 @@ \ No newline at end of file diff --git a/src/components/Select/SelectMerchant.vue b/src/components/Select/SelectMerchant.vue index 00403b1..830dc08 100644 --- a/src/components/Select/SelectMerchant.vue +++ b/src/components/Select/SelectMerchant.vue @@ -70,5 +70,4 @@ function clear() { state.selectId = null getOptions() } - \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index 98eb687..5ee5408 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -17,6 +17,7 @@ import PreviewImage from "/@/components/PreviewImage/index.vue" import SelectUser from '/@/components/Select/SelectUser.vue' import SelectWalletType from '/@/components/Select/SelectWalletType.vue' import SelectMerchant from '/@/components/Select/SelectMerchant.vue' +import SelectDept from '/@/components/Select/SelectDept.vue' // 第三方组件 @@ -56,6 +57,7 @@ export default { app.component('SelectUser', SelectUser) app.component('SelectWalletType', SelectWalletType) app.component('SelectMerchant', SelectMerchant) + app.component('SelectDept', SelectDept) // 导入全部的elmenet-plus的图标 for (const [key, component] of Object.entries(ElementPlusIconsVue)) { diff --git a/src/views/canteen/merchantInfo/form.vue b/src/views/canteen/merchantInfo/form.vue index 36dd031..09f4476 100644 --- a/src/views/canteen/merchantInfo/form.vue +++ b/src/views/canteen/merchantInfo/form.vue @@ -1,83 +1,73 @@ diff --git a/src/views/canteen/merchantInfo/index.vue b/src/views/canteen/merchantInfo/index.vue index befebb6..44c85f5 100644 --- a/src/views/canteen/merchantInfo/index.vue +++ b/src/views/canteen/merchantInfo/index.vue @@ -7,39 +7,46 @@ v-auth="'canteen_merchantInfo_add'"> 新 增 - + 删除 - - - - - - - - - - - - + + + + + + + + + + + + @@ -84,7 +91,7 @@ const { sizeChangeHandle, sortChangeHandle, downBlobFile, - tableStyle + tableStyle } = useTable(state) // 清空搜索条件 diff --git a/src/views/wallet/wallet-active/form.vue b/src/views/wallet/wallet-active/form.vue index e56fa6d..17e8e34 100644 --- a/src/views/wallet/wallet-active/form.vue +++ b/src/views/wallet/wallet-active/form.vue @@ -1,29 +1,18 @@