|
@@ -1,7 +1,9 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div>
|
|
3
|
+ <Image :src="headImg" width='100vw' />
|
3
|
4
|
<h3>复工申请单</h3>
|
4
|
5
|
<Form @submit="onSumbmit">
|
|
6
|
+
|
5
|
7
|
<CellGroup inset>
|
6
|
8
|
<Field
|
7
|
9
|
v-model="orgId"
|
|
@@ -38,9 +40,11 @@
|
38
|
40
|
:rules="[{ required: true, message: '请选择抗原截图' }]"
|
39
|
41
|
>
|
40
|
42
|
<template #input>
|
|
43
|
+ <!-- deletable是否显示删除按钮 preview-full-image-->
|
41
|
44
|
<Uploader
|
42
|
45
|
v-model="antigenImage"
|
43
|
|
- :max-count="1"
|
|
46
|
+ :max-count="1"
|
|
47
|
+ :preview-size='40'
|
44
|
48
|
:after-read="antigenImageChange"
|
45
|
49
|
/>
|
46
|
50
|
</template>
|
|
@@ -71,6 +75,7 @@
|
71
|
75
|
<Uploader
|
72
|
76
|
v-model="nucleicImage"
|
73
|
77
|
:max-count="1"
|
|
78
|
+ :preview-size='40'
|
74
|
79
|
:after-read="nucleicImageChange"
|
75
|
80
|
/>
|
76
|
81
|
</template>
|
|
@@ -108,10 +113,11 @@
|
108
|
113
|
<script setup>
|
109
|
114
|
import { onMounted, reactive, ref } from 'vue';
|
110
|
115
|
import { useRouter } from 'vue-router'
|
111
|
|
-import { Button, Form, Field, CellGroup, Uploader, RadioGroup, Radio, Switch, Popup, Picker, Toast } from 'vant';
|
|
116
|
+import { Button, Form, Field, CellGroup,Image, Uploader, RadioGroup, Radio, Switch, Popup, Picker, Toast } from 'vant';
|
112
|
117
|
import { getOrgList } from '../../services/org'
|
113
|
118
|
import { addResume } from '../../services/resume'
|
114
|
119
|
import { upload } from '@/services/oss'
|
|
120
|
+import headImg from '../../assets/headImg.png'
|
115
|
121
|
|
116
|
122
|
const orgId = ref('');
|
117
|
123
|
const userName = ref('');
|
|
@@ -152,6 +158,7 @@ const antigenImageChange = (file) => {
|
152
|
158
|
file.message = '上传失败请重试'
|
153
|
159
|
})
|
154
|
160
|
}
|
|
161
|
+
|
155
|
162
|
const nucleicImageChange = (file) => {
|
156
|
163
|
file.status = 'upLoading';
|
157
|
164
|
file.message = '上传中';
|
|
@@ -191,4 +198,8 @@ h3 {
|
191
|
198
|
font-weight: normal;
|
192
|
199
|
text-align: center;
|
193
|
200
|
}
|
|
201
|
+
|
|
202
|
+::v-deep .van-field__control--custom{
|
|
203
|
+ justify-content: end;
|
|
204
|
+}
|
194
|
205
|
</style>
|