From af65ba44ab652a7d405bdc19e16b0aaa3d28bb13 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 18 Mar 2022 13:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../3.0.0/AppContentInfo/AppContentInfo.vue | 65 ++++-- .../3.0.0/AppContentInfo/components/Add.vue | 5 +- .../3.0.0/AppContentInfo/components/Audit.vue | 188 ++++++++++++++++++ .../AppContentInfo/components/Detail.vue | 41 +++- .../3.0.0/AppContentInfo/components/List.vue | 27 ++- 5 files changed, 294 insertions(+), 32 deletions(-) create mode 100644 packages/3.0.0/AppContentInfo/components/Audit.vue diff --git a/packages/3.0.0/AppContentInfo/AppContentInfo.vue b/packages/3.0.0/AppContentInfo/AppContentInfo.vue index a5d16b3e..503101f9 100644 --- a/packages/3.0.0/AppContentInfo/AppContentInfo.vue +++ b/packages/3.0.0/AppContentInfo/AppContentInfo.vue @@ -1,15 +1,26 @@ + + diff --git a/packages/3.0.0/AppContentInfo/components/Detail.vue b/packages/3.0.0/AppContentInfo/components/Detail.vue index 7f32cd7b..bea4c46c 100644 --- a/packages/3.0.0/AppContentInfo/components/Detail.vue +++ b/packages/3.0.0/AppContentInfo/components/Detail.vue @@ -7,6 +7,35 @@ @@ -40,19 +69,19 @@ methods: { getInfo (id) { - this.instance.post(`/app/appeveryvillagecode/queryDetailById?id=${id}`).then(res => { + this.instance.post(`/app/appcontentinfo/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { - this.form = res.data - this.form.codeUrl = [{ - url: res.data.codeUrl - }] + this.info = res.data + this.info.pictureUrl = res.data.pictureUrl ? [{ + url: res.data.pictureUrl + }] : [] } }) }, cancel (isRefresh) { this.$emit('change', { - type: 'list', + type: 'List', isRefresh: !!isRefresh }) } diff --git a/packages/3.0.0/AppContentInfo/components/List.vue b/packages/3.0.0/AppContentInfo/components/List.vue index 64ff159f..ffce5caf 100644 --- a/packages/3.0.0/AppContentInfo/components/List.vue +++ b/packages/3.0.0/AppContentInfo/components/List.vue @@ -1,8 +1,5 @@