Browse Source

疫情防护

张值绫 3 years ago
parent
commit
24ac23ac5a

File diff suppressed because it is too large
+ 1 - 0
dist/css/chunk-36452c9f.81cf39c7.css


File diff suppressed because it is too large
+ 0 - 1
dist/css/chunk-40d6d281.56e7ec68.css


File diff suppressed because it is too large
+ 59 - 1
dist/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/js/app.3758eb66.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/app.3758eb66.js.map


File diff suppressed because it is too large
+ 2 - 0
dist/js/chunk-36452c9f.9304857c.js


File diff suppressed because it is too large
+ 1 - 0
dist/js/chunk-36452c9f.9304857c.js.map


File diff suppressed because it is too large
+ 0 - 2
dist/js/chunk-40d6d281.c92490a1.js


File diff suppressed because it is too large
+ 0 - 1
dist/js/chunk-40d6d281.c92490a1.js.map


+ 28 - 9
src/views/zaoquan/yiqing/yiqing-tiwen.vue

@@ -1,6 +1,11 @@
 <template>
   <div>
-    <van-nav-bar title="体温填报" left-text="返回" left-arrow>
+    <van-nav-bar
+      title="体温填报"
+      left-text="返回"
+      left-arrow
+      @click-left="onClickLeft"
+    >
       <template #right>
         <van-icon name="records" size="18" @click="tianbao" />
       </template>
@@ -23,7 +28,7 @@
           <input
             type="text"
             name="tiwen"
-            placeholder="请输入35.0~42.0"
+            placeholder="请输入30.0~45.0"
             dir="rtl"
             size="14"
             v-model="tiwen"
@@ -174,6 +179,16 @@ export default {
       times: getTime(),
     };
   },
+  // witch: {
+  //   computed: {
+  //     tiwen() {
+  //       if (this.tiwen > 45 || this.tiwen < 30) {
+  //         this.$toast("请输入30-45");
+  //       }
+  //     },
+  //   },
+  // },
+
   methods: {
     /**获取地图定位*/
     getLocation() {
@@ -196,8 +211,9 @@ export default {
       console.log("2");
     },
     Submits() {
-      if (this.tiwen == "") {
-        this.$toast("请填写体温");
+      // console.log(typeof(this.tiwen));
+      if (Number (this.tiwen )>45||Number(this.tiwen<30)|| this.tiwen=="") {
+        this.$toast("体温请填写30~45");
       } else {
         // console.log(this.name);
         // console.log(this.department);
@@ -255,6 +271,7 @@ export default {
           // console.log(this.textareas);
         }
         console.log(this.times);
+        console.log(typeof(this.tiwen) );
         this.$http
           .post(
             "http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/clock_in",
@@ -262,8 +279,8 @@ export default {
               temperature: String(this.tiwen),
               vaccination: String(this.yimiao),
               not_vaccination_cause: this.textareas,
-              remarks: this.remarks,
-              location: this.location,
+              // remarks: this.remarks,
+              // location: this.location,
               nucleic_acid_test: String(this.hesuan),
               transport: String(this.values2),
               place: String(this.values1),
@@ -274,6 +291,8 @@ export default {
           .then((res) => {
             // console.log(res);
             this.$router.push("/zaoquan/yiqing/yiqing");
+          }).catch(res=>{
+            console.log(res);
           });
       }
     },
@@ -337,7 +356,7 @@ export default {
   border: none;
 }
 .contents1 {
-  width: 95%;
+  width: 90%;
   margin: 0 auto 10px;
   background: #fff;
   border-radius: 10px;
@@ -345,7 +364,7 @@ export default {
   text-align: center;
 }
 .contents {
-  width: 95%;
+  width: 90%;
   margin: 0 auto 10px;
   background: #fff;
   border-radius: 10px;
@@ -441,7 +460,7 @@ input::-webkit-input-placeholder {
   margin: 25px auto;
 }
 .buttons > button {
-  width: 80%;
+  width: 90%;
   height: 40px;
   border: none;
   background: #fff;