|
@@ -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>
|