From b206dfa77fc5b6a1d9fe906ee5610012e22ad404 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 26 Sep 2022 15:18:54 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppBayonetRegistration.vue | 63 ++++ .../components/Detail.vue | 279 ++++++++++++++++++ .../components/List.vue | 273 +++++++++++++++++ .../AppCommunityManagement.vue | 65 ++++ .../components/Detail.vue | 137 +++++++++ .../components/List.vue | 194 ++++++++++++ 6 files changed, 1011 insertions(+) create mode 100644 project/pingchang/apps/AppBayonetRegistration/AppBayonetRegistration.vue create mode 100644 project/pingchang/apps/AppBayonetRegistration/components/Detail.vue create mode 100644 project/pingchang/apps/AppBayonetRegistration/components/List.vue create mode 100644 project/pingchang/apps/AppCommunityManagement/AppCommunityManagement.vue create mode 100644 project/pingchang/apps/AppCommunityManagement/components/Detail.vue create mode 100644 project/pingchang/apps/AppCommunityManagement/components/List.vue diff --git a/project/pingchang/apps/AppBayonetRegistration/AppBayonetRegistration.vue b/project/pingchang/apps/AppBayonetRegistration/AppBayonetRegistration.vue new file mode 100644 index 00000000..c7400681 --- /dev/null +++ b/project/pingchang/apps/AppBayonetRegistration/AppBayonetRegistration.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue b/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue new file mode 100644 index 00000000..974e0a64 --- /dev/null +++ b/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue @@ -0,0 +1,279 @@ + + + + + diff --git a/project/pingchang/apps/AppBayonetRegistration/components/List.vue b/project/pingchang/apps/AppBayonetRegistration/components/List.vue new file mode 100644 index 00000000..111d3f33 --- /dev/null +++ b/project/pingchang/apps/AppBayonetRegistration/components/List.vue @@ -0,0 +1,273 @@ + + + + + diff --git a/project/pingchang/apps/AppCommunityManagement/AppCommunityManagement.vue b/project/pingchang/apps/AppCommunityManagement/AppCommunityManagement.vue new file mode 100644 index 00000000..3fb207c9 --- /dev/null +++ b/project/pingchang/apps/AppCommunityManagement/AppCommunityManagement.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/project/pingchang/apps/AppCommunityManagement/components/Detail.vue b/project/pingchang/apps/AppCommunityManagement/components/Detail.vue new file mode 100644 index 00000000..2490fab0 --- /dev/null +++ b/project/pingchang/apps/AppCommunityManagement/components/Detail.vue @@ -0,0 +1,137 @@ + + + + + diff --git a/project/pingchang/apps/AppCommunityManagement/components/List.vue b/project/pingchang/apps/AppCommunityManagement/components/List.vue new file mode 100644 index 00000000..4b7e2164 --- /dev/null +++ b/project/pingchang/apps/AppCommunityManagement/components/List.vue @@ -0,0 +1,194 @@ + + + + + From 43527038aaa743acc6cccad902a2a24b004ebf11 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 26 Sep 2022 15:21:12 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pingchang/apps/AppCommunityManagement/components/Detail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/pingchang/apps/AppCommunityManagement/components/Detail.vue b/project/pingchang/apps/AppCommunityManagement/components/Detail.vue index 2490fab0..894cfae9 100644 --- a/project/pingchang/apps/AppCommunityManagement/components/Detail.vue +++ b/project/pingchang/apps/AppCommunityManagement/components/Detail.vue @@ -17,7 +17,7 @@ - + From b6314205001e52f83cf0c0ed61a6d1b1aed26cfb Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 26 Sep 2022 17:07:59 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=8D=A1=E5=8F=A3=E7=99=BB=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Announce/AppAnnounce/components/List.vue | 2 +- .../AppBayonetRegistration.vue | 8 +- .../components/Detail.vue | 205 +++++------------- .../components/List.vue | 112 +++++----- .../components/List.vue | 7 +- 5 files changed, 124 insertions(+), 210 deletions(-) diff --git a/packages/wxwork/Announce/AppAnnounce/components/List.vue b/packages/wxwork/Announce/AppAnnounce/components/List.vue index 69cecabc..ee019513 100644 --- a/packages/wxwork/Announce/AppAnnounce/components/List.vue +++ b/packages/wxwork/Announce/AppAnnounce/components/List.vue @@ -403,7 +403,7 @@ transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); &:hover { - border-color: #26f; + border-color: $placeholderColor; } i { diff --git a/project/pingchang/apps/AppBayonetRegistration/AppBayonetRegistration.vue b/project/pingchang/apps/AppBayonetRegistration/AppBayonetRegistration.vue index c7400681..ca2985b6 100644 --- a/project/pingchang/apps/AppBayonetRegistration/AppBayonetRegistration.vue +++ b/project/pingchang/apps/AppBayonetRegistration/AppBayonetRegistration.vue @@ -1,5 +1,5 @@ @@ -30,9 +30,10 @@ {{info.startAreaName}} - + + - + @@ -42,41 +43,27 @@ - +
- + @@ -87,49 +74,38 @@ - - - {{ info.unusual || '-' }} - - - + - - + - - - - - - -
@@ -147,111 +123,38 @@ data () { return { - total: 0, info: {}, - id: '', - search: { - current: 1, - size: 10 - }, - form: { - content: '' - }, isShow: false, currIndex: 0, tableData: [], colConfigs: [ - {prop: 'content', label: '异常记录', align: 'center' }, - {prop: 'createTime', label: '创建时间', align: 'center'}, - {prop: 'createUserName', label: '记录人', align: 'center' } + {prop: 'createUserName', label: '姓名', align: 'center' }, + {prop: 'phone', label: '手机号', align: 'center'} ], - tabList: ['基本信息', '异常处理'] + tabList: ['基本信息', '风险处置'] } }, created () { if (this.params && this.params.id) { this.id = this.params.id - this.$dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentPersonType', 'epidemicRecentTestResult']).then(() => { + this.$dict.load(['EP_riskLevel', 'EP_handleType', 'EP_registerPersonType', 'EP_highRiskIndustries', 'EP_travelType', 'yesOrNo', 'EP_handoverObject', + 'EP_handleType', 'EP_quarantineAddress', 'EP_homeStatus', 'EP_quarantineStrategy', 'EP_controlMethod', 'EP_handoverMethod']).then(() => { this.getInfo(this.params.id) }) - - this.getList() } }, methods: { getInfo (id) { - this.instance.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${id}`).then(res => { + this.instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { this.info = res.data this.info.checkPhoto = res.data.checkPhoto ? JSON.parse(res.data.checkPhoto) : [] - let healthName = '' - this.info.isHealth = false - res.data.health.split(',').forEach(v => { - if (v > 0) { - this.info.isHealth = true - } - healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v) - }) - this.info.healthName = healthName - this.info.health = this.info.health.split(',') - } - }) - }, - release () { - this.$confirm('确定解除异常?').then(() => { - this.instance.post(`/app/appepidemicbackhomerecord/release?recordId=${this.params.id}`, { - id: this.params.id - }).then(res => { - if (res.code == 0) { - this.$message.success('解除异常成功!') - this.currIndex = 0 - this.getInfo(this.params.id) - } - }) - }) - }, - - remove(id) { - this.$confirm('确定删除该数据?').then(() => { - this.instance.post(`/app/appepidemicunusuallog/delete?ids=${id}`).then(res => { - if (res.code == 0) { - this.$message.success('删除成功!') - this.getList() - } - }) - }) - }, - - onConfirm() { - this.$refs.form.validate(v => { - if (v) { - this.instance.post('/app/appepidemicunusuallog/addOrUpdate', { - ...this.form, - recordId: this.params.id - }).then(res => { - if (res?.code == 0) { - this.isShow = false - this.getList() - this.$message.success('添加成功!') - } - }) - } - }) - }, - - getList () { - this.instance.post(`/app/appepidemicunusuallog/list`, null, { - params: { - ...this.search, - recordId: this.params.id - } - }).then(res => { - if (res.code == 0) { - this.tableData = res.data.records - this.total = res.data.total + this.info.travelTypeNames = res.data.travelType.split(',').map(v => { + return this.dict.getLabel('EP_travelType', v) + }).join(',') } }) }, diff --git a/project/pingchang/apps/AppBayonetRegistration/components/List.vue b/project/pingchang/apps/AppBayonetRegistration/components/List.vue index 111d3f33..f3e22815 100644 --- a/project/pingchang/apps/AppBayonetRegistration/components/List.vue +++ b/project/pingchang/apps/AppBayonetRegistration/components/List.vue @@ -1,38 +1,51 @@