党建主题
This commit is contained in:
		| @@ -1,11 +1,6 @@ | ||||
| <template> | ||||
|   <section class="preview"> | ||||
|     <ai-dv-wrapper :views="[{label: '返回'}]" :theme="config.theme" @change="handleBack" v-if="screenId" :title="info.name"> | ||||
|       <ai-dv-background | ||||
|           :theme="config.theme" | ||||
|           v-if="config.length || config.theme === '1'" | ||||
|           :src="config.theme === '1' ? 'https://cdn.cunwuyun.cn/dvcp/dv/img/dj-bg.png' : config.backgroundImage[0].url"> | ||||
|       </ai-dv-background> | ||||
|     <ai-dv-wrapper :views="[{label: '返回'}]" :theme="config.theme" @change="handleBack" v-if="screenId" :title="info.name" :background="bgImg"> | ||||
|       <ai-dv-viewer :urlPrefix="urlPrefix" :instance="instance" :dict="dict" :id="screenId"/> | ||||
|     </ai-dv-wrapper> | ||||
|   </section> | ||||
| @@ -26,7 +21,8 @@ export default { | ||||
|     } | ||||
|   }, | ||||
|   computed: { | ||||
|     screenId: v => v.$route.query.id | ||||
|     screenId: v => v.$route.query.id, | ||||
|     bgImg: v => v.config.theme == 1 ? 'https://cdn.cunwuyun.cn/dvcp/dv/img/dj-bg.png' : (v.config.backgroundImage?.[0]?.url || "") | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
| @@ -38,7 +34,7 @@ export default { | ||||
|     ...mapActions(['closePage']), | ||||
|     getDvData() { | ||||
|       let {id} = this.$route.query | ||||
|       this.instance.post(`${this.urlPrefix}/appdiylargescreen/queryLargeScreenDetailById?id=${id}`).then(res => { | ||||
|       this.instance.post(`/app/appdiylargescreen/queryLargeScreenDetailById?id=${id}`).then(res => { | ||||
|         if (res?.data) { | ||||
|           this.info = res.data | ||||
|           this.config = JSON.parse(res.data.config).dashboard | ||||
|   | ||||
		Reference in New Issue
	
	Block a user