From e36d7e3a8f95e297ae4bf0dc4866fa7ac48f1643 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 31 Mar 2022 14:08:54 +0800 Subject: [PATCH 1/8] dd --- .../modules/base/epidemic/natFocus/natFocusList.vue | 4 ++-- .../modules/base/epidemic/natFocus/nfNoticeList.vue | 7 ++++--- .../modules/base/epidemic/natFocus/nfSendNotice.vue | 10 +++++----- src/views/modules/base/epidemic/travel.vue | 11 +++++++++-- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/views/modules/base/epidemic/natFocus/natFocusList.vue b/src/views/modules/base/epidemic/natFocus/natFocusList.vue index 16a5910e..10892a79 100644 --- a/src/views/modules/base/epidemic/natFocus/natFocusList.vue +++ b/src/views/modules/base/epidemic/natFocus/natFocusList.vue @@ -497,7 +497,7 @@ export default { } this.sendNoticeFormShow = true this.$nextTick(() => { - this.$refs.ref_sendnotice.initForm(this.selectionAll) + this.$refs.ref_sendnotice.initForm(this.selectionAll, '2') }) }, @@ -505,7 +505,7 @@ export default { handleNoticeList (row) { this.noticeListFormShow = true this.$nextTick(() => { - this.$refs.ref_noticelist.initTable(row.idCard) + this.$refs.ref_noticelist.initTable(row.idCard, '2') }) }, diff --git a/src/views/modules/base/epidemic/natFocus/nfNoticeList.vue b/src/views/modules/base/epidemic/natFocus/nfNoticeList.vue index 7b7fb33c..ad0a06c9 100644 --- a/src/views/modules/base/epidemic/natFocus/nfNoticeList.vue +++ b/src/views/modules/base/epidemic/natFocus/nfNoticeList.vue @@ -70,7 +70,7 @@ export default { tableData: [], pageSize: 20, pageNo: 1, - + origin: '' } }, components: {}, @@ -80,8 +80,9 @@ export default { methods: { - async initTable (idCard) { + async initTable (idCard, origin) { this.idCard = idCard + this.origin = origin await this.loadTable() }, @@ -95,7 +96,7 @@ export default { idCard: this.idCard, pageNo: this.pageNo, pageSize: this.pageSize, - origin: '1' + origin: this.origin } const { data, code, msg } = await requestPost(url, params) diff --git a/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue b/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue index 9274d928..370df9ac 100644 --- a/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue +++ b/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue @@ -73,7 +73,7 @@ export default { btnDisable: false, formData: { - origin: '1', + origin: '', isSelChannel: false, channel: [], content: '', @@ -92,10 +92,11 @@ export default { methods: { - async initForm (selectionAll) { + async initForm (selectionAll, origin) { this.$refs['ref_form1'].resetFields(); this.formData.userList = selectionAll + this.formData.origin = origin }, @@ -119,7 +120,7 @@ export default { } console.log(this.formData) - return false + // return false this.btnDisable = true setTimeout(() => { @@ -128,8 +129,7 @@ export default { let url = '' - url = '/epmetuser/icNotice/batchnotice' - // url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNotice/batchnotice" + url = '/epmetuser/icNotice/sendNotice' const { data, code, msg } = await requestPost(url, this.formData) diff --git a/src/views/modules/base/epidemic/travel.vue b/src/views/modules/base/epidemic/travel.vue index d816136f..695a37fe 100644 --- a/src/views/modules/base/epidemic/travel.vue +++ b/src/views/modules/base/epidemic/travel.vue @@ -445,7 +445,7 @@ export default { handleNoticeList (row) { this.noticeListFormShow = true this.$nextTick(() => { - this.$refs.ref_noticelist.initTable(row.idCard) + this.$refs.ref_noticelist.initTable(row.idCard, '0') }) }, @@ -465,7 +465,14 @@ export default { } this.sendNoticeFormShow = true this.$nextTick(() => { - this.$refs.ref_sendnotice.initForm(this.selectionAll) + const arr = this.selectionAll.map(item => { + return { + userId: item.userId, + idCard: item.idCard, + mobile: item.mobile + } + }) + this.$refs.ref_sendnotice.initForm(arr, '0') }) }, From 8ac8ecae95072845fcfd53fd0cd125d8c36fbb5c Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 31 Mar 2022 14:36:46 +0800 Subject: [PATCH 2/8] dd --- .../base/epidemic/natFocus/nfSendNotice.vue | 4 +- src/views/modules/base/epidemic/travel.vue | 53 +++++++++++++++++-- 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue b/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue index a82080b3..0626a739 100644 --- a/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue +++ b/src/views/modules/base/epidemic/natFocus/nfSendNotice.vue @@ -8,7 +8,7 @@ :rules="dataRule" class="form"> - --> - - - - + --> + { + + // }, 1000) + }, handleSearch () { this.loadTable() }, @@ -391,7 +403,31 @@ export default { console.log('val----', val) this.selectionAll = val }, + async getArea (node, resolve) { + + const url = "/commonservice/areacode/nextarea" + let params = { + parentLevel: node.data ? node.data.level : '', + parentAreaCode: node.data ? node.data.code : '' + } + + const { data, code, msg } = await requestPost(url, params) + if (code === 0) { + const nodes = data.map(item => ({ + value: item.areaCode, // + label: item.areaName, + code: item.areaCode, + level: item.level, + leaf: node.level >= 4 // 5层级 + })) + resolve(nodes) + + } else { + this.$message.error(msg) + } + + }, async loadTable () { this.tableLoading = true @@ -421,7 +457,13 @@ export default { } this.tableLoading = false }, - + handleAreaChange(val) { + + if (val.length > 0) { + const len = val.length - 1 + this.formData.sourceAddressCode = val[len] + } else this.formData.sourceAddressCode = '' + }, handleScheduledTimeChange (time) { if (time) { this.formData.startDate = time[0] @@ -599,6 +641,7 @@ export default { this.$refs.ref_searchform.resetFields() this.formData.startDate = '' this.formData.endDate = '' + this.searchAreacode = [] this.timeRange = [] this.pageSize = 20 this.pageNo = 1 From 1022172a251e8fb0f16a10d37ec9bbcb3781a478 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 31 Mar 2022 14:48:15 +0800 Subject: [PATCH 3/8] dd --- src/views/modules/base/epidemic/travel.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/modules/base/epidemic/travel.vue b/src/views/modules/base/epidemic/travel.vue index c6991a9e..5d83fa3f 100644 --- a/src/views/modules/base/epidemic/travel.vue +++ b/src/views/modules/base/epidemic/travel.vue @@ -23,7 +23,7 @@ size="small" class="list_item_width_1" clearable - placeholder="请输入姓名"> + placeholder="请输入手机号"> @@ -128,18 +128,18 @@ style="width: 100%" @selection-change="handleSelectionChange"> + width="55" fixed="left"> + width="50" fixed="left"> + width="100" fixed="left"> Date: Thu, 31 Mar 2022 15:04:09 +0800 Subject: [PATCH 4/8] dd --- src/views/modules/base/epidemic/travel.vue | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/views/modules/base/epidemic/travel.vue b/src/views/modules/base/epidemic/travel.vue index 5d83fa3f..1283bbb2 100644 --- a/src/views/modules/base/epidemic/travel.vue +++ b/src/views/modules/base/epidemic/travel.vue @@ -113,6 +113,10 @@ class="diy-button--more" size="small" @click="handleSendNotice">发送通知 + 加入关注 { + this.saveFocus(row) + }) + .catch(err => { + console.log('err-----', err) + + }); + }, + async handleDeletes (row) { if (this.selectionAll.length === 0) { this.$message.info('请选择要取消关注的名单') @@ -538,6 +561,37 @@ export default { }); }, + async saveFocus (row) { + const url = "/epmetuser/icEpidemicSpecialAttention/vaccination-add" + // let idCards = [] + + // this.selectionAll.forEach(element => { + // idCards.push(element.idCard) + // }); + let params = { + list: this.selectionAll.map(item => { + return { + name: item.name, + mobile: item.mobile, + idCard: item.idCard, + attentionType: 2 + } + }) + } + + const { data, code, msg } = await requestPost(url, params) + + if (code === 0) { + this.$message({ + type: "success", + message: "操作成功" + }); + + this.loadTable() + } else { + this.$message.error(msg) + } + }, async deleteFocus (row) { const url = "/epmetuser/icEpidemicSpecialAttention/cancel-attention" // const url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/del" From 8697f9ab405a9dd31d74539fa51e779356e831df Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 31 Mar 2022 15:35:15 +0800 Subject: [PATCH 5/8] dd --- src/views/modules/base/epidemic/natFocus/nfNoticeList.vue | 4 ++-- src/views/modules/base/epidemic/natFocus/nfVisiteList.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/modules/base/epidemic/natFocus/nfNoticeList.vue b/src/views/modules/base/epidemic/natFocus/nfNoticeList.vue index ad0a06c9..05713c97 100644 --- a/src/views/modules/base/epidemic/natFocus/nfNoticeList.vue +++ b/src/views/modules/base/epidemic/natFocus/nfNoticeList.vue @@ -90,8 +90,8 @@ export default { //加载form async loadTable () { this.tableLoading = true - // const url = "/epmetuser/icNotice/page" - const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNotice/page" + const url = "/epmetuser/icNotice/page" + // const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNotice/page" let params = { idCard: this.idCard, pageNo: this.pageNo, diff --git a/src/views/modules/base/epidemic/natFocus/nfVisiteList.vue b/src/views/modules/base/epidemic/natFocus/nfVisiteList.vue index 70fcf372..4de2493f 100644 --- a/src/views/modules/base/epidemic/natFocus/nfVisiteList.vue +++ b/src/views/modules/base/epidemic/natFocus/nfVisiteList.vue @@ -133,7 +133,7 @@ export default { idCard: '', name: '', mobile: '', - origin: '2' + origin: '' }, dialogVisible: false, @@ -169,7 +169,7 @@ export default { idCard: this.formData.idCard, pageNo: this.pageNo, pageSize: this.pageSize, - origin: '2' + origin: this.formData.origin } const { data, code, msg } = await requestPost(url, params) From 6e5b9fe542b85194785544022b40a24e4ea632fe Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 31 Mar 2022 15:49:30 +0800 Subject: [PATCH 6/8] dd --- src/views/modules/base/epidemic/natFocus/nfVisiteList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/modules/base/epidemic/natFocus/nfVisiteList.vue b/src/views/modules/base/epidemic/natFocus/nfVisiteList.vue index 4de2493f..98c7d597 100644 --- a/src/views/modules/base/epidemic/natFocus/nfVisiteList.vue +++ b/src/views/modules/base/epidemic/natFocus/nfVisiteList.vue @@ -55,7 +55,7 @@ title="新增" append-to-body @closed="handleCancle"> -
+
Date: Thu, 31 Mar 2022 16:28:00 +0800 Subject: [PATCH 7/8] dd --- src/views/modules/base/epidemic/travelForm.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/views/modules/base/epidemic/travelForm.vue b/src/views/modules/base/epidemic/travelForm.vue index 631a8c49..fa874c81 100644 --- a/src/views/modules/base/epidemic/travelForm.vue +++ b/src/views/modules/base/epidemic/travelForm.vue @@ -155,7 +155,7 @@ style="display: block"> Date: Thu, 31 Mar 2022 17:38:04 +0800 Subject: [PATCH 8/8] 11 --- src/App.vue | 7 + .../scss/modules/management/epidemic.scss | 5 - .../base/epidemic/natFocus/natFocusAdd.vue | 56 +- .../base/epidemic/natFocus/natFocusList.vue | 4 +- .../modules/base/epidemic/natInfo/natList.vue | 145 ++-- .../base/epidemic/veroFocus/veroFocusAdd.vue | 3 +- .../base/epidemic/veroFocus/veroFocusList.vue | 4 +- .../ninePlaces/inspect/inspect.vue | 40 +- src/views/modules/shequ/index.vue | 663 ++++++++---------- 9 files changed, 461 insertions(+), 466 deletions(-) diff --git a/src/App.vue b/src/App.vue index f743cc40..848664f8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -187,4 +187,11 @@ export default { padding: 6px !important; background-color: rgb(247, 250, 253); } + +//列表操作列,更多 +.table-more-btn { + display: flex; + flex-direction: column; + justify-content: center; +} diff --git a/src/assets/scss/modules/management/epidemic.scss b/src/assets/scss/modules/management/epidemic.scss index c79f9efe..46189c05 100644 --- a/src/assets/scss/modules/management/epidemic.scss +++ b/src/assets/scss/modules/management/epidemic.scss @@ -75,11 +75,6 @@ } } -.more-btn { - display: flex; - flex-direction: column; - justify-content: center; -} .div-mult-form { margin-top: 20px; diff --git a/src/views/modules/base/epidemic/natFocus/natFocusAdd.vue b/src/views/modules/base/epidemic/natFocus/natFocusAdd.vue index 390d0cb5..3eecb4fe 100644 --- a/src/views/modules/base/epidemic/natFocus/natFocusAdd.vue +++ b/src/views/modules/base/epidemic/natFocus/natFocusAdd.vue @@ -127,14 +127,29 @@ - + + + + + + label="核酸检测次数小于"> - -
+
通知记录
-
+
- - - - + + + + + - - - + + + - - - -
+ + + + + - - - + + + + + + + + @@ -160,6 +174,14 @@ label="检测结果" width="100"> + + 查看 - 修改 - - 删除 - - 同步 - 取消同步 - + @click="handleDelete(scope.row,'attention')">取消同步 + @@ -277,6 +281,16 @@ export default { label: '全部检测记录' }, ], + isResiUserList: [ + { + value: '0', + label: '否' + }, + { + value: '1', + label: '是' + }, + ], timeRange: [], formData: { @@ -286,6 +300,7 @@ export default { idCard: '',//身份证号码 startTime: '',//检测开始时间yyyy-MM-dd HH:mm endTime: '',//检测结束时间yyyy-MM-dd HH:mm + isResiUser: ''//0:否 1:是 }, @@ -337,6 +352,8 @@ export default { this.tableData = data.list this.tableData.forEach(item => { + + item.isResiUserShow = item.isResiUser === '0' ? '否' : '是' if (item.natResult === '1') { item.natResultShow = '阳性' } else if (item.natResult === '0') { diff --git a/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue b/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue index 136f7061..06678cb9 100644 --- a/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue +++ b/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue @@ -303,6 +303,7 @@ export default { formDataSearch: { gridId: '', vaccineCount: undefined, + attentionType: 1 }, formData1: { @@ -361,7 +362,7 @@ export default { async loadTable () { this.tableLoading = true - const url = "/epmetuser/epidemicPrevention/page" + const url = "/epmetuser/epidemicPrevention/user-list" // const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/epidemicPrevention/page" let params = { pageSize: this.pageSize, diff --git a/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue b/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue index 5fd827d0..f5684a5a 100644 --- a/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue +++ b/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue @@ -184,14 +184,14 @@ style="margin-left:10px" width="20" trigger="click"> -
+
通知记录
-
+
复查记录 - 删除 + :disabled="true" + @click="handleEdit(scope.row)">修改 + + +
+ 复查记录 +
+ +
+ 删除 +
+ + 更多 +
@@ -428,6 +450,14 @@ export default { }) }, + handleEdit (row) { + this.formTitle = '编辑' + this.formShow = true + this.$nextTick(() => { + this.$refs.ref_form.initForm('edit', row) + }) + }, + handleReview (row) { this.reviewShow = true this.$nextTick(() => { diff --git a/src/views/modules/shequ/index.vue b/src/views/modules/shequ/index.vue index 98947245..54e8a575 100644 --- a/src/views/modules/shequ/index.vue +++ b/src/views/modules/shequ/index.vue @@ -10,12 +10,10 @@