diff --git a/src/sass/AppConflictMediation/AppConflictMediation.vue b/src/sass/AppConflictMediation/AppConflictMediation.vue
index c46d4320..2c903eb3 100644
--- a/src/sass/AppConflictMediation/AppConflictMediation.vue
+++ b/src/sass/AppConflictMediation/AppConflictMediation.vue
@@ -12,7 +12,7 @@
import List from './List.vue'
export default {
- name: 'AppHandSnapshot',
+ name: 'AppConflictMediation',
appName: '矛盾调解',
data() {
@@ -76,7 +76,7 @@ export default {
diff --git a/src/sass/AppConflictMediation/add.vue b/src/sass/AppConflictMediation/add.vue
index 6e0755a9..eb4dcc69 100644
--- a/src/sass/AppConflictMediation/add.vue
+++ b/src/sass/AppConflictMediation/add.vue
@@ -58,13 +58,18 @@
*
上报网格
-
+
+ {{ form.girdName }}
+ 请选择
+
+
+
@@ -112,6 +117,8 @@
上报
+
+
@@ -140,8 +147,8 @@
},
dictList: [],
arr: [],
- gridList: [[], []],
-
+ showSelect: false,
+ girdList: [],
}
},
@@ -190,6 +197,16 @@
})
},
+ confirmSelect(e) {
+ console.log(e)
+ this.form.girdId = e[0].value
+ this.girdList.map((item) => {
+ if(item.id == this.form.girdId) {
+ this.form.girdName = item.girdName
+ }
+ })
+ },
+
getDict () {
this.$http.post(`/app/appclapeventgroup/list`).then(res => {
console.log(res);
@@ -211,11 +228,10 @@
},
getGirdList () {
- this.$http.post(`/app/appgirdinfo/y`).then(res => {
+ this.$http.post(`/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser`).then(res => {
if (res.code == 0) {
this.arr = res.data
- this.gridList[0] = res.data[0].girdList
- this.gridList[1] = res.data[0].girdList[0].girdList
+ this.girdList = res.data
}
})
},
@@ -235,9 +251,7 @@
this.form.girdName = this.gridList[1][v].girdName
this.form.girdId = this.gridList[1][v].id
} else {
- return this.$toast('所属网格必须选第三级网格')
- // this.form.girdName = this.gridList[e.detail.value[0].girdName
- // this.form.girdId = this.gridList[e.detail.value[0].id
+ return this.$u.toast('所属网格必须选第三级网格')
}
},
@@ -248,16 +262,10 @@
if (!this.form.groupId) {
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.opts == false) {
+ if (this.form.opts == 0) {
if (!this.form.result) {
return this.$u.toast('请输入事件办理结果')
}
@@ -269,8 +277,6 @@
this.$loading()
this.$http.post(`/app/appclapeventinfo/addOrUpdate`, {
...this.form,
- // 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 => {
@@ -279,8 +285,8 @@
if (res.code == 0) {
uni.$emit('update')
setTimeout(() => {
- uni.redirectTo({
- url: './detail'
+ uni.navigateTo({
+ url: './List'
})
}, 400)
}
diff --git a/src/sass/AppSpecialPeople/add.vue b/src/sass/AppSpecialPeople/add.vue
index fd72a0e2..69c9dc52 100644
--- a/src/sass/AppSpecialPeople/add.vue
+++ b/src/sass/AppSpecialPeople/add.vue
@@ -103,7 +103,7 @@
{{ item.label }}
{{
- $dateFormat(form[item.formDbName], 'YYYY-MM-DD HH:mm') || '请选择'
+ $dateFormat(form[item.formDbName], 'YYYY-MM-DD') || '请选择'
}}