diff --git a/project/sass/apps/AppGridMember copy/AppGridMember.vue b/project/sass/apps/AppGridBlock/AppGridBlock.vue similarity index 77% rename from project/sass/apps/AppGridMember copy/AppGridMember.vue rename to project/sass/apps/AppGridBlock/AppGridBlock.vue index fa9f5d03..be98134d 100644 --- a/project/sass/apps/AppGridMember copy/AppGridMember.vue +++ b/project/sass/apps/AppGridBlock/AppGridBlock.vue @@ -1,6 +1,6 @@ @@ -160,114 +90,33 @@ total: 0, info: {}, id: '', - isShowAdd: false, - recordTotal: 0, - recordSerch: { - current: 1, - size: 10 - }, search: { current: 1, size: 10 }, - form: { - content: '' - }, - recordConfigs: [ - {prop: 'content', label: '异常记录', align: 'center' }, - {prop: 'createTime', label: '创建时间', align: 'center'}, - {prop: 'createUserName', label: '记录人', align: 'center' } - ], reportInfo: {}, isShow: false, currIndex: 0, tableData: [], - recordList: [], colConfigs: [ {prop: 'createTime', label: '上报日期', align: 'center', dateFormart: 'YYYY-MM-DD'}, {prop: 'status', label: '健康状态', align: 'center', formart: v => v === '0' ? '异常' : '正常' } - ], - tabList: ['基本信息', '每日上报', '异常处理'] + ] } }, created () { + console.log(this.params) if (this.params && this.params.id) { this.id = this.params.id + console.log(this.id) this.dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => { - this.getInfo(this.params.id) this.getList() - this.getRecordList() }) } }, methods: { - getInfo (id) { - this.instance.post(`/app/appepidemicreportmember/queryDetailById?memberId=${id}`).then(res => { - if (res.code === 0) { - this.info = res.data - this.currIndex = 0 - } - }) - }, - - getRecordList () { - this.instance.post(`/app/appepidemicunusuallog/list`, null, { - params: { - ...this.search, - recordId: this.params.id - } - }).then(res => { - if (res.code == 0) { - this.recordList = res.data.records - this.recordTotal = res.data.total - } - }) - }, - - 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.isShowAdd = false - this.getRecordList(this.params.id) - this.$message.success('添加成功!') - } - }) - } - }) - }, - - release () { - this.$confirm('确定解除异常?').then(() => { - this.instance.post(`/app/appepidemicreportmember/release`, { - 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.getRecordList(this.params.id) - } - }) - }) - }, - toDetail (id) { this.instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { diff --git a/project/sass/apps/AppHealthReport/components/List.vue b/project/sass/apps/AppHealthReport/components/List.vue index 17831870..3e137592 100644 --- a/project/sass/apps/AppHealthReport/components/List.vue +++ b/project/sass/apps/AppHealthReport/components/List.vue @@ -57,7 +57,7 @@ name: '' }, colConfigs: [ - { prop: 'name', label: '员工姓名' }, + { prop: 'name', label: '员工姓名', openType: 'userName' }, { prop: 'girdNames', align: 'center', label: '网格' }, { prop: 'clockCount', align: 'center', label: '打卡次数' }, { prop: 'lastReportTime', align: 'center', label: '最近打卡时间' },