diff --git a/src/views/rain/inspection/components/editEquipment.vue b/src/views/rain/inspection/components/editEquipment.vue index 7fd49c8..8880004 100644 --- a/src/views/rain/inspection/components/editEquipment.vue +++ b/src/views/rain/inspection/components/editEquipment.vue @@ -259,7 +259,8 @@ .split(",") : [] for (var m of askArr) { that.askContentArr.push(parseInt(m)) - } + } + that.roaddisabled = true that.roadName = result.rain_equipment_info.road ? result.rain_equipment_info.road.name : "" that.mapform = [result.rain_equipment_info.longitude, result.rain_equipment_info.latitude, result diff --git a/src/views/rain/inspection/components/editSite.vue b/src/views/rain/inspection/components/editSite.vue index 91c563a..89f476b 100644 --- a/src/views/rain/inspection/components/editSite.vue +++ b/src/views/rain/inspection/components/editSite.vue @@ -156,7 +156,10 @@ storebuilding, savebuilding, getbuilding - } from '../../../../api/rain/inspection.js' + } from '../../../../api/rain/inspection.js' + import { + getToken + } from '@/utils/auth' import { getparameteritem } from '../../../../api/system/dictionary.js' @@ -255,7 +258,8 @@ this.initload() }, methods: { - initload() { + initload() { + this.uploadOther.token = getToken() getparameteritem('siteType').then(res => { this.siteType = res.detail }) diff --git a/src/views/rain/inspection/components/showRainEquipmentInfo.vue b/src/views/rain/inspection/components/showRainEquipmentInfo.vue index 94a4036..2c7f040 100644 --- a/src/views/rain/inspection/components/showRainEquipmentInfo.vue +++ b/src/views/rain/inspection/components/showRainEquipmentInfo.vue @@ -269,7 +269,7 @@ end_type: 0, end_time: "", remark: "", - maintain_type:0 + // maintain_type:"" }, rules: {} @@ -286,7 +286,7 @@ if(val){ this.formdetail.remark = "" this.formdetail.end_time = "" - this.formdetail.maintain_type = 0 + // this.formdetail.maintain_type = "" } } }, diff --git a/src/views/rain/inspection/components/showRainSiteInfo.vue b/src/views/rain/inspection/components/showRainSiteInfo.vue index 7f3a0fa..25b6afc 100644 --- a/src/views/rain/inspection/components/showRainSiteInfo.vue +++ b/src/views/rain/inspection/components/showRainSiteInfo.vue @@ -298,7 +298,7 @@ content: "", end_time: "", remark: "", - maintain_type:0, + // maintain_type:"", end_type:0 }, rules: {} @@ -317,7 +317,7 @@ if(val){ this.formdetail.remark = "" this.formdetail.end_time = "" - this.formdetail.maintain_type = 0 + // this.formdetail.maintain_type = "" } } }, diff --git a/src/views/rain/inspection/inspection copy.vue b/src/views/rain/inspection/inspection copy.vue deleted file mode 100644 index 5ddd9bf..0000000 --- a/src/views/rain/inspection/inspection copy.vue +++ /dev/null @@ -1,1295 +0,0 @@ - - - - - diff --git a/src/views/rain/inspection/inspection.vue b/src/views/rain/inspection/inspection.vue index b5f232b..152d6de 100644 --- a/src/views/rain/inspection/inspection.vue +++ b/src/views/rain/inspection/inspection.vue @@ -16,6 +16,10 @@ + + + + @@ -91,23 +95,19 @@
待复核 已复核 -
无
{{scope.row[column.field]?scope.row[column.field].name:""}} -
{{getUserName(scope.row)}} +
+
+ {{getMaintinName(scope.row)}}
-
{{scope.row[column.field]}}
@@ -190,7 +190,10 @@ } from '../../../api/system/dictionary.js' import { listarea - } from '../../../api/basic/area.js' + } from '../../../api/basic/area.js' + import { + listmaintain + } from '../../../api/basic/unit.js' import { listroad } from '../../../api/basic/road.js' @@ -223,7 +226,8 @@ }, searchFields: { - is_export: 0 + is_export: 0, + is_auth:1 }, datesearch: "", roadsList: [], @@ -277,7 +281,11 @@ sequiementList: [{ id: "", value: "所有" - }], + }], + maintainList: [{ + id:"", + name:"所有" + }] }, reviewFormVisible: false, @@ -312,6 +320,13 @@ type: "format", align: "center", width: 180 + }, + { + field: "maintain", + title: "所属养护单位", + type: "maintain", + align: "center", + width: 180 }, { field: "askName", @@ -425,6 +440,17 @@ }) } }) + listmaintain({ + page: 1, + page_size: 999, + }).then(response => { + for(var m of response.data){ + this.selects.maintainList.push(m) + } + }).catch(error => { + console.log(error) + reject(error) + }); }, load(is_export) { // return @@ -590,7 +616,18 @@ } else { return "未知"; } + }, + getMaintinName(row) { + if (row.user) { + if(row.user.maintain){ + return row.user.maintain.name; + }else{ + return ""; + } + } else { + return ""; + } }, remoteRoad() { this.roadsList = [] diff --git a/src/views/rain/inspection/law copy.vue b/src/views/rain/inspection/law copy.vue deleted file mode 100644 index 379b969..0000000 --- a/src/views/rain/inspection/law copy.vue +++ /dev/null @@ -1,980 +0,0 @@ - - - - - diff --git a/src/views/rain/inspection/law.vue b/src/views/rain/inspection/law.vue index 5c28453..8ddbfc4 100644 --- a/src/views/rain/inspection/law.vue +++ b/src/views/rain/inspection/law.vue @@ -16,6 +16,10 @@ + + + + @@ -42,7 +46,7 @@ - + @@ -80,23 +84,19 @@
待复核 已复核 -
无
{{scope.row[column.field]?scope.row[column.field].name:""}} -
{{getUserName(scope.row)}} +
+
+ {{getMaintinName(scope.row)}}
-
{{scope.row[column.field]}}
@@ -179,7 +179,10 @@ } from '../../../api/system/dictionary.js' import { listarea - } from '../../../api/basic/area.js' + } from '../../../api/basic/area.js' + import { + listmaintain + } from '../../../api/basic/unit.js' import { listroad } from '../../../api/basic/road.js' @@ -267,7 +270,11 @@ sequiementList: [{ id: "", value: "所有" - }], + }], + maintainList: [{ + id:"", + name:"所有" + }] }, reviewFormVisible: false, @@ -302,6 +309,13 @@ type: "format", align: "center", width: 180 + }, + { + field: "maintain", + title: "所属养护单位", + type: "maintain", + align: "center", + width: 180 }, { field: "askName", @@ -415,6 +429,17 @@ }) } }) + listmaintain({ + page: 1, + page_size: 999, + }).then(response => { + for(var m of response.data){ + this.selects.maintainList.push(m) + } + }).catch(error => { + console.log(error) + reject(error) + }); }, load(is_export) { // return @@ -538,6 +563,18 @@ return "未知"; } + }, + getMaintinName(row) { + if (row.user) { + if(row.user.maintain){ + return row.user.maintain.name; + }else{ + return ""; + } + + } else { + return ""; + } }, remoteRoad() { this.roadsList = [] diff --git a/src/views/rain/maintain/components/editCirculation.vue b/src/views/rain/maintain/components/editCirculation.vue new file mode 100644 index 0000000..58d1c32 --- /dev/null +++ b/src/views/rain/maintain/components/editCirculation.vue @@ -0,0 +1,530 @@ + + + + + diff --git a/src/views/rain/maintain/components/editMire.vue b/src/views/rain/maintain/components/editMire.vue new file mode 100644 index 0000000..579b500 --- /dev/null +++ b/src/views/rain/maintain/components/editMire.vue @@ -0,0 +1,287 @@ + + + + + diff --git a/src/views/rain/maintain/components/showCirculationInfo.vue b/src/views/rain/maintain/components/showCirculationInfo.vue index a8bdc29..9be4464 100644 --- a/src/views/rain/maintain/components/showCirculationInfo.vue +++ b/src/views/rain/maintain/components/showCirculationInfo.vue @@ -1,32 +1,230 @@ - @@ -99,7 +104,7 @@
- @@ -493,7 +498,10 @@ } from '../../../api/basic/area.js' import { listroad - } from '../../../api/basic/road.js' + } from '../../../api/basic/road.js' + import { + listmaintain + } from '../../../api/basic/unit.js' import { storeclue } from '../../../api/assess/clue.js' @@ -560,7 +568,7 @@ id: "3", name: "已退回" }], - maintaninList: [{ + maintaingroupList: [{ id: "", value: "所有" }] @@ -632,6 +640,13 @@ type: "format", align: "center", width: 180 + }, + { + field: "maintain", + title: "所属养护单位", + type: "maintain", + align: "center", + width: 180 }, { field: "end_type", @@ -641,9 +656,9 @@ width: 180 }, { - field: "type", + field: "old_type", title: "类型", - type: "type", + type: "old_type", align: "center", width: 180 }, @@ -727,6 +742,18 @@ return "未知"; } + }, + getMaintinName(row) { + if (row.user) { + if(row.user.maintain){ + return row.user.maintain.name; + }else{ + return ""; + } + + } else { + return ""; + } }, goorder() { this.$router.push({ @@ -773,7 +800,18 @@ }) } - }) + }) + listmaintain({ + page: 1, + page_size: 999, + }).then(response => { + for(var m of response.data){ + this.selects.maintaingroupList.push(m) + } + }).catch(error => { + console.log(error) + reject(error) + }); }, handleCurrentChange(page) { diff --git a/src/views/rain/maintain/maintain copy.vue b/src/views/rain/maintain/maintain copy.vue new file mode 100644 index 0000000..33efe66 --- /dev/null +++ b/src/views/rain/maintain/maintain copy.vue @@ -0,0 +1,1551 @@ + + + + + diff --git a/src/views/rain/maintain/maintain.vue b/src/views/rain/maintain/maintain.vue index e950d95..0b6ec14 100644 --- a/src/views/rain/maintain/maintain.vue +++ b/src/views/rain/maintain/maintain.vue @@ -17,6 +17,10 @@ + + + + @@ -55,15 +59,16 @@ :label="column.title" :width="column.width" :fixed="column.fixed">