Merge branch 'lhq20250717' into 'dev'

添加附件上传显示提示以及配置项

See merge request itc-framework/ma/2024/front!97
This commit is contained in:
890147
2025-07-17 07:56:20 +00:00
4 changed files with 17 additions and 2 deletions

View File

@ -37,6 +37,9 @@
</a-popover>
</a-input-group>
</a-upload>
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()" style="color: red; margin-top: 8px;">
{{VITE_GLOB_UPLOAD_ALERT_TIP}}
</div>
<a-modal
:bodyStyle="bodyStyle"
:width="800"
@ -60,7 +63,7 @@
import { Icon } from '/@/components/Icon';
import { Base64 } from 'js-base64';
import { getAppEnvConfig } from '/@/utils/env';
const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const props = defineProps({
value: String,
showTip: { type: Boolean, default: true },

View File

@ -9,6 +9,9 @@
>
上传
</a-button>
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()" style="color: red; margin-top: 8px;">
{{VITE_GLOB_UPLOAD_ALERT_TIP}}
</div>
<Tooltip placement="bottom" v-if="showPreview">
<template #title>
{{ t('component.upload.uploaded') }}
@ -53,7 +56,8 @@
import UploadModal from './UploadModal.vue';
import UploadPreviewModal from './UploadPreviewModal.vue';
import { getFileList } from '/@/api/system/file';
import { getAppEnvConfig } from '/@/utils/env';
const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
export default defineComponent({
name: 'BasicUpload',
components: { UploadModal, Space, UploadPreviewModal, Icon, Tooltip },

View File

@ -15,6 +15,9 @@
>
<template #bodyCell="{ column, record }">
<template v-if="column.dataIndex === 'components'"> {{ t('上传') }} </template>
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()" style="color: red; margin-top: 8px;">
{{VITE_GLOB_UPLOAD_ALERT_TIP}}
</div>
<template v-if="column.dataIndex === 'operation'">
<div class="flex">
<a-button size="small" type="primary" class="mr-2" @click="preview(record.fileUrl)">{{
@ -52,6 +55,7 @@
import { useI18n } from '/@/hooks/web/useI18n';
import { getAppEnvConfig } from '/@/utils/env';
const { t } = useI18n();
const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const props = withDefaults(defineProps<{ processId: string }>(), {
processId: '',
});

View File

@ -96,6 +96,9 @@
>
<img v-if="data.photoUrl" :src="data.photoUrl" />
<div v-else>{{ t('点击上传照片') }}</div>
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()" style="color: red; margin-top: 8px;">
{{VITE_GLOB_UPLOAD_ALERT_TIP}}
</div>
</a-upload>
</a-form-item>
<a-form-item
@ -141,6 +144,7 @@
import { StampType, StampFileTypeAttributes } from '/@/enums/workflowEnum';
import { dataURLtoBlob } from '/@/utils/file/base64Conver';
import { useI18n } from '/@/hooks/web/useI18n';
const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const { t } = useI18n();
let props = defineProps(['id', 'type', 'info']);
const formRef = ref();