|
|
@ -50,7 +50,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
<el-button @click="handleDetailSearch(row,index)" type="text">详情</el-button> |
|
|
|
<el-button @click="handleDetailSearch(row,index)" type="text">详情</el-button> |
|
|
|
<el-button @click="resultAdd()" type="text">上传巡检结果</el-button> |
|
|
|
<el-button @click="resultAdd(row)" type="text">上传巡检结果</el-button> |
|
|
|
<el-button @click="rowDel(row)" type="text">删除</el-button> |
|
|
|
<el-button @click="rowDel(row)" type="text">删除</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
@ -88,6 +88,7 @@ |
|
|
|
search:{}, |
|
|
|
search:{}, |
|
|
|
loading: true, |
|
|
|
loading: true, |
|
|
|
resultBox: false, |
|
|
|
resultBox: false, |
|
|
|
|
|
|
|
currTaskNo: null, |
|
|
|
page: { |
|
|
|
page: { |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
currentPage: 1, |
|
|
|
currentPage: 1, |
|
|
@ -405,15 +406,17 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
resultAdd() { |
|
|
|
resultAdd(row) { |
|
|
|
this.resultBox = true; |
|
|
|
this.resultBox = true; |
|
|
|
|
|
|
|
this.currTaskNo = row.taskNo; |
|
|
|
}, |
|
|
|
}, |
|
|
|
submitResult(row, done, loading) { |
|
|
|
submitResult(row, done, loading) { |
|
|
|
|
|
|
|
this.resultForm.taskNo = this.currTaskNo; |
|
|
|
|
|
|
|
console.log(this.currTaskNo) |
|
|
|
const form = this.$refs.resultForm; |
|
|
|
const form = this.$refs.resultForm; |
|
|
|
form.validate((valid) => { |
|
|
|
form.validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
add(this.resultForm,row.taskNo).then(() => { |
|
|
|
add(this.resultForm).then(() => { |
|
|
|
this.resultBox = false; |
|
|
|
this.resultBox = false; |
|
|
|
this.resultForm.executeStartDate= ''; |
|
|
|
this.resultForm.executeStartDate= ''; |
|
|
|
this.resultForm.executeEndDate= ''; |
|
|
|
this.resultForm.executeEndDate= ''; |
|
|
|