|
@@ -326,6 +326,7 @@
|
|
|
:action="uploadUrl"
|
|
:action="uploadUrl"
|
|
|
:limit="1"
|
|
:limit="1"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
|
|
+ :accept="state.SUPPORT_FILE_UPLOAD_TYPE_MAX"
|
|
|
:before-upload="beforeAvatarFileUpload"
|
|
:before-upload="beforeAvatarFileUpload"
|
|
|
:on-remove="() => handleRemove(UploadFileType.LICENSE_NUMBER)"
|
|
:on-remove="() => handleRemove(UploadFileType.LICENSE_NUMBER)"
|
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.LICENSE_NUMBER, file)"
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.LICENSE_NUMBER, file)"
|
|
@@ -358,6 +359,7 @@
|
|
|
:action="uploadUrl"
|
|
:action="uploadUrl"
|
|
|
:limit="1"
|
|
:limit="1"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
|
|
+ :accept="state.SUPPORT_FILE_UPLOAD_TYPE_MAX"
|
|
|
:before-upload="beforeAvatarFileUpload"
|
|
:before-upload="beforeAvatarFileUpload"
|
|
|
:on-remove="() => handleRemove(UploadFileType.ANIMAL_TEST_DATE)"
|
|
:on-remove="() => handleRemove(UploadFileType.ANIMAL_TEST_DATE)"
|
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.ANIMAL_TEST_DATE, file)"
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.ANIMAL_TEST_DATE, file)"
|
|
@@ -387,6 +389,7 @@
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
:before-upload="beforeAvatarFileUpload"
|
|
:before-upload="beforeAvatarFileUpload"
|
|
|
:on-remove="() => handleRemove(UploadFileType.ENV_TEST_DATE)"
|
|
:on-remove="() => handleRemove(UploadFileType.ENV_TEST_DATE)"
|
|
|
|
|
+ :accept="state.SUPPORT_FILE_UPLOAD_TYPE_MAX"
|
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.ENV_TEST_DATE, file)"
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.ENV_TEST_DATE, file)"
|
|
|
>
|
|
>
|
|
|
<el-button type="primary">点击上传</el-button>
|
|
<el-button type="primary">点击上传</el-button>
|
|
@@ -487,6 +490,7 @@
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
:before-upload="beforeAvatarFileUpload"
|
|
:before-upload="beforeAvatarFileUpload"
|
|
|
:on-remove="() => handleRemove(UploadFileType.ETHICS_CHECK_FILE)"
|
|
:on-remove="() => handleRemove(UploadFileType.ETHICS_CHECK_FILE)"
|
|
|
|
|
+ :accept="state.SUPPORT_FILE_UPLOAD_TYPE_MAX"
|
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.ETHICS_CHECK_FILE, file)"
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.ETHICS_CHECK_FILE, file)"
|
|
|
>
|
|
>
|
|
|
<el-button type="primary">点击上传</el-button>
|
|
<el-button type="primary">点击上传</el-button>
|
|
@@ -513,6 +517,7 @@
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
:before-upload="beforeAvatarFileUpload"
|
|
:before-upload="beforeAvatarFileUpload"
|
|
|
:on-remove="() => handleRemove(UploadFileType.ETHICS_ADVICE_FILE)"
|
|
:on-remove="() => handleRemove(UploadFileType.ETHICS_ADVICE_FILE)"
|
|
|
|
|
+ :accept="state.SUPPORT_FILE_UPLOAD_TYPE_MAX"
|
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.ETHICS_ADVICE_FILE, file)"
|
|
:on-success="(res: any, file: UploadFile) => handleSuccess(res, UploadFileType.ETHICS_ADVICE_FILE, file)"
|
|
|
>
|
|
>
|
|
|
<el-button type="primary">点击上传</el-button>
|
|
<el-button type="primary">点击上传</el-button>
|
|
@@ -562,7 +567,7 @@
|
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
|
import { storeToRefs } from 'pinia'
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { usePlatAnimalCageApplicationApi } from '/@/api/platform/animal'
|
|
import { usePlatAnimalCageApplicationApi } from '/@/api/platform/animal'
|
|
|
- import { LeavelList } from '/@/constants/pageConstants'
|
|
|
|
|
|
|
+ import { LeavelList, SUPPORT_FILE_UPLOAD_TYPE_MAX } from '/@/constants/pageConstants'
|
|
|
import { deepClone } from '/@/utils/other'
|
|
import { deepClone } from '/@/utils/other'
|
|
|
import { useUserInfo } from '/@/stores/userInfo'
|
|
import { useUserInfo } from '/@/stores/userInfo'
|
|
|
import { ProcurementChannels, FeedingSpecial, UploadFileType } from '/@/constants/pageConstants'
|
|
import { ProcurementChannels, FeedingSpecial, UploadFileType } from '/@/constants/pageConstants'
|
|
@@ -606,6 +611,7 @@
|
|
|
const safePromise = ref<boolean>(false)
|
|
const safePromise = ref<boolean>(false)
|
|
|
const animalTypeList = ref<any[]>([])
|
|
const animalTypeList = ref<any[]>([])
|
|
|
const state = reactive({
|
|
const state = reactive({
|
|
|
|
|
+ SUPPORT_FILE_UPLOAD_TYPE_MAX,
|
|
|
form: {
|
|
form: {
|
|
|
projectGroupName: '',
|
|
projectGroupName: '',
|
|
|
projectGroupId: null,
|
|
projectGroupId: null,
|