|
@@ -1,5 +1,5 @@
|
1
|
1
|
<template>
|
2
|
|
- <div style="padding-bottom:32px">
|
|
2
|
+ <div style="padding-bottom: 32px">
|
3
|
3
|
<Image :src="headImg" width="100vw" />
|
4
|
4
|
<h3>复工申请单</h3>
|
5
|
5
|
<Form @submit="onSumbmit">
|
|
@@ -41,6 +41,7 @@
|
41
|
41
|
>
|
42
|
42
|
<template #input>
|
43
|
43
|
<Uploader
|
|
44
|
+ result-type="file"
|
44
|
45
|
v-model="antigenImage"
|
45
|
46
|
:preview-size="40"
|
46
|
47
|
:after-read="antigenImageChange"
|
|
@@ -84,6 +85,7 @@
|
84
|
85
|
>
|
85
|
86
|
<template #input>
|
86
|
87
|
<Uploader
|
|
88
|
+ result-type="file"
|
87
|
89
|
v-model="nucleicImage"
|
88
|
90
|
:preview-size="40"
|
89
|
91
|
:after-read="nucleicImageChange"
|
|
@@ -135,7 +137,7 @@
|
135
|
137
|
<script setup>
|
136
|
138
|
import { onMounted, reactive, ref } from 'vue';
|
137
|
139
|
import { useRouter } from 'vue-router'
|
138
|
|
-import { Button, Form, Field, CellGroup, Image, Uploader, RadioGroup, Radio, Switch, Popup, Picker, Toast } from 'vant';
|
|
140
|
+import { Button, Form, Field, CellGroup, Image, Uploader, RadioGroup, Radio, Switch, Popup, Picker, Loading, Toast } from 'vant';
|
139
|
141
|
import { getOrgList } from '@/services/org'
|
140
|
142
|
import { addResume } from '@/services/resume'
|
141
|
143
|
import { upload } from '@/services/oss'
|
|
@@ -173,28 +175,44 @@ onMounted(() => {
|
173
|
175
|
const antigenImageChange = (file) => {
|
174
|
176
|
file.status = 'upLoading';
|
175
|
177
|
file.message = '上传中';
|
|
178
|
+ Toast.loading({
|
|
179
|
+ message: '加载中...',
|
|
180
|
+ forbidClick: true,
|
|
181
|
+ loadingType: 'spinner',
|
|
182
|
+ duration:9000
|
|
183
|
+ });
|
176
|
184
|
upload(file.file).then(
|
177
|
185
|
(url) => {
|
178
|
186
|
file.status = 'done';
|
179
|
187
|
antigenImageurl.value = url;
|
|
188
|
+ Toast.clear();
|
180
|
189
|
}
|
181
|
190
|
).catch(err => {
|
182
|
191
|
file.stetus = 'failed';
|
183
|
|
- file.message = '上传失败请重试'
|
|
192
|
+ file.message = '上传失败请重试';
|
|
193
|
+ Toast.clear();
|
184
|
194
|
})
|
185
|
195
|
}
|
186
|
196
|
|
187
|
197
|
const nucleicImageChange = (file) => {
|
188
|
198
|
file.status = 'upLoading';
|
189
|
199
|
file.message = '上传中';
|
|
200
|
+ Toast.loading({
|
|
201
|
+ message: '加载中...',
|
|
202
|
+ forbidClick: true,
|
|
203
|
+ loadingType: 'spinner',
|
|
204
|
+ duration:9000
|
|
205
|
+ });
|
190
|
206
|
upload(file.file).then(
|
191
|
207
|
(url) => {
|
192
|
208
|
file.status = 'done';
|
193
|
209
|
nucleicimageurl.value = url;
|
|
210
|
+ Toast.clear();
|
194
|
211
|
}
|
195
|
212
|
).catch(err => {
|
196
|
213
|
file.stetus = 'failed';
|
197
|
|
- file.message = '上传失败请重试'
|
|
214
|
+ file.message = '上传失败请重试';
|
|
215
|
+ Toast.clear();
|
198
|
216
|
})
|
199
|
217
|
}
|
200
|
218
|
const onConfirm = (value) => {
|