From f57d307b231b18f52e89e16ca10397d7d818d678 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 14 Jan 2022 13:36:11 +0800 Subject: [PATCH 1/3] bug --- src/apps/AppVillageDiscuss/Add.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/AppVillageDiscuss/Add.vue b/src/apps/AppVillageDiscuss/Add.vue index b6841145..4b7771b7 100644 --- a/src/apps/AppVillageDiscuss/Add.vue +++ b/src/apps/AppVillageDiscuss/Add.vue @@ -224,7 +224,7 @@ export default { if (!this.form.discussDeadline) { return this.$u.toast('请先选择议事截止时间') } - var beginTimes = new Date(this.form.discussDeadline).getTime() * 1 + var beginTimes = new Date(this.form.discussDeadline.replaceAll('-', '/')).getTime() * 1 var publicityDeadlineTimes = new Date(e.year + '/' + e.month + '/' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00').getTime() * 1 From 39cc1f3d1fab4db65119a3e36108c3dfd9bcdab0 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 14 Jan 2022 13:46:06 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppGridManagement/AddGird.vue | 18 ++++++++++++++---- src/apps/AppGridManagement/SetGird.vue | 12 +++++++++++- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/apps/AppGridManagement/AddGird.vue b/src/apps/AppGridManagement/AddGird.vue index 805a4c5d..3f326322 100644 --- a/src/apps/AppGridManagement/AddGird.vue +++ b/src/apps/AppGridManagement/AddGird.vue @@ -14,7 +14,7 @@
- + ,{{item.name}} 请选择 @@ -25,7 +25,7 @@ 网格员
- + ,{{item.name}} 请选择 @@ -93,10 +93,20 @@ export default { if(!this.form.girdName){ return this.$u.toast('请输入网格名称') } + if(this.fromType == 'add') { + this.form.parentGirdId = this.detailInfo.id + this.form.parentGirdName = this.detailInfo.girdName + this.form.girdLevel = Number(this.detailInfo.girdLevel)+1 + this.form.girdType = Number(this.detailInfo.girdType)+1 + this.form.isLastLevel = this.form.girdLevel == 2 ? '1' : '0' + } this.$http.post(`/app/appgirdinfo/addOrUpdate`, this.form).then((res) => { if (res.code == 0) { - this. - uni.navigateBack() + this.$u.toast('提交成功') + uni.$emit('update') + setTimeout(() => { + uni.navigateBack() + }, 600) } }) diff --git a/src/apps/AppGridManagement/SetGird.vue b/src/apps/AppGridManagement/SetGird.vue index 073cdb8e..26207a1c 100644 --- a/src/apps/AppGridManagement/SetGird.vue +++ b/src/apps/AppGridManagement/SetGird.vue @@ -60,6 +60,7 @@
+
删除网格 编辑网格 @@ -88,6 +89,10 @@ export default { onLoad() { this.$dict.load('girdType', 'girdLevel') this.isGirdUser() + uni.$on('update', () => { + this.show = false + this.getTree() + }) }, methods: { isGirdUser() { @@ -408,9 +413,14 @@ export default { border-bottom: 0; } .btn{ - padding: 32px 0; + width: 100%; + padding: 32px; + box-sizing: border-box; background-color: #fff; display: flex; + position: fixed; + bottom: 0; + left: 0; span{ display: inline-block; height: 92px; From 9fcf15e2513f8206ae05bd9f268abe80a276894e Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 14 Jan 2022 13:54:17 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppGridManagement/AppGridManagement.vue | 2 +- src/apps/AppGridManagement/Organization.vue | 2 +- src/apps/AppGridManagement/Statistics.vue | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/apps/AppGridManagement/AppGridManagement.vue b/src/apps/AppGridManagement/AppGridManagement.vue index 561701be..24896f3a 100644 --- a/src/apps/AppGridManagement/AppGridManagement.vue +++ b/src/apps/AppGridManagement/AppGridManagement.vue @@ -21,7 +21,7 @@ export default { data() { return { - component: 'Organization', + component: 'Statistics', params: {}, refresh: true, tabIndex: 0, diff --git a/src/apps/AppGridManagement/Organization.vue b/src/apps/AppGridManagement/Organization.vue index edfb5e22..a6534f9d 100644 --- a/src/apps/AppGridManagement/Organization.vue +++ b/src/apps/AppGridManagement/Organization.vue @@ -6,7 +6,7 @@ {{userGird.girdName}}
- 网格配置 + 网格配置
网格人员
diff --git a/src/apps/AppGridManagement/Statistics.vue b/src/apps/AppGridManagement/Statistics.vue index 667616e9..07080687 100644 --- a/src/apps/AppGridManagement/Statistics.vue +++ b/src/apps/AppGridManagement/Statistics.vue @@ -15,17 +15,20 @@
- {{ peopleList['网格长'] || 0 }} + {{ peopleList['网格长']}} + 0 网格长
- {{ peopleList['网格员'] || 0 }} + {{ peopleList['网格员']}} + 0 网格员
- {{ peopleList['责任家庭数'] || 0 }} + {{ peopleList['责任家庭数'] }} + 0 责任家庭数