From e82b8bef20c0ae36cf91c12da62a3323cf66336b Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 20 May 2022 09:06:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=BE=E6=B1=87=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/saas/AppCountryAlbum/AddReport.vue | 61 +++++++++++++++++--- src/saas/AppCountryAlbum/components/Home.vue | 6 +- 2 files changed, 56 insertions(+), 11 deletions(-) diff --git a/src/saas/AppCountryAlbum/AddReport.vue b/src/saas/AppCountryAlbum/AddReport.vue index b6304c58..da8ea457 100644 --- a/src/saas/AppCountryAlbum/AddReport.vue +++ b/src/saas/AppCountryAlbum/AddReport.vue @@ -2,11 +2,14 @@
- - - - +
+
完成
@@ -23,7 +26,9 @@ data () { return { - component: 'WorkReport' + component: 'WorkReport', + configList: [], + currIndex: 0 } }, @@ -35,21 +40,61 @@ }, onLoad () { - + this.getConfig() }, methods: { + getConfig () { + this.$http.post(`/api/appalbumtemplate/list?size=100&templateType=1&status=1`).then(res => { + if (res.code === 0) { + this.configList = res.data.records + } + }) + }, + changeComponent (e, index) { + this.currIndex = index + this.component = this.mapComponent(e.watermarkType) + }, + + mapComponent (type) { + return { + '9': 'WorkReport', + '10': 'Daily', + '11': 'InspectLog', + '12': 'MeetingMminutes' + }[type] + } } }