diff --git a/src/sass/AppConflictMediation/Content.vue b/src/sass/AppConflictMediation/Content.vue index 4e7f1344..c64abad0 100644 --- a/src/sass/AppConflictMediation/Content.vue +++ b/src/sass/AppConflictMediation/Content.vue @@ -78,7 +78,7 @@ export default { }) }, onShow() { - console.log(this.titleList[this.status]) + // console.log(this.titleList[this.status]) document.title = this.titleList[this.status] }, methods: { diff --git a/src/sass/AppConflictMediation/SelectUser.vue b/src/sass/AppConflictMediation/SelectUser.vue index 0389c29f..417ff5f9 100644 --- a/src/sass/AppConflictMediation/SelectUser.vue +++ b/src/sass/AppConflictMediation/SelectUser.vue @@ -102,7 +102,7 @@ export default { }, itemClick(row) { - console.log(row) + // console.log(row) var obj = { girdName: row.girdName, id: row.id, diff --git a/src/sass/AppConflictMediation/add.vue b/src/sass/AppConflictMediation/add.vue index 53abff8d..6e0755a9 100644 --- a/src/sass/AppConflictMediation/add.vue +++ b/src/sass/AppConflictMediation/add.vue @@ -75,12 +75,41 @@
-
自己结办
-
上报处理
+
自己结办
+
上报处理
+
+ + + +
+
+
+
+
+ * +

办理结果

+
+
+ +
+
+
+
+
+
+
+
+ * +

图片上传

+ (最多9张) +
+
+ +
+
-
上报
@@ -101,11 +130,18 @@ girdName: '', flow: '', girdId: '', + lat: '114.138292', + lng: '30.623843', + flag: false, + result: '', + resultFiles: [], + opts: 1, + name: '' }, dictList: [], arr: [], gridList: [[], []], - flag: false + } }, @@ -116,7 +152,7 @@ onLoad () { this.getDict() this.form.phone = this.user.phone - this.form.name = this.user.realName || '' + this.form.name = this.user.name || '' this.getGirdList() }, @@ -155,7 +191,8 @@ }, getDict () { - this.$instance.post(`/app/appclapeventgroup/list?current=1&size=100000`).then(res => { + this.$http.post(`/app/appclapeventgroup/list`).then(res => { + console.log(res); if (res.code == 0) { this.dictList = res.data.records.map(v => { return { @@ -174,7 +211,7 @@ }, getGirdList () { - this.$instance.post(`/app/appgirdinfo/listAllByTop`).then(res => { + this.$http.post(`/app/appgirdinfo/y`).then(res => { if (res.code == 0) { this.arr = res.data this.gridList[0] = res.data[0].girdList @@ -187,17 +224,13 @@ const column = e.detail.column const value = e.detail.value - - if (column === column) { this.getGirdData(value) } }, onChange (e) { - console.log(e) const v = e.detail.value[1] - console.log(v) if (this.gridList[1][v]) { this.form.girdName = this.gridList[1][v].girdName this.form.girdId = this.gridList[1][v].id @@ -215,24 +248,29 @@ if (!this.form.groupId) { return this.$u.toast('请选择事件类型') } - if (!this.form.address) { - return this.$u.toast('请选择发生地点') - } + // if (!this.form.address) { + // return this.$u.toast('请选择发生地点') + // } if (!this.form.girdName) { return this.$u.toast('请选择上报网格') } - if (!this.form.flow) { - return this.$u.toast('请选择处理流程') + // if (!this.form.flow) { + // return this.$u.toast('请选择处理流程') + // } + if (this.form.opts == false) { + if (!this.form.result) { + return this.$u.toast('请输入事件办理结果') + } } if(this.flag) return this.flag = true this.$loading() - this.$instance.post(`/app/appclapeventinfo/addOrUpdate`, { + this.$http.post(`/app/appclapeventinfo/addOrUpdate`, { ...this.form, - openid: this.user.openid, - portrait: this.user.avatarUrl, + // openid: this.user.openid, + // portrait: this.user.avatarUrl, files: this.form.files, groupName: this.dictList.filter(v => v.value === this.form.groupId)[0].label }).then(res => { @@ -242,7 +280,7 @@ uni.$emit('update') setTimeout(() => { uni.redirectTo({ - url: '/service/photoReport/PhotoResult?id=' + res.data.id + url: './detail' }) }, 400) } @@ -373,6 +411,11 @@ font-size: 30px; color: #333333; } + .current { + color: #1174fe; + background: #e7f1fe !important; + position: relative; +} } .btn {