From 72effbbb01358497c5824309784497c616c738c4 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Tue, 12 Jul 2022 16:18:56 +0800 Subject: [PATCH] upup --- pages/index/index.vue | 4 +- .../raininspection/raininspection.vue | 43 +++++++++++++++---- .../raininspectionlist/raininspectionList.vue | 33 +++++++++++--- .../rainmaintainlist/rainmaintainList.vue | 38 ++++++++++++++-- 4 files changed, 98 insertions(+), 20 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 1ea79ae..4c5f591 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -21,7 +21,7 @@ - + diff --git a/raininspection/raininspection/raininspection.vue b/raininspection/raininspection/raininspection.vue index 9e2baa0..bc9fb86 100644 --- a/raininspection/raininspection/raininspection.vue +++ b/raininspection/raininspection/raininspection.vue @@ -21,9 +21,9 @@ - + - @@ -151,6 +151,7 @@ askName:"", lawName:"", buildName:"", + confirmText:"确认", dateparams: { year: true, month: true, @@ -268,7 +269,7 @@ var that = this; this.loadAskContent(); this.loadLawTypes(); - this.loadBuild(); + // this.loadBuild(); this.loadBuildType(); if(options.id){ this.infoId = options.id; @@ -309,6 +310,16 @@ }, methods: { + selectBuildList(){ + var that = this + // that.rainArr.buildList = [] + that.loadBuild() + console.log("123",that.rainArr.buildList) + // if(that.rainArr.buildList){ + + // } + + }, confirmBuildTypeName(val){ console.log(val) var that = this @@ -317,6 +328,11 @@ }, confirmBuildType(val){ var that = this + console.log(val) + if(!val[0].value){ + that.form.name = that.buildName + return + } let buildinfo = val[0].extra; that.buildName = val[0].label that.form.building_site_id = val[0].value @@ -444,16 +460,27 @@ that.util.request({ api: '/api/mobile/rain-inspection/all-building-site', method: "get", - data: {}, + data: { + keyword:that.buildName + }, utilSuccess: function(result) { // that.rainArr.buildList = result let arr=[]; - for(var m of result){ - m.extra = m - arr.push(m) + if(result.length>0){ + for(var m of result){ + m.extra = m + arr.push(m) + } + that.confirmText = "确认" + }else{ + arr.push({ + name:that.buildName + }) + that.confirmText = "新增" } + that.rainArr.buildList = arr - console.log(that.rainArr.buildList) + that.buildShow = true }, utilFail: function(res) { that.util.alert(res); diff --git a/raininspection/raininspectionlist/raininspectionList.vue b/raininspection/raininspectionlist/raininspectionList.vue index 481ed5e..ae8ae77 100644 --- a/raininspection/raininspectionlist/raininspectionList.vue +++ b/raininspection/raininspectionlist/raininspectionList.vue @@ -12,12 +12,13 @@ - + + + - + + @@ -111,7 +111,28 @@ title: "", stat: [], statusId:"", - proStatus:"", + proStatus:"", + typeId:"", + typeStatus:"", + typeList: [{ + label: "所有", + value: '' + }, { + value:1, + label:"雨水管道疏挖" + }, + { + value:2, + label:"雨水管道疏通" + }, + { + value:3, + label:"汛期助排" + }, + { + value:4, + label:"污泥外运" + }], statusList: [{ label: "所有", value: '' @@ -171,6 +192,15 @@ console.log(this.proStatus ) this.loadPage(1); this.$refs.uDropdown.close(); + }, + toChangeTypeStatus: function(value) { + for(var m of this.typeList){ + if(value == m.value){ + this.typeStatus = m.label + } + } + this.loadPage(1); + this.$refs.uDropdown.close(); }, tagClick(index) { this.options1[index].active = !this.options1[index].active;