From 729fa0a147a65edeee8367dc337082d3033450c0 Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 28 Sep 2022 17:50:52 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCheckpointRegistration.vue | 66 +++++++++++-------- .../AppCheckpointRegistration/UserInfo.vue | 1 + 2 files changed, 39 insertions(+), 28 deletions(-) diff --git a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue index 451b3290..60737a3a 100644 --- a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue +++ b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue @@ -39,30 +39,22 @@ -
- -
-
-

{{item.name}}{{ $dict.getLabel('EP_riskLevel', item.riskLevel) }}

-

{{item.idNumber}}

-

{{item.startAreaName}}

-

{{item.arriveAreaName}}

-

{{item.arriveTime}}

- -
-
-
处置人:{{item.handleUserName}}
-
+
+
+
+

{{item.name}} +
{{ $dict.getLabel('EP_riskLevel', item.riskLevel) }}
删除
+

+

{{item.idNumber}}

+

{{item.startAreaName}}

+

{{item.arriveAreaName}}

+

{{item.arriveTime}}

+
- +
+
处置人:{{item.handleUserName}}
+
+
@@ -81,6 +73,7 @@ export default { areaName: '', tabIndex: 0, current: 1, + pages: 2, list: [], totalInfo: {}, keyword: '', @@ -133,10 +126,21 @@ export default { this.$http.post(`/app/appepidemicpreventionregisterinfo/list?infoType=0¤t=${this.current}&size=10&listType=${this.tabIndex}&gatewayId=${this.gatewayId}&name=${this.keyword}&arriveAreaId=${this.areaId}`) .then((res) => { if (res.code == 0) { - res.data.records.map((item) => { - item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") - }) - this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records + + this.list = this.current > 1 ? [...this.list, ...res.data.records.map(v => { + return { + ...v, + show: false, + idNumber: v.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") + } + })] : res.data.records.map(v => { + return { + ...v, + show: false, + idNumber: v.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") + } + }) + this.pages = res.data.pages } }) }, @@ -312,6 +316,7 @@ export default { .item{ background-color: #fff; border-radius: 16px; + margin-bottom: 24px; .top { padding: 32px 32px 24px; position: relative; @@ -344,6 +349,11 @@ export default { .status2 { color: #f46; } + .del-btn { + display: inline-block; + color: #f46; + margin-left: 24px; + } } p{ width: calc(100% - 200px); @@ -402,7 +412,7 @@ export default { } } .gateway-name { - width: calc(100% - 48px); + max-width: calc(100% - 48px); word-break: break-all; overflow: hidden; text-overflow: ellipsis; diff --git a/src/project/pingchang/AppCheckpointRegistration/UserInfo.vue b/src/project/pingchang/AppCheckpointRegistration/UserInfo.vue index 85fce126..3dd76687 100644 --- a/src/project/pingchang/AppCheckpointRegistration/UserInfo.vue +++ b/src/project/pingchang/AppCheckpointRegistration/UserInfo.vue @@ -223,6 +223,7 @@ export default { uni.$on('updateDetail', () => { this.getDetail() }) + uni.$emit('updateList') }, methods: { getDetail() { From 4f9e539f54be1126ce598b86db4f750ee7455c61 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 29 Sep 2022 08:47:28 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=8D=A1=E5=8F=A3=E7=99=BB=E8=AE=B0=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCheckpointRegistration.vue | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue index 60737a3a..e7065465 100644 --- a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue +++ b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue @@ -43,9 +43,12 @@

{{item.name}} -
{{ $dict.getLabel('EP_riskLevel', item.riskLevel) }}
删除
+
{{ $dict.getLabel('EP_riskLevel', item.riskLevel) }}

-

{{item.idNumber}}

+

+ {{item.idNumber}} + +

{{item.startAreaName}}

{{item.arriveAreaName}}

{{item.arriveTime}}

@@ -349,11 +352,6 @@ export default { .status2 { color: #f46; } - .del-btn { - display: inline-block; - color: #f46; - margin-left: 24px; - } } p{ width: calc(100% - 200px); @@ -369,6 +367,15 @@ export default { vertical-align: top; } } + .idnumber-flex { + width: 100%; + display: flex; + justify-content: space-between; + .del-btn { + display: inline-block; + padding: 8px; + } + } .start-name{ display: inline-block; width: calc(100% - 50px); From db191b7c097160ca29d06a4197bc297ffae73009 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 29 Sep 2022 08:59:21 +0800 Subject: [PATCH 3/6] css --- .../pingchang/AppCommunityManagement/Statistics.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/project/pingchang/AppCommunityManagement/Statistics.vue b/src/project/pingchang/AppCommunityManagement/Statistics.vue index 5075a337..99d1cbbf 100644 --- a/src/project/pingchang/AppCommunityManagement/Statistics.vue +++ b/src/project/pingchang/AppCommunityManagement/Statistics.vue @@ -4,13 +4,13 @@