diff --git a/.env.development b/.env.development index e118379..a126418 100644 --- a/.env.development +++ b/.env.development @@ -48,3 +48,6 @@ VITE_GLOB_API_URL_PREFIX = VITE_GLOB_DISABLE_NEWS=false # 禁用关闭页面提示 # VITE_GLOB_CLOSE_ALERT_DISABLED=true + +#附件上传显示提示 +VITE_GLOB_UPLOAD_ALERT_TIP=(严禁在本非涉密平台处理、传输国家秘密、工作秘密、商业秘密、敏感信息,请确认扫描、传输的文件资料不涉密!) diff --git a/.env.development.example b/.env.development.example index 5f1c007..5bb5b2e 100644 --- a/.env.development.example +++ b/.env.development.example @@ -42,3 +42,5 @@ VITE_GLOB_DISABLE_NEWS = true #登录时是否需要输入租户码 # VITE_GLOB_TENANT_INPUT_REQUIRED = true +#附件上传显示提示 +VITE_GLOB_UPLOAD_ALERT_TIP=(严禁在本非涉密平台处理、传输国家秘密、工作秘密、商业秘密、敏感信息,请确认扫描、传输的文件资料不涉密!) diff --git a/.env.production b/.env.production index 1eb4f1a..abe6dc5 100644 --- a/.env.production +++ b/.env.production @@ -45,3 +45,6 @@ VITE_USE_PWA = false VITE_GLOB_DISABLE_NEWS=false # 禁用关闭页面提示 # VITE_GLOB_CLOSE_ALERT_DISABLED=true + +#附件上传显示提示 +VITE_GLOB_UPLOAD_ALERT_TIP=(严禁在本非涉密平台处理、传输国家秘密、工作秘密、商业秘密、敏感信息,请确认扫描、传输的文件资料不涉密!) diff --git a/.env.production.example b/.env.production.example index 3a6f021..58f6665 100644 --- a/.env.production.example +++ b/.env.production.example @@ -42,3 +42,5 @@ VITE_USE_PWA = false #登录时是否需要输入租户码 # VITE_GLOB_TENANT_INPUT_REQUIRED = true +#附件上传显示提示 +VITE_GLOB_UPLOAD_ALERT_TIP=(严禁在本非涉密平台处理、传输国家秘密、工作秘密、商业秘密、敏感信息,请确认扫描、传输的文件资料不涉密!) diff --git a/src/components/Designer/src/components/componentProperty/PropertyOption.vue b/src/components/Designer/src/components/componentProperty/PropertyOption.vue index abf94c4..3d64cd4 100644 --- a/src/components/Designer/src/components/componentProperty/PropertyOption.vue +++ b/src/components/Designer/src/components/componentProperty/PropertyOption.vue @@ -489,6 +489,9 @@ {{ t('点击上传') }} +
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}} +
@@ -778,7 +781,7 @@ import StaticData from './settings/StaticData.vue'; import { ApiConfig } from '/@/components/ApiConfig'; import { DicItemSelect } from '/@/components/DicItemSelect'; - // import { getAppEnvConfig } from '/@/utils/env'; + import { getAppEnvConfig } from '/@/utils/env'; import { ColorPicker } from '/@/components/ColorPicker'; import { TimePicker } from '/@/components/TimePicker'; import SelectDepartmentV2 from '/@/components/Form/src/components/SelectDepartmentV2.vue'; @@ -790,6 +793,7 @@ import { cloneDeep, random } from 'lodash-es'; import { uploadMultiApi } from '/@/api/sys/upload'; import { getFileList } from '/@/api/system/file'; + const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig(); const { t } = useI18n(); export default defineComponent({ diff --git a/src/components/Form/src/components/Upload.vue b/src/components/Form/src/components/Upload.vue index 28d53b4..a2148e1 100644 --- a/src/components/Form/src/components/Upload.vue +++ b/src/components/Form/src/components/Upload.vue @@ -69,6 +69,9 @@ 点击上传 +
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}} +
@@ -947,6 +950,8 @@ import { useI18n } from '/@/hooks/web/useI18n'; import { getFileList } from '/@/api/system/file'; import { uploadMultiApi } from '/@/api/sys/upload'; + import { getAppEnvConfig } from '/@/utils/env'; + const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig(); const { t } = useI18n(); export default defineComponent({ name: 'PropertyOption', diff --git a/src/views/system/dataMigration/components/import/ImportSystemConfig.vue b/src/views/system/dataMigration/components/import/ImportSystemConfig.vue index 6509b0a..1cbea4a 100644 --- a/src/views/system/dataMigration/components/import/ImportSystemConfig.vue +++ b/src/views/system/dataMigration/components/import/ImportSystemConfig.vue @@ -34,6 +34,9 @@
{{ t('将文件拖到此处,或') }}{{ t('点击上传') }}
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}} +
@@ -48,7 +51,8 @@ import { defHttp } from '/@/utils/http/axios'; import { useGlobSetting } from '/@/hooks/setting'; import { useMessage } from '/@/hooks/web/useMessage'; - + import { getAppEnvConfig } from '/@/utils/env'; + const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig(); const props = defineProps({ importType: { type:String, diff --git a/src/views/workflow/design/ImportFlow.vue b/src/views/workflow/design/ImportFlow.vue index a69ce9d..ad9158e 100644 --- a/src/views/workflow/design/ImportFlow.vue +++ b/src/views/workflow/design/ImportFlow.vue @@ -24,6 +24,9 @@
{{ t('将文件拖到此处,或') }}{{ t('点击上传') }}
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}} +
@@ -54,6 +57,7 @@ type: Boolean }, }); + const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig(); async function open() { data.visible = true; diff --git a/types/config.d.ts b/types/config.d.ts index 9968e29..5f3be9f 100644 --- a/types/config.d.ts +++ b/types/config.d.ts @@ -167,6 +167,7 @@ export interface GlobEnvConfig { VITE_GLOB_DISABLE_NEWS: boolean; VITE_GLOB_CLOSE_ALERT_DISABLED: boolean; VITE_GLOB_TENANT_INPUT_REQUIRED: boolean; + VITE_GLOB_UPLOAD_ALERT_TIP?: string; } export interface LogoConfig {