Browse Source

fix: 修复bug

sy-water-data-board-ui
panyuyi 11 months ago
parent
commit
393eab0248
  1. 14
      src/views/sluice/runManage/dangerWeakProject/inspectTasks/taskDetails.vue
  2. 2
      src/views/sluice/runManage/maintenance/maintenanceRecords/index.vue
  3. 6
      src/views/sluice/runManage/supervisionInspetion/tasksManage/index.vue
  4. 4
      src/views/sluice/runManage/supervisionInspetion/tasksManage/tasksDetails.vue
  5. 2
      src/views/sluice/runManage/waterRainReport/smartAnalyse/index.vue

14
src/views/sluice/runManage/dangerWeakProject/inspectTasks/taskDetails.vue

@ -19,7 +19,7 @@ export default {
paramsData: { paramsData: {
name: "", name: "",
type: null, type: null,
dikeName: "", wagaName: "",
selectLevel: "", selectLevel: "",
selectType: "", selectType: "",
}, },
@ -358,8 +358,8 @@ export default {
this.$refs.ruleForm.validate((valid) => { this.$refs.ruleForm.validate((valid) => {
if (valid) { if (valid) {
if ( if (
!this.ruleForm.dikeList || !this.ruleForm.wagaList ||
this.ruleForm.dikeList.length < 1 this.ruleForm.wagaList.length < 1
) { ) {
this.$message.error("请至少添加一个堤防"); this.$message.error("请至少添加一个堤防");
return; return;
@ -367,11 +367,11 @@ export default {
let formData = { let formData = {
...this.ruleForm, ...this.ruleForm,
dikeCode: this.ruleForm.dikeList wagaCode: this.ruleForm.wagaList
.map((item) => item.dikeCode) .map((item) => item.wagaCode)
.join(","), .join(","),
dikeName: this.ruleForm.dikeList wagaName: this.ruleForm.wagaList
.map((item) => item.dikeName) .map((item) => item.wagaName)
.join(","), .join(","),
}; };
if (this.$route.query.id) { if (this.$route.query.id) {

2
src/views/sluice/runManage/maintenance/maintenanceRecords/index.vue

@ -363,7 +363,7 @@ export default {
<template> <template>
<div class="slider-right"> <div class="slider-right">
<div class="top-title"> <div class="top-title">
{{ $router.currentRoute.meta.title }} - {{ $route.query.dikeName }} {{ $router.currentRoute.meta.title }} - {{ $route.query.wagaName }}
</div> </div>
<div class="table-box"> <div class="table-box">
<div class="top-search"> <div class="top-search">

6
src/views/sluice/runManage/supervisionInspetion/tasksManage/index.vue

@ -101,11 +101,7 @@ export default {
.catch(() => {}); .catch(() => {});
}, },
}, },
created() { created() {},
this.getDicts("embankment_type").then((response) => {
this.dikeTypeList = response.data;
});
},
mounted() { mounted() {
// //
this.getTableData(); this.getTableData();

4
src/views/sluice/runManage/supervisionInspetion/tasksManage/tasksDetails.vue

@ -18,7 +18,7 @@ export default {
paramsData: { paramsData: {
name: "", name: "",
type: null, type: null,
dikeName: "", wagaName: "",
selectLevel: "", selectLevel: "",
selectType: "", selectType: "",
}, },
@ -164,7 +164,7 @@ export default {
this.$refs[ruleForm].resetFields(); this.$refs[ruleForm].resetFields();
this.ruleForm = { this.ruleForm = {
wagaCode: [], wagaCode: [],
dikeName: "", wagaName: "",
name: "", name: "",
type: "", type: "",
instruction: "", instruction: "",

2
src/views/sluice/runManage/waterRainReport/smartAnalyse/index.vue

@ -113,7 +113,7 @@ import {
getRainfallAndGateFlowApi, getRainfallAndGateFlowApi,
getWaterLevelInfoApi, getWaterLevelInfoApi,
} from "@/api/sluice/index.js"; } from "@/api/sluice/index.js";
import { getYearRainfallData } from "@/api/dike/analysis"; import { getYearRainfallData } from "@/api/sluice/analysis";
import dayjs from "dayjs"; import dayjs from "dayjs";

Loading…
Cancel
Save