Commit 00eead50 authored by 13841799530's avatar 13841799530

解润东

20220509
id
parent df0936b6
Pipeline #8283 passed with stage
in 5 minutes and 1 second
......@@ -388,6 +388,7 @@ export default {
},
mounted() {
if(this.$route.query.patrolId){this.patrolId=this.$route.query.patrolId}
this.$bus.$on("sourceAyy", (res) => {
setTimeout(() => {
this.source1 = res.join(",");
......@@ -483,6 +484,7 @@ export default {
isShowreturnCause: false,
returnCause: "", // 退回原因
currentDate: new Date(),
patrolId:''
};
},
......@@ -546,6 +548,7 @@ export default {
onSubmit(values) {
let formdata = new FormData();
formdata.append("patrolId", this.patrolId);
formdata.append("id", this.id);
formdata.append("proId", this.projectId);
// formdata.append("projectName", this.projectName);
......@@ -564,6 +567,7 @@ export default {
"rectificationUser",
values.rectificationUser || ""
);
console.log(formdata,55)
console.log(values.hdPicture1, "这是要上传的文件");
// 放图片路径 因为formdat存数组会自动变成字符串所以次用这种追加字段的方式
values.hdPicture1.forEach((item) => {
......
......@@ -42,7 +42,7 @@
<van-radio-group
v-model="item.result"
direction="horizontal"
@change="operation(item.result,index)"
@change="operation(item.result,index,item)"
>
<van-radio :name="1" shape="square" :disabled="item.result == '2'">合格</van-radio>
<van-radio :name="2" shape="square" >不合格</van-radio>
......@@ -164,7 +164,7 @@ export default {
this.$toast.fail("加载失败,请稍后再试");
});
},
operation(val, index) {
operation(val, index,item) {
if(val == 1){
return
}
......@@ -176,7 +176,10 @@ export default {
})
.then(() => {
this.$router.push({
name: "add-danger"
name: "add-danger",
query:{
patrolId:item.patrolId
}
});
})
.catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment