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]
+ }
}
}