From 5e7ef3d27a7a0dffcc7b7fae23ac20d6316c6022 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 3 Apr 2023 16:28:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AiEchart/template/pie/pieChart1.js | 2 - .../AppIntegratingAudit.vue | 2 - .../AppIntegratingAudit/components/Add.vue | 168 ---------- .../AppIntegratingAudit/components/Detail.vue | 308 ++++-------------- .../AppIntegratingAudit/components/List.vue | 207 ++++++++++-- 5 files changed, 248 insertions(+), 439 deletions(-) delete mode 100644 project/fengdu/app/AppIntegratingAudit/components/Add.vue diff --git a/components/AiEchart/template/pie/pieChart1.js b/components/AiEchart/template/pie/pieChart1.js index 7bb5ec38..6b93efdb 100644 --- a/components/AiEchart/template/pie/pieChart1.js +++ b/components/AiEchart/template/pie/pieChart1.js @@ -20,9 +20,7 @@ export default { radius: ['60%', '70%'], minShowLabelAngle: 10, itemStyle: { - borderRadius: 4, borderColor: 'rgba(128, 128, 128, 0.1)', - borderWidth: 2 }, label: { show: false diff --git a/project/fengdu/app/AppIntegratingAudit/AppIntegratingAudit.vue b/project/fengdu/app/AppIntegratingAudit/AppIntegratingAudit.vue index 21bb3529..86218f6c 100644 --- a/project/fengdu/app/AppIntegratingAudit/AppIntegratingAudit.vue +++ b/project/fengdu/app/AppIntegratingAudit/AppIntegratingAudit.vue @@ -9,7 +9,6 @@ - - diff --git a/project/fengdu/app/AppIntegratingAudit/components/Detail.vue b/project/fengdu/app/AppIntegratingAudit/components/Detail.vue index dc485f13..ee56d387 100644 --- a/project/fengdu/app/AppIntegratingAudit/components/Detail.vue +++ b/project/fengdu/app/AppIntegratingAudit/components/Detail.vue @@ -1,71 +1,52 @@ @@ -82,36 +63,22 @@ data () { return { - commontList: [], info: {}, - } - }, - - computed: { - getAvatar(row){ - return row.avatar||row.photo||'https://cdn.cunwuyun.cn/dvcp/h5/defaultAvatar.png' + form: { + auditDesc: '', + auditStatus: '' + }, + isShow: false } }, created () { this.getInfo() - this.getList() }, methods: { - getList() { - this.instance.post(`/app/appneighborhoodassistance/commontList?id=${this.params.id}&size=100`).then(res => { - if (res.code == 0) { - res.data.records.map((item) => { - item.isShowReply = false - }) - this.commontList = res.data.records - } - }) - }, - getInfo () { - this.instance.post(`/app/appneighborhoodassistance/queryDetailById?id=${this.params.id}`).then(res => { + this.instance.post(`/app/appintegraluserapply/queryDetailById?id=${this.params.id}`).then(res => { if (res.code == 0) { if (res.data) { this.info = res.data @@ -120,175 +87,40 @@ }) }, + onClose () { + this.id = '' + this.form.auditDesc = '' + this.form.auditStatus = '' + }, + + onConfirm () { + this.$refs.form.validate((valid) => { + if (valid) { + this.instance.post(`/app/appintegraluserapply/auditById`, { + ...this.form, + id: this.params.id + }).then(res => { + if (res.code == 0) { + this.$message.success('审核成功!') + this.isShow = false + this.getInfo() + } + }) + } + }) + }, + cancel () { this.$emit('change', { type: 'List', isRefresh: true }) - }, - - delCommontOrReply(text, id) { - this.$confirm(`确定删除该${text}?`).then(() => { - this.instance.post(`/app/appneighborhoodassistance/delComment?id=${id}`).then(res => { - if (res.code == 0) { - this.$message.success('删除成功!') - this.getList() - } - }) - }) - }, + } } } diff --git a/project/fengdu/app/AppIntegratingAudit/components/List.vue b/project/fengdu/app/AppIntegratingAudit/components/List.vue index 0d3301dc..99c2cfcc 100644 --- a/project/fengdu/app/AppIntegratingAudit/components/List.vue +++ b/project/fengdu/app/AppIntegratingAudit/components/List.vue @@ -1,22 +1,60 @@