Browse Source

fix: 修复bug

sy-water-data-board-ui
hejunjie 1 month ago
parent
commit
967d610571
  1. 13
      src/views/dike/runManage/patrolMaintenance/componentsDetails/acceptanceDetails.vue
  2. 4
      src/views/dike/runManage/patrolMaintenance/componentsDetails/defectDetails.vue
  3. 1
      src/views/dike/runManage/patrolMaintenance/componentsDetails/inspectionRecordDetails.vue
  4. 2
      src/views/dike/runManage/patrolMaintenance/componentsDetails/maintenanceDetails.vue

13
src/views/dike/runManage/patrolMaintenance/componentsDetails/acceptanceDetails.vue

@ -137,8 +137,8 @@
</el-table>
<div class="form-row-title">验收意见</div>
<el-form ref="form" :model="form" :rules="rules" label-width="120px" label-position="right">
<el-row gutter="48">
<el-col span="8">
<el-row :gutter="48">
<el-col :span="8">
<el-form-item label="复核人:" prop="operator">
<el-input
disabled
@ -147,7 +147,7 @@
</el-input>
</el-form-item>
</el-col>
<el-col span="8">
<el-col :span="8">
<el-form-item label="复核时间:" prop="approvalTime">
<el-date-picker
size="small"
@ -163,7 +163,7 @@
</el-col>
</el-row>
<el-row>
<el-col span="16">
<el-col :span="16">
<el-form-item label="复核意见:" prop="comment">
<el-input
type="textarea"
@ -281,7 +281,6 @@ export default {
this.form.type = checking.data.type
this.form.startDate = checking.data.startDate
this.form.endDate = checking.data.endDate
console.log(checking)
checking.data.problems.forEach(item => {
if(item.id === this.$route.query.defectId) {
this.form.content = item.content
@ -311,8 +310,8 @@ export default {
this.form.images = Yh.data.doc.images
this.fileData = Yh.data.doc.docs
const ApprovalComment = await getV2ApprovalComment(this.$route.query.formId)
this.form.approvalTime = ApprovalComment.data.approvalTime
this.form.comment = ApprovalComment.data.comment
this.form.approvalTime = ApprovalComment.data[0].approvalTime
this.form.comment = ApprovalComment.data[0].comment
},
getDictLabelName(type, dictListName) {

4
src/views/dike/runManage/patrolMaintenance/componentsDetails/defectDetails.vue

@ -131,8 +131,6 @@ export default {
methods: {
async initData() {
const checking = await gettV2Record(this.$route.query.recordId)
console.log('checking',checking)
console.log('checking',this.userName)
this.form.createName = checking.data.createName
this.form.userName = this.userName
this.form.userId = this.userId
@ -148,7 +146,6 @@ export default {
this.form.type = checking.data.type
this.form.startDate = checking.data.startDate
this.form.endDate = checking.data.endDate
console.log(checking)
checking.data.problems.forEach(item => {
if(item.id === this.$route.query.defectId) {
this.form.content = item.content
@ -198,7 +195,6 @@ export default {
startDate: this.form.time && this.form.time.length > 1 ? this.form.time[0] : '',
endDate: this.form.time && this.form.time.length > 1 ? this.form.time[1] : '',
}
console.log(data)
if (this.$route.query.id) {
data.id = this.$route.query.id
}

1
src/views/dike/runManage/patrolMaintenance/componentsDetails/inspectionRecordDetails.vue

@ -478,7 +478,6 @@ export default {
if (this.$route.query.id) {
data.id = this.$route.query.id;
}
console.log(data);
postV2Record(data, commit).then((res) => {
this.$message.success("保存成功");
this.$router.go(-1);

2
src/views/dike/runManage/patrolMaintenance/componentsDetails/maintenanceDetails.vue

@ -298,7 +298,6 @@ export default {
})
if (this.$route.query.id) {
const ApprovalComment = await getV2Yh(this.$route.query.id)
console.log(ApprovalComment)
this.form.time[0] = ApprovalComment.data.startDate
this.form.time[1] = ApprovalComment.data.endDate
this.form.describe = ApprovalComment.data.content
@ -402,7 +401,6 @@ export default {
startDate: this.form.time && this.form.time.length > 1 ? this.form.time[0] : '',
endDate: this.form.time && this.form.time.length > 1 ? this.form.time[1] : '',
}
console.log(data)
if (this.$route.query.id) {
data.id = this.$route.query.id
}

Loading…
Cancel
Save