From 32d07535f580d6eb450732f3c1087065b7f2585b Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 18 Jun 2025 11:15:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=80=80=E8=BF=98=E5=90=84=E8=87=AA?= =?UTF-8?q?=E9=A3=9F=E5=A0=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 +- src/components/DictSelect/index.vue | 29 ++-- .../wallet/wallet-recharge-apply/form.vue | 53 +++++-- .../wallet/wallet-recharge-apply/index.vue | 140 ++++++------------ 4 files changed, 114 insertions(+), 116 deletions(-) diff --git a/.env.development b/.env.development index 4a5dc26..d895fee 100644 --- a/.env.development +++ b/.env.development @@ -8,19 +8,19 @@ VITE_OPEN = true ENV = 'development' # ADMIN 服务地址 -VITE_ADMIN_PROXY_PATH = http://123.157.250.162:8089/api/ # 测试线上 +# VITE_ADMIN_PROXY_PATH = http://123.157.250.162:8089/api/ # 测试线上 # 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://192.168.101.139:9999/ # 邓-本地 +VITE_ADMIN_PROXY_PATH = http://192.168.101.139:9999/ # 邓-本地 # VITE_ADMIN_PROXY_PATH = http://59.202.170.152:81/api # 正式环境线上 # 图片访问基础地址 -VITE_IMAGE_BASE_PATH = http://123.157.250.162:8089/api/ # 测试线上 +# VITE_IMAGE_BASE_PATH = http://123.157.250.162:8089/api/ # 测试线上 # VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api/ # 测试线上-过期 # VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc # VITE_IMAGE_BASE_PATH = http://localhost:9999 -# VITE_IMAGE_BASE_PATH = http://192.168.101.139:9999 # 邓-本地 +VITE_IMAGE_BASE_PATH = http://192.168.101.139:9999 # 邓-本地 # VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境线上 # 代码生成服务地址 diff --git a/src/components/DictSelect/index.vue b/src/components/DictSelect/index.vue index 260e222..6433532 100644 --- a/src/components/DictSelect/index.vue +++ b/src/components/DictSelect/index.vue @@ -1,12 +1,7 @@ @@ -20,6 +15,7 @@ const selectId = defineModel() export type Props = { dictCode: string placeholder?: string + hideIds?: string | Array } const props = withDefaults(defineProps(), { placeholder: "请选择", @@ -40,6 +36,21 @@ watch( { immediate: true }, ) +const filterDictList = computed(() => { + const hideKeys = props.hideIds + // 排序 + const list = state.dictList?.sort((pren: any, next: any) => { + return pren.sortOrder - next.sortOrder + }) + if (!hideKeys) return list + if (typeof hideKeys == "string") { + return list.filter((p: any) => p.value != hideKeys) + } + if (Array.isArray(hideKeys)) { + return list.filter((p: any) => !hideKeys.includes(p.value)) + } +}) + async function getDictOptions() { if (!props.dictCode) return [] const dicts = dict().getDict(props.dictCode) @@ -60,7 +71,7 @@ async function getDictOptions() { diff --git a/src/views/wallet/wallet-recharge-apply/form.vue b/src/views/wallet/wallet-recharge-apply/form.vue index 8addf21..1af26cc 100644 --- a/src/views/wallet/wallet-recharge-apply/form.vue +++ b/src/views/wallet/wallet-recharge-apply/form.vue @@ -1,16 +1,19 @@