李志伟 3 years ago
parent
commit
9f3af84a46
3 changed files with 14 additions and 3 deletions
  1. BIN
      src/assets/headImg.png
  2. 13
    2
      src/pages/resumeWorkForm/index.vue
  3. 1
    1
      vite.config.js

BIN
src/assets/headImg.png View File


+ 13
- 2
src/pages/resumeWorkForm/index.vue View File

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

+ 1
- 1
vite.config.js View File

25
       resolves: [VantResolve()],
25
       resolves: [VantResolve()],
26
     }),
26
     }),
27
   ],
27
   ],
28
-  base:'./'
28
+  base:'./'//https://vitejs.cn/config/#base
29
 })
29
 })