From 3544a290abc19c096ef4ae5e0ad92f1f29061fa4 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 15 Aug 2022 18:39:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=BA=E5=B9=B3=E9=9C=80=E6=B1=82=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E8=B0=83=E6=95=B4=E5=AE=8C=E6=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppHelpEffect/AppHelpEffect.vue | 158 ++++++------- src/apps/AppHelpEffect/addLog.vue | 117 ++++++---- src/apps/AppHelpEffect/helpedResidentList.vue | 65 ++++++ src/apps/AppHelpEffect/normalFarmerList.vue | 208 ++++++++++++++++++ src/apps/AppMonitoringObject/Add.vue | 22 +- .../AppMonitoringObject.vue | 40 ++-- src/apps/AppMonitoringObject/Detail.vue | 101 +++++---- .../AppMonitoringObject/MonitorAddLog.vue | 128 ++++------- .../AppMonitoringObject/MonitorRemoveView.vue | 134 ++++++----- src/apps/AppPovertyHome/AppPovertyHome.vue | 4 +- src/components/AiItem.vue | 6 +- src/components/AiTopFixed.vue | 2 +- src/pages/loading.vue | 3 +- 13 files changed, 599 insertions(+), 389 deletions(-) create mode 100644 src/apps/AppHelpEffect/helpedResidentList.vue create mode 100644 src/apps/AppHelpEffect/normalFarmerList.vue diff --git a/src/apps/AppHelpEffect/AppHelpEffect.vue b/src/apps/AppHelpEffect/AppHelpEffect.vue index 224c1792..4beb735c 100644 --- a/src/apps/AppHelpEffect/AppHelpEffect.vue +++ b/src/apps/AppHelpEffect/AppHelpEffect.vue @@ -1,128 +1,91 @@ @@ -133,57 +96,60 @@ export default { height: 100px; line-height: 100px; } + + .center { + justify-content: center; + text-align: center; + } + .select { width: 100%; display: flex; height: 86px; line-height: 86px; text-align: center; - - ::v-deep .AiSelect .display { - justify-content: center; - } - - .left, - .right { - flex: 1; - } } - .cardList { + + ::v-deep .cardList { padding: 32px; box-sizing: border-box; + .card { padding: 32px; box-sizing: border-box; margin-bottom: 32px; background: #FFF; - box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.0200); + box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.0200); border-radius: 16px; + .user { display: flex; justify-content: space-between; + .name { font-size: 36px; font-weight: 600; } } + .idCard, .tel, .address { margin-top: 8px; color: #999999; + img { margin-right: 16px; width: 28px; height: 28px; } } + .tel, .address { color: #333; } } } - } - \ No newline at end of file + diff --git a/src/apps/AppHelpEffect/addLog.vue b/src/apps/AppHelpEffect/addLog.vue index bee27801..bad00281 100644 --- a/src/apps/AppHelpEffect/addLog.vue +++ b/src/apps/AppHelpEffect/addLog.vue @@ -1,35 +1,55 @@ + + diff --git a/src/apps/AppHelpEffect/normalFarmerList.vue b/src/apps/AppHelpEffect/normalFarmerList.vue new file mode 100644 index 00000000..83e7d224 --- /dev/null +++ b/src/apps/AppHelpEffect/normalFarmerList.vue @@ -0,0 +1,208 @@ + + + + + diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index ed9db1d0..ec0906ef 100644 --- a/src/apps/AppMonitoringObject/Add.vue +++ b/src/apps/AppMonitoringObject/Add.vue @@ -16,17 +16,17 @@ --> -
-
-
- * - 监测对象类型 -
-
- -
-
-
+ + + + + + + + + + +
diff --git a/src/apps/AppMonitoringObject/AppMonitoringObject.vue b/src/apps/AppMonitoringObject/AppMonitoringObject.vue index e78d4a05..77f84443 100644 --- a/src/apps/AppMonitoringObject/AppMonitoringObject.vue +++ b/src/apps/AppMonitoringObject/AppMonitoringObject.vue @@ -6,7 +6,7 @@
全部类型 - {{ $dict.getLabel('fpPrtpStatus', status)}} + {{ $dict.getLabel('fpPrtpStatus', status) }}
+ @confirm="confirmTypeSelect"/>
@@ -71,8 +71,6 @@ export default { currentTabs: 0, areaId: '', areaName: '', - isAdmin: false, - checkType: '', showType: false, typelist: [], status: '' @@ -80,40 +78,29 @@ export default { }, computed: { ...mapState(['user']), + checkType: v => v.user.girdCheckType, + isAdmin: v => v.user.girdCheckType > 0 }, onShow() { document.title = '监测对象' this.areaId = this.user.areaId this.areaName = this.user.areaName this.$dict.load('fpPrtpStatus').then(() => { - this.isGirdUser() + this.isAdmin && this.getList() this.typelist = this.$dict.getDict('fpPrtpStatus').filter((e) => e.dictValue != 5) - this.typelist.unshift({ dictName: '全部类型', dictValue: ''}) + this.typelist.unshift({dictName: '全部类型', dictValue: ''}) }) - + uni.$on('reload', () => { this.getListInit() }) }, methods: { - isGirdUser() { - this.isAdmin = false - this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { - if (res?.data) { - if (res.data.checkType != '0') { - this.isAdmin = true - this.checkType = res.data.checkType - this.getList() - } - } - }) - }, - confirmTypeSelect(val) { this.status = val?.[0].value - this.$nextTick(()=>{ + this.$nextTick(() => { this.current = 1, - this.list = [] + this.list = [] this.getList() }) }, @@ -148,16 +135,16 @@ export default { change(index) { this.currentTabs = index - if(this.currentTabs == 1) { + if (this.currentTabs == 1) { this.typelist = this.$dict.getDict('fpPrtpStatus') - this.typelist.unshift({ dictName: '全部类型', dictValue: ''}) + this.typelist.unshift({dictName: '全部类型', dictValue: ''}) } else if (this.currentTabs == 0) { this.typelist = this.$dict.getDict('fpPrtpStatus').filter((e) => e.dictValue != 5) - this.typelist.unshift({ dictName: '全部类型', dictValue: ''}) + this.typelist.unshift({dictName: '全部类型', dictValue: ''}) } this.status = '' this.getListInit() - + }, toDetail(item) { @@ -233,6 +220,7 @@ export default { border-top: 2px solid #f5f5f5; padding: 20px 32px; background: #fff; + .selectBox { margin-right: 30px; } diff --git a/src/apps/AppMonitoringObject/Detail.vue b/src/apps/AppMonitoringObject/Detail.vue index dda20fae..5a7e63c4 100644 --- a/src/apps/AppMonitoringObject/Detail.vue +++ b/src/apps/AppMonitoringObject/Detail.vue @@ -1,5 +1,5 @@ diff --git a/src/apps/AppPovertyHome/AppPovertyHome.vue b/src/apps/AppPovertyHome/AppPovertyHome.vue index 368ff2fe..803dede3 100644 --- a/src/apps/AppPovertyHome/AppPovertyHome.vue +++ b/src/apps/AppPovertyHome/AppPovertyHome.vue @@ -1,11 +1,11 @@