张值绫 преди 3 години
родител
ревизия
d6b7a1131d

Файловите разлики са ограничени, защото са твърде много
+ 1 - 0
dist/css/chunk-22298cd6.d5ef271b.css


Файловите разлики са ограничени, защото са твърде много
+ 0 - 1
dist/css/chunk-2a70ea1b.fa8bf877.css


+ 0 - 1
dist/css/chunk-46fc82c7.c37d5309.css

@@ -1 +0,0 @@
-[data-v-62e48881] .van-nav-bar{background:#39f}[data-v-62e48881] .van-nav-bar .van-icon,[data-v-62e48881] .van-nav-bar__text,[data-v-62e48881] .van-nav-bar__title{color:#fff}[class*=van-hairline][data-v-62e48881]:after{border:none}[data-v-62e48881] canvas{border-radius:20px!important}

+ 1 - 0
dist/css/chunk-c05ab27a.8c58ee69.css

@@ -0,0 +1 @@
+[data-v-a3369caa] .van-nav-bar{background:#39f}[data-v-a3369caa] .van-nav-bar .van-icon,[data-v-a3369caa] .van-nav-bar__text,[data-v-a3369caa] .van-nav-bar__title{color:#fff}[class*=van-hairline][data-v-a3369caa]:after{border:none}[data-v-a3369caa] canvas{border-radius:20px!important}

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/index.html


Файловите разлики са ограничени, защото са твърде много
+ 2 - 2
dist/js/app.349937ab.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/js/app.349937ab.js.map


Файловите разлики са ограничени, защото са твърде много
+ 2 - 0
dist/js/chunk-22298cd6.cca5b499.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 0
dist/js/chunk-22298cd6.cca5b499.js.map


Файловите разлики са ограничени, защото са твърде много
+ 0 - 2
dist/js/chunk-2a70ea1b.110860bc.js


Файловите разлики са ограничени, защото са твърде много
+ 0 - 1
dist/js/chunk-2a70ea1b.110860bc.js.map


Файловите разлики са ограничени, защото са твърде много
+ 0 - 2
dist/js/chunk-46fc82c7.92ad0aaf.js


Файловите разлики са ограничени, защото са твърде много
+ 0 - 1
dist/js/chunk-46fc82c7.92ad0aaf.js.map


Файловите разлики са ограничени, защото са твърде много
+ 2 - 0
dist/js/chunk-c05ab27a.12961fc5.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 0
dist/js/chunk-c05ab27a.12961fc5.js.map


+ 1 - 1
src/views/zaoquan/yiqing/yiqing-hesuanjiance.vue

@@ -197,7 +197,7 @@ export default {
           "http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/nucleic_acid_test_statistics"
         )
         .then((res) => {
-          console.log(res.data.data.not_nat_section_list);
+          console.log(res);
           // 指定图表的配置项和数据
           this.infos1 = res.data.data.not_nat_section_list;
           // console.log(this.infos1);

+ 57 - 38
src/views/zaoquan/yiqing/yiqing-tiwen.vue

@@ -124,6 +124,10 @@
             </el-radio-group>
           </div>
         </div>
+        <!-- <div class="contents_nex">
+          <div>请上传图片</div>
+          <van-uploader :after-read="afterRead" />
+        </div> -->
       </form>
     </div>
     <div class="contents" v-show="reason">
@@ -134,9 +138,6 @@
         v-model="textareas"
       ></textarea>
     </div>
-    <!-- <div>
-      <van-uploader :after-read="afterRead" />
-    </div> -->
     <div class="buttons">
       <button @click="Submits">提交</button>
     </div>
@@ -166,6 +167,7 @@ import { getAllUrlParams } from "../../../plugins/url-encapsulation.js";
 export default {
   data() {
     return {
+      fileList:[],
       shows:false,
       name: "",
       department: "",
@@ -232,6 +234,10 @@ export default {
       // this.reason = false;
       console.log("2");
     },
+    afterRead(file) {
+      // 此时可以自行将文件上传至服务器
+      console.log(file);
+    },
     Submits() {
       // console.log(typeof(this.tiwen));
       if (
@@ -300,40 +306,42 @@ export default {
         }
         console.log(this.times);
         console.log(typeof this.tiwen);
-        // this.$http
-        //   .post(
-        //     "http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/clock_in",
-        //     {
-        //       temperature: String(this.tiwen),
-        //       vaccination: String(this.yimiao),
-        //       not_vaccination_cause: this.textareas,
-        //       // remarks: this.remarks,
-        //       // location: this.location,
-        //       nucleic_acid_test: String(this.hesuan),
-        //       transport: String(this.values2),
-        //       place: String(this.values1),
-        //       health: String(this.values),
-        //       clock_in_time: this.times,
-        //       staff_num: this.mobile,
-        //     }
-        //   )
-        //   .then((res) => {
-        //     console.log(res);
-        //     this.$dialog.alert({
-        //       message: "提交成功",
-        //     });
-        //     var myinfo = setInterval(
-        //       this.$router.push(
-        //         `/zaoquan/yiqing/yiqing?token=${this.gettoken}`
-        //       ),
-        //       2000
-        //     );
-        //     clearInterval(myinfo);
-        //     // this.$router.push(`/zaoquan/yiqing/yiqing?token=${this.token}`);
-        //   })
-        //   .catch((res) => {
-        //     console.log(res);
-        //   });
+        console.log(this.fileList);
+        this.$http
+          .post(
+            "http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/clock_in",
+            {
+              temperature: String(this.tiwen),
+              vaccination: String(this.yimiao),
+              not_vaccination_cause: this.textareas,
+              // remarks: this.remarks,
+              // location: this.location,
+              nucleic_acid_test: String(this.hesuan),
+              transport: String(this.values2),
+              place: String(this.values1),
+              health: String(this.values),
+              clock_in_time: this.times,
+              staff_num: this.mobile,
+              // image:this.fileList
+            }
+          )
+          .then((res) => {
+            console.log(res);
+            this.$dialog.alert({
+              message: "提交成功",
+            });
+            var myinfo = setInterval(
+              this.$router.push(
+                `/zaoquan/yiqing/yiqing?token=${this.gettoken}`
+              ),
+              2000
+            );
+            clearInterval(myinfo);
+            // this.$router.push(`/zaoquan/yiqing/yiqing?token=${this.token}`);
+          })
+          .catch((res) => {
+            console.log(res);
+          });
       }
     },
     tianbao() {
@@ -358,7 +366,7 @@ export default {
       this.$http
         .post("http://zaoquan.nxjiewei.com:8011/api/user/info")
         .then((res) => {
-          console.log(res);
+          // console.log(res);
           this.name = res.data.data.name;
           this.department = res.data.data.section_fullname;
           this.mobile = res.data.data.staff_num;
@@ -559,4 +567,15 @@ input::-webkit-input-placeholder {
 >>> .el-radio-button:first-child .el-radio-button__inner {
   border-radius: 14px;
 }
+.contents_nex {
+  width: 95%;
+  margin: 0 auto;
+  border-bottom: 1px solid #f0f0f0;
+  padding: 10px 5px;
+}
+.contents_nex>div{
+  font-size: 14px;
+  margin-left: 4px;
+  margin-bottom: 5px;
+}
 </style>