mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-16 03:45:07 +08:00
1、配合地区管理接口的api文件,后端修改相应字段可以不要此文件
2、基础设施/文件管理/文件列表 上传失败无法上传只能刷新页面才能上传bug 3、基础设施/文件管理/文件列表 新增是下拉框显示0 设置为null
This commit is contained in:
@ -183,7 +183,7 @@ const detailData = ref() // 详情 Ref
|
||||
const form = ref<FileConfigApi.FileConfigVO>({
|
||||
id: 0,
|
||||
name: '',
|
||||
storage: 0,
|
||||
storage: null,
|
||||
master: false,
|
||||
visible: false,
|
||||
config: {
|
||||
@ -216,7 +216,7 @@ const handleCreate = (formEl: FormInstance | undefined) => {
|
||||
form.value = {
|
||||
id: 0,
|
||||
name: '',
|
||||
storage: 0,
|
||||
storage: null,
|
||||
master: false,
|
||||
visible: false,
|
||||
config: {
|
||||
|
@ -59,6 +59,7 @@
|
||||
:on-exceed="handleExceed"
|
||||
:on-success="handleFileSuccess"
|
||||
:on-error="excelUploadError"
|
||||
:before-remove="beforeRemove"
|
||||
:auto-upload="false"
|
||||
accept=".jpg, .png, .gif"
|
||||
>
|
||||
@ -82,7 +83,7 @@
|
||||
</XModal>
|
||||
</template>
|
||||
<script setup lang="ts" name="FileList">
|
||||
import type { UploadInstance, UploadRawFile } from 'element-plus'
|
||||
import type { UploadInstance, UploadRawFile, UploadProps } from 'element-plus'
|
||||
// 业务相关的 import
|
||||
import { allSchemas } from './fileList.data'
|
||||
import * as FileApi from '@/api/infra/fileList'
|
||||
@ -141,6 +142,9 @@ const handleFileSuccess = async (response: any): Promise<void> => {
|
||||
uploadDisabled.value = false
|
||||
await reload()
|
||||
}
|
||||
const beforeRemove: UploadProps['beforeRemove'] = () => {
|
||||
uploadDisabled.value = false
|
||||
}
|
||||
// 文件数超出提示
|
||||
const handleExceed = (): void => {
|
||||
message.error('最多只能上传一个文件!')
|
||||
|
Reference in New Issue
Block a user