Browse Source

fix: 修复bug

sy-water-data-board-ui
hejunjie 1 month ago
parent
commit
5e412ba0d0
  1. 16
      src/views/sluice/runManage/patrolMaintenance/componentsDetails/acceptanceDetails.vue
  2. 6
      src/views/sluice/runManage/patrolMaintenance/componentsDetails/defectDetails.vue
  3. 24
      src/views/sluice/runManage/patrolMaintenance/componentsDetails/inspectionRecordDetails.vue
  4. 22
      src/views/sluice/runManage/patrolMaintenance/componentsDetails/maintenanceDetails.vue

16
src/views/sluice/runManage/patrolMaintenance/componentsDetails/acceptanceDetails.vue

@ -8,7 +8,7 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<div class="tc-text2">水闸名称</div> <div class="tc-text2">水闸名称</div>
<div class="tc-text1">{{ form.sluiceName }}</div> <div class="tc-text1">{{ form.wagaName }}</div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<div class="tc-text2">水闸巡查责任人</div> <div class="tc-text2">水闸巡查责任人</div>
@ -226,7 +226,7 @@ export default {
images: '', images: '',
createName: '', createName: '',
userName: '', userName: '',
sluiceName: '', wagaName: '',
category: '', category: '',
parts: '', parts: '',
partsName: '', partsName: '',
@ -236,8 +236,8 @@ export default {
problemImages: '', problemImages: '',
problemLevel: '', problemLevel: '',
createUid: '', createUid: '',
sluiceCode: '', wagaCode: '',
sluiceType: '', wagaType: '',
type: '', type: '',
time: [], time: [],
scope: '', scope: '',
@ -245,7 +245,7 @@ export default {
rules: { rules: {
userName: [{required: true}], userName: [{required: true}],
projectName: [{required: true}], projectName: [{required: true}],
sluiceName: [{required: true}], wagaName: [{required: true}],
inspectionCategory: [{required: true}], inspectionCategory: [{required: true}],
time: [{required: true}], time: [{required: true}],
describe: [{required: true}], describe: [{required: true}],
@ -277,15 +277,15 @@ export default {
const checking = await gettV2Record(this.$route.query.recordId) const checking = await gettV2Record(this.$route.query.recordId)
this.form.createName = checking.data.createName this.form.createName = checking.data.createName
this.form.operator = this.userName this.form.operator = this.userName
this.form.sluiceName = checking.data.sluiceName this.form.wagaName = checking.data.wagaName
this.form.checkingId = checking.data.checkingId this.form.checkingId = checking.data.checkingId
this.form.checkingName = checking.data.checkingName this.form.checkingName = checking.data.checkingName
this.form.status = checking.data.status this.form.status = checking.data.status
this.form.problems = checking.data.problems this.form.problems = checking.data.problems
this.form.category = checking.data.category this.form.category = checking.data.category
this.form.createUid = checking.data.createUid this.form.createUid = checking.data.createUid
this.form.sluiceCode = checking.data.sluiceCode this.form.wagaCode = checking.data.wagaCode
this.form.sluiceType = checking.data.sluiceType this.form.wagaType = checking.data.wagaType
this.form.type = checking.data.type this.form.type = checking.data.type
this.form.startDate = checking.data.startDate this.form.startDate = checking.data.startDate
this.form.endDate = checking.data.endDate this.form.endDate = checking.data.endDate

6
src/views/sluice/runManage/patrolMaintenance/componentsDetails/defectDetails.vue

@ -8,7 +8,7 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<div class="tc-text2">水闸名称</div> <div class="tc-text2">水闸名称</div>
<div class="tc-text1">{{ form.sluiceName }}</div> <div class="tc-text1">{{ form.wagaName }}</div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<div class="tc-text2">水闸巡查责任人</div> <div class="tc-text2">水闸巡查责任人</div>
@ -77,7 +77,7 @@ export default {
maintenanceLevel: [], maintenanceLevel: [],
form: { form: {
createName: '', createName: '',
sluiceName: '', wagaName: '',
category: '', category: '',
parts: '', parts: '',
partsName: '', partsName: '',
@ -105,7 +105,7 @@ export default {
async initData() { async initData() {
const checking = await gettV2Record(this.$route.query.recordId) const checking = await gettV2Record(this.$route.query.recordId)
this.form.createName = checking.data.createName this.form.createName = checking.data.createName
this.form.sluiceName = checking.data.sluiceName this.form.wagaName = checking.data.wagaName
this.form.problems = checking.data.problems this.form.problems = checking.data.problems
this.form.category = checking.data.category this.form.category = checking.data.category
this.form.startDate = checking.data.startDate this.form.startDate = checking.data.startDate

24
src/views/sluice/runManage/patrolMaintenance/componentsDetails/inspectionRecordDetails.vue

@ -17,8 +17,8 @@
<el-form-item label="巡查项目名称:" prop="name"> <el-form-item label="巡查项目名称:" prop="name">
{{ form.name }} {{ form.name }}
</el-form-item> </el-form-item>
<el-form-item label="巡查水闸名称:" prop="sluiceName"> <el-form-item label="巡查水闸名称:" prop="wagaName">
{{ form.sluiceName }} {{ form.wagaName }}
</el-form-item> </el-form-item>
<el-form-item label="巡查类别:" prop="category"> <el-form-item label="巡查类别:" prop="category">
{{ getDictLabelName(form.category, "maintenanceCategory") }} {{ getDictLabelName(form.category, "maintenanceCategory") }}
@ -315,11 +315,11 @@ export default {
form: { form: {
createName: "", createName: "",
name: "", name: "",
sluiceName: "", wagaName: "",
category: "", category: "",
createUid: "", createUid: "",
sluiceCode: "", wagaCode: "",
sluiceType: "", wagaType: "",
type: "", type: "",
time: [], time: [],
scope: "", scope: "",
@ -327,7 +327,7 @@ export default {
rules: { rules: {
createName: [{ required: true }], createName: [{ required: true }],
name: [{ required: true }], name: [{ required: true }],
sluiceName: [{ required: true }], wagaName: [{ required: true }],
category: [{ required: true }], category: [{ required: true }],
time: [{ required: true, message: "请选择巡查时间", trigger: "change"}], time: [{ required: true, message: "请选择巡查时间", trigger: "change"}],
scope: [{ required: true, message: "请输入巡查方位", trigger: "change" }], scope: [{ required: true, message: "请输入巡查方位", trigger: "change" }],
@ -365,11 +365,11 @@ export default {
const checking = await getV2PatrolChecking(this.$route.query.checkingId); const checking = await getV2PatrolChecking(this.$route.query.checkingId);
this.form.createName = checking.data.createName; this.form.createName = checking.data.createName;
this.form.name = checking.data.name; this.form.name = checking.data.name;
this.form.sluiceName = checking.data.sluiceName; this.form.wagaName = checking.data.wagaName;
this.form.category = checking.data.category; this.form.category = checking.data.category;
this.form.createUid = checking.data.createUid; this.form.createUid = checking.data.createUid;
this.form.sluiceCode = checking.data.sluiceCode; this.form.wagaCode = checking.data.wagaCode;
this.form.sluiceType = checking.data.sluiceType; this.form.wagaType = checking.data.wagaType;
this.form.type = checking.data.type; this.form.type = checking.data.type;
const items = checking.data.items; const items = checking.data.items;
getDictMapData("sz_xs_c_classfy").then((res) => { getDictMapData("sz_xs_c_classfy").then((res) => {
@ -496,9 +496,9 @@ export default {
checkingName: this.form.name, checkingName: this.form.name,
createName: this.form.createName, createName: this.form.createName,
createUid: this.form.createUid, createUid: this.form.createUid,
sluiceName: this.form.sluiceName, wagaName: this.form.wagaName,
sluiceCode: this.form.sluiceCode, wagaCode: this.form.wagaCode,
sluiceType: this.form.sluiceType, wagaType: this.form.wagaType,
scope: this.form.scope, scope: this.form.scope,
problems: this.problemsData, problems: this.problemsData,
startDate: startDate:

22
src/views/sluice/runManage/patrolMaintenance/componentsDetails/maintenanceDetails.vue

@ -8,7 +8,7 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<div class="tc-text2">水闸名称</div> <div class="tc-text2">水闸名称</div>
<div class="tc-text1">{{ form.sluiceName }}</div> <div class="tc-text1">{{ form.wagaName }}</div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<div class="tc-text2">水闸巡查责任人</div> <div class="tc-text2">水闸巡查责任人</div>
@ -237,7 +237,7 @@ export default {
images: [], images: [],
createName: '', createName: '',
userName: '', userName: '',
sluiceName: '', wagaName: '',
category: '', category: '',
parts: '', parts: '',
partsName: '', partsName: '',
@ -247,8 +247,8 @@ export default {
problemImages: '', problemImages: '',
problemLevel: '', problemLevel: '',
createUid: '', createUid: '',
sluiceCode: '', wagaCode: '',
sluiceType: '', wagaType: '',
type: '', type: '',
time: [], time: [],
scope: '', scope: '',
@ -256,7 +256,7 @@ export default {
rules: { rules: {
userName: [{required: true}], userName: [{required: true}],
projectName: [{required: true}], projectName: [{required: true}],
sluiceName: [{required: true}], wagaName: [{required: true}],
inspectionCategory: [{required: true}], inspectionCategory: [{required: true}],
time: [{required: true, message: "请选择巡查时间", trigger: "change"}], time: [{required: true, message: "请选择巡查时间", trigger: "change"}],
describe: [{required: true, message: "输入巡查详情", trigger: "change"}], describe: [{required: true, message: "输入巡查详情", trigger: "change"}],
@ -286,15 +286,15 @@ export default {
this.form.createName = checking.data.createName this.form.createName = checking.data.createName
this.form.userName = this.userName this.form.userName = this.userName
this.form.userId = this.userId this.form.userId = this.userId
this.form.sluiceName = checking.data.sluiceName this.form.wagaName = checking.data.wagaName
this.form.checkingId = checking.data.checkingId this.form.checkingId = checking.data.checkingId
this.form.checkingName = checking.data.checkingName this.form.checkingName = checking.data.checkingName
this.form.status = checking.data.status this.form.status = checking.data.status
this.form.problems = checking.data.problems this.form.problems = checking.data.problems
this.form.category = checking.data.category this.form.category = checking.data.category
this.form.createUid = checking.data.createUid this.form.createUid = checking.data.createUid
this.form.sluiceCode = checking.data.sluiceCode this.form.wagaCode = checking.data.wagaCode
this.form.sluiceType = checking.data.sluiceType this.form.wagaType = checking.data.wagaType
this.form.type = checking.data.type this.form.type = checking.data.type
this.form.startDate = checking.data.startDate this.form.startDate = checking.data.startDate
this.form.endDate = checking.data.endDate this.form.endDate = checking.data.endDate
@ -404,9 +404,9 @@ export default {
if (valid) { if (valid) {
const data = { const data = {
name: this.form.checkingName, name: this.form.checkingName,
sluiceCode: this.form.sluiceCode, wagaCode: this.form.wagaCode,
sluiceType: this.form.sluiceType, wagaType: this.form.wagaType,
sluiceName: this.form.sluiceName, wagaName: this.form.wagaName,
status: this.form.status, status: this.form.status,
type: this.form.type, type: this.form.type,
category: this.form.category, category: this.form.category,

Loading…
Cancel
Save