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/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 c138f490..a039bf97 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/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;
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
责任家庭数
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