李志伟 3 lat temu
rodzic
commit
482a07ad87
3 zmienionych plików z 16 dodań i 18 usunięć
  1. 1
    1
      index.html
  2. 14
    16
      src/pages/resumeWorkForm/index.vue
  3. 1
    1
      vite.config.js

+ 1
- 1
index.html Wyświetl plik

4
     <meta charset="UTF-8" />
4
     <meta charset="UTF-8" />
5
     <link rel="icon" href="/favicon.ico" />
5
     <link rel="icon" href="/favicon.ico" />
6
     <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
6
     <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
7
-    <title>复工复产申报</title>
7
+    <title>疫情检测结果表</title>
8
   </head>
8
   </head>
9
   <body>
9
   <body>
10
     <div id="app"></div>
10
     <div id="app"></div>

+ 14
- 16
src/pages/resumeWorkForm/index.vue Wyświetl plik

14
           :rules="[{ required: true, message: '请选择企业' }]"
14
           :rules="[{ required: true, message: '请选择企业' }]"
15
           @click="showPicker = true"
15
           @click="showPicker = true"
16
         />
16
         />
17
-        <Popup v-model:show="showPicker" position="left" :style="{ height: '100%', width: '80%' }" >
18
-          <!-- <Picker
17
+        <!-- <Popup v-model:show="showPicker" position="left" :style="{ height: '100%', width: '80%' }" >
18
+          <org-picker v-model="formData.orgId" @change="onConfirm" />
19
+        </Popup> -->
20
+        <Popup v-model:show="showPicker" position="bottom"  >
21
+          <Picker
19
             :columns="orgList"
22
             :columns="orgList"
20
             :columns-field-names="customFieldName"
23
             :columns-field-names="customFieldName"
21
             @confirm="onConfirm"
24
             @confirm="onConfirm"
22
             @cancel="showPicker = false"
25
             @cancel="showPicker = false"
23
-          /> -->
24
-          <org-picker v-model="formData.orgId" @change="onConfirm" />
26
+          />
25
         </Popup>
27
         </Popup>
26
         <Field
28
         <Field
27
           v-model="formData.userName"
29
           v-model="formData.userName"
38
           name="antigenImage"
40
           name="antigenImage"
39
           label="截图"
41
           label="截图"
40
           input-align="right"
42
           input-align="right"
41
-          required
42
-          :rules="[{ required: true, message: '请选择抗原截图' }]"
43
         >
43
         >
44
           <template #input>
44
           <template #input>
45
             <up-single-img v-model="formData.antigenImage" :preview-size="40" />
45
             <up-single-img v-model="formData.antigenImage" :preview-size="40" />
48
         <Field
48
         <Field
49
           name="antigenIsNormal"
49
           name="antigenIsNormal"
50
           label="是否正常"
50
           label="是否正常"
51
-          required
52
           input-align="right"
51
           input-align="right"
53
-          :rules="[{ required: true, message: '请选择是否正常' }]"
54
         >
52
         >
55
           <template #input>
53
           <template #input>
56
             <RadioGroup v-model="formData.antigenIsNormal" direction="horizontal">
54
             <RadioGroup v-model="formData.antigenIsNormal" direction="horizontal">
115
 import headImg from '@/assets/banner-1.jpg'
113
 import headImg from '@/assets/banner-1.jpg'
116
 
114
 
117
 const today = ref(dayjs().format('YYYY.MM.DD'));
115
 const today = ref(dayjs().format('YYYY.MM.DD'));
118
-const title = computed(() => `复工申请单(${today.value})`)
116
+const title = computed(() => `疫情检测结果表(${today.value})`)
119
 
117
 
120
 const formData = reactive({
118
 const formData = reactive({
121
   orgId: null,
119
   orgId: null,
139
 }
137
 }
140
 
138
 
141
 onMounted(() => {
139
 onMounted(() => {
142
-  // getOrgList({ pageSize: 500 }).then((res) => {
143
-  //   orgList.value = res.records;
144
-  //   columns.value = res.records.map(item => item.orgName);
145
-  // }).catch(e => {
146
-  //   Toast('系统错误请刷新重试');
147
-  //   console.log(e);
148
-  // })
140
+  getOrgList({ pageSize: 500 }).then((res) => {
141
+    orgList.value = res.records;
142
+    columns.value = res.records.map(item => item.orgName);
143
+  }).catch(e => {
144
+    Toast('系统错误请刷新重试');
145
+    console.log(e);
146
+  })
149
 });
147
 });
150
 
148
 
151
 const onConfirm = (value) => {
149
 const onConfirm = (value) => {

+ 1
- 1
vite.config.js Wyświetl plik

10
     proxy: {
10
     proxy: {
11
       '/api': {
11
       '/api': {
12
         target: 'http://192.168.89.147:9000',
12
         target: 'http://192.168.89.147:9000',
13
-        changeOrigin: true,
13
+        changeOrigin: true,//允许跨域允许的是host 不是全部的路径 path前面不一样就是跨域
14
         headers: {
14
         headers: {
15
           'origin': 'http://192.168.89.147:9000',
15
           'origin': 'http://192.168.89.147:9000',
16
           'referer': 'http://192.168.89.147:9000'
16
           'referer': 'http://192.168.89.147:9000'