From 0170589b990cd99fc8625fae74fe33d687a05261 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Tue, 2 Aug 2022 16:44:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=BB=E6=8A=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
rainmaintain/rainmaintain/rainmaintain.vue | 74 ++++++++++++++++++----
1 file changed, 63 insertions(+), 11 deletions(-)
diff --git a/rainmaintain/rainmaintain/rainmaintain.vue b/rainmaintain/rainmaintain/rainmaintain.vue
index 9f88e8a..c44abb4 100644
--- a/rainmaintain/rainmaintain/rainmaintain.vue
+++ b/rainmaintain/rainmaintain/rainmaintain.vue
@@ -29,6 +29,17 @@
重新获取
+
+
+
+
+
+
+
+
+
+
+
@@ -95,12 +106,16 @@
otherData: {
token: ""
},
- roadName: "",
+ roadName: "",
+ aboutShow:false,
typeShow: false,
dateShow: false,
formshow: true,
lawshow: true,
- showInfoId: false,
+ showInfoId: false,
+ askName:"",
+ askShow:false,
+ numShow:false,
typeName: "雨水管道疏挖",
dateparams: {
year: true,
@@ -110,7 +125,8 @@
minute: true,
second: true,
},
- rainArr: {
+ rainArr: {
+ askContentList:[],
rainTypes: [{
id: 1,
name: "雨水管道疏挖"
@@ -167,7 +183,10 @@
files_list: [],
files_deal_list: [],
date: "",
- address: "",
+ address: "",
+ scope:"",
+ point_name:"",
+ title_id:""
},
rules: {
content: [{
@@ -183,14 +202,16 @@
"/api/mobile/rain-maintains/circulation-store",
"/api/mobile/rain-maintains/circulation-store",
"/api/mobile/rain-maintains/help-discharge-store",
- "/api/mobile/rain-maintains/mire-store"
+ "/api/mobile/rain-maintains/mire-store",
+ "/api/mobile/rain-maintains/out-water-store"
],
save: [
"",
"/api/mobile/rain-maintains/circulation-save",
"/api/mobile/rain-maintains/circulation-save",
"/api/mobile/rain-maintains/help-discharge-save",
- "/api/mobile/rain-maintains/mire-save"
+ "/api/mobile/rain-maintains/mire-save",
+ "/api/mobile/rain-maintains/out-water-save"
]
}
}
@@ -205,7 +226,8 @@
if (options.roadid) {
this.form.road_id = options.roadid
this.roadName = options.roadname
- }
+ }
+ that.loadAskContent();
this.action = this.util.HOST + "/api/mobile/upload-file";
@@ -257,10 +279,14 @@
that.typeName = val[0].label
that.form.type = val[0].value
that.formshow = true
- that.lawshow = true
+ that.lawshow = true
+ that.aboutShow = false
+ that.numShow = false
that.filesList = [];
this.$refs.uUpload.clear();
- that.dealFilesList = [];
+ that.dealFilesList = [];
+ that.form.scope = ""
+ that.form.point_name = ""
if (that.form.is_solve == 1) {
this.$refs.uUploaddeal.clear();
}
@@ -273,9 +299,35 @@
that.form.longitude = ""
}
if (val[0].value == 3 || val[0].value == 4) {
- that.lawshow = false
+ that.lawshow = false
+ that.aboutShow = true
+ }
+ if (val[0].value == 5) {
+ that.aboutShow = true
+ that.numShow = true
}
console.log("res", that.form)
+ },
+ confirmAskType(e){
+ console.log(e)
+ this.askName = e[0].label
+ this.form.title_id = e[0].value
+ },
+ loadAskContent() {
+ var that = this;
+ that.util.request({
+ api: '/api/admin/parameter/show',
+ method: "get",
+ data: {
+ number: "maintainContent"
+ },
+ utilSuccess: function(result) {
+ that.rainArr.askContentList = result.detail
+ },
+ utilFail: function(res) {
+ that.util.alert(res);
+ }
+ });
},
chooseLocation(e) { //打开地图选择位置
var that = this;
@@ -468,7 +520,7 @@
}
this.$refs.uForm.validate(valid => {
- // console.log(api)
+ console.log("form",that.form)
// return;
if (valid) {
console.log('验证通过');