diff --git a/src/project/saas/AppSpecialGroups/Add.vue b/src/project/saas/AppSpecialGroups/Add.vue new file mode 100644 index 00000000..b53b1212 --- /dev/null +++ b/src/project/saas/AppSpecialGroups/Add.vue @@ -0,0 +1,624 @@ + + + + + *类型 + + {{ + $dict.getLabel('appSpecialTypeFive', form.userType) || '请选择' + }} + + + + + *姓名 + + + + + + + *身份证号 + + + + + + *性别 + + + + + + *出生日期 + + + + + + *联系电话 + + + + + + *所属区域 + + + {{ form.areaName }} + 请选择 + + + + + + 详细地址 + + + + + + + 所属网格 + + + + + + + + + + + {{ item.label }} + + + + + + + {{ item.label }} + + + + + + + {{ item.label }} + + + + + + + {{ item.label }} + + {{ + $dict.getLabel(item.dict, form[item.formDbName]) || '请选择' + }} + + + + + + {{ item.label }} + + {{ + $dateFormat(form[item.formDbName], 'YYYY-MM-DD') || '请选择' + }} + + + + + + + + + + 请选择 + + + + + + + + diff --git a/src/project/saas/AppSpecialGroups/AppSpecialGroups.vue b/src/project/saas/AppSpecialGroups/AppSpecialGroups.vue index ebd5aa2a..06056f29 100644 --- a/src/project/saas/AppSpecialGroups/AppSpecialGroups.vue +++ b/src/project/saas/AppSpecialGroups/AppSpecialGroups.vue @@ -1,25 +1,15 @@ - 特殊人群总计 : 60人 - + 特殊人群总计 : {{ total }}人 + - 残疾人残疾人残疾人残疾人残疾人残疾人残疾人残疾人残疾人残疾人 + {{ item.label }} - 12 + {{ item.value }} - - - - 残疾人 - - - 12 - - - @@ -29,14 +19,34 @@ export default { appName: "特殊人群", data() { return { - + statisticsList: [], + total: 0 } }, methods: { - toList() { - uni.navigateTo({ url: './List'}) + getStatistic() { + this.statisticsList = [] + this.total = 0 + this.$http.post(`/app/appspecialadjustment/statistic?type=0&range=0`).then((res) => { + if (res?.data) { + for (let i in res.data.map) { + var obj = { + label: i, + value: res.data.map[i], + } + this.total = this.total + res.data.map[i] + this.statisticsList.push(obj) + } + } + }) + }, + toList(label) { + uni.navigateTo({ url: `./List?label=${label}`}) } }, + created() { + this.getStatistic() + }, onShow() { document.title = "特殊人群" }, diff --git a/src/project/saas/AppSpecialGroups/List.vue b/src/project/saas/AppSpecialGroups/List.vue index cf2d0d87..9d25f8cc 100644 --- a/src/project/saas/AppSpecialGroups/List.vue +++ b/src/project/saas/AppSpecialGroups/List.vue @@ -2,62 +2,121 @@ - + - + - + - 金宝彩 - 428008******8765 + {{ item.name }} + {{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }} - - + + - 13890767891 + {{ item.phone }} + diff --git a/src/project/saas/AppSpecialGroups/pickGrid.vue b/src/project/saas/AppSpecialGroups/pickGrid.vue deleted file mode 100644 index 3d75616b..00000000 --- a/src/project/saas/AppSpecialGroups/pickGrid.vue +++ /dev/null @@ -1,246 +0,0 @@ - - - - - - - - - - - - - - - - - {{ item.girdName }} - - - - - - - - - - - - -
428008******8765
{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}
13890767891
{{ item.phone }}