|
@@ -134,6 +134,9 @@
|
|
|
v-model="textareas"
|
|
|
></textarea>
|
|
|
</div>
|
|
|
+ <!-- <div>
|
|
|
+ <van-uploader :after-read="afterRead" />
|
|
|
+ </div> -->
|
|
|
<div class="buttons">
|
|
|
<button @click="Submits">提交</button>
|
|
|
</div>
|
|
@@ -217,6 +220,10 @@ export default {
|
|
|
_that.district = result.addressComponent.district;
|
|
|
});
|
|
|
},
|
|
|
+ afterRead(file) {
|
|
|
+ // 此时可以自行将文件上传至服务器
|
|
|
+ console.log(file);
|
|
|
+ },
|
|
|
reasons() {
|
|
|
this.reason = !this.reason;
|
|
|
// console.log("1");
|
|
@@ -293,40 +300,40 @@ 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);
|
|
|
- });
|
|
|
+ // 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);
|
|
|
+ // });
|
|
|
}
|
|
|
},
|
|
|
tianbao() {
|