From 13ae8ef89d9efcfa0440b5c216160f71839a8364 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Wed, 30 Jul 2025 17:04:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8C=87=E4=BB=A4=E5=90=8C?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 +++--- .env.production | 6 +++--- .../components/ConfigServiceDirectiveForm.vue | 10 +++++----- .../serviceType/components/ConfigServiceTypeForm.vue | 8 +++++--- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.env.development b/.env.development index 6941016..7e5d468 100644 --- a/.env.development +++ b/.env.development @@ -6,13 +6,13 @@ VITE_PUBLIC_PATH = / # 跨域代理,您可以配置多个 ,请注意,没有换行符 -VITE_PROXY = [["/nursing-unit_101","http://localhost:8091/nursing-unit_101"],["/upload","http://localhost:3300/upload"]] +VITE_PROXY = [["/nursing-unit_102","http://localhost:8092/nursing-unit_102"],["/upload","http://localhost:3300/upload"]] #后台接口全路径地址(必填) -VITE_GLOB_DOMAIN_URL=http://localhost:8091/nursing-unit_101 +VITE_GLOB_DOMAIN_URL=http://localhost:8092/nursing-unit_102 #后台接口父地址(必填) -VITE_GLOB_API_URL=/nursing-unit_101 +VITE_GLOB_API_URL=/nursing-unit_102 # 接口前缀 VITE_GLOB_API_URL_PREFIX= diff --git a/.env.production b/.env.production index e2c31c4..3a10e4e 100644 --- a/.env.production +++ b/.env.production @@ -2,7 +2,7 @@ VITE_USE_MOCK = false # 发布路径 -VITE_PUBLIC_PATH = /biz101 +VITE_PUBLIC_PATH = /biz103 # 是否启用gzip或brotli压缩 # 选项值: gzip | brotli | none @@ -13,10 +13,10 @@ VITE_BUILD_COMPRESS = 'gzip' VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false #后台接口父地址(必填) -VITE_GLOB_API_URL=/nursingunit101 +VITE_GLOB_API_URL=/nursingunit103 #后台接口全路径地址(必填) -VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursingunit101 +VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursingunit103 # 接口父路径前缀 VITE_GLOB_API_URL_PREFIX= diff --git a/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue b/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue index d7a7f9a..1ac37d8 100644 --- a/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue +++ b/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue @@ -106,7 +106,7 @@ 暂无文件 + > @@ -121,13 +121,13 @@ + > + > @@ -167,7 +167,7 @@ 暂无文件 + > @@ -353,7 +353,7 @@ const formComputedData = computed(() => { }; return { - mediaFileSavePath: `directive/${instructionName}/${categoryName}/${typeName}/${formData.directiveName}/${cycleTypeName}`, + mediaFileSavePath: `directive/${instructionName}/${categoryName}/${typeName}/${cycleTypeName}/${formData.directiveName}`, instructionName, categoryName, typeName, diff --git a/src/views/services/serviceType/components/ConfigServiceTypeForm.vue b/src/views/services/serviceType/components/ConfigServiceTypeForm.vue index 3a2f2bd..4b36503 100644 --- a/src/views/services/serviceType/components/ConfigServiceTypeForm.vue +++ b/src/views/services/serviceType/components/ConfigServiceTypeForm.vue @@ -92,12 +92,14 @@ const categoryDictCode = computed(() => { if (!formData.instructionId) { return 'nu_config_service_category,category_name,id,1=2'; } - return `nu_config_service_category,category_name,id,del_flag = 0 and instruction_id = ${formData.instructionId} order by sort asc`; + return `nu_config_service_category,category_name,id,del_flag = 0 and instruction_id = '${formData.instructionId}' order by sort asc`; }); // 监听 instructionId 变化,清空 categoryId -watch(() => formData.instructionId, () => { - formData.categoryId = ''; +watch(() => formData.instructionId, (n,o) => { + if(!!0){ + formData.categoryId = ''; + } }); // 表单禁用