Browse Source

增加组件显示

wangqin
Joe 10 months ago
parent
commit
d04b3e61f5
  1. 9
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/index.vue

9
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/index.vue

@ -1,4 +1,5 @@
<template> <template>
<Teleport>
<div class="mask"> <div class="mask">
<transition> <transition>
<div v-if="visible" class="dialog_info"> <div v-if="visible" class="dialog_info">
@ -159,6 +160,7 @@
<addBoard ref="addinfo" @addInfo="addInfo" /> <addBoard ref="addinfo" @addInfo="addInfo" />
<editBoard v-if="showEmit" :boardEmitItem="boardEmitItem" @receiveForm="receiveForm" @dialogClose="dialogClose" /> <editBoard v-if="showEmit" :boardEmitItem="boardEmitItem" @receiveForm="receiveForm" @dialogClose="dialogClose" />
</div> </div>
</Teleport>
</template> </template>
<script> <script>
@ -174,6 +176,7 @@ import BoardInfoEditor from '@screen/components/infoBoard/BoardInfoEditor'
import vuescroll from 'vuescroll' import vuescroll from 'vuescroll'
import scrollOptions from '@/common/scrollbar.js' import scrollOptions from '@/common/scrollbar.js'
import Teleport from '@screen/components/Teleport.vue'
import { getTemplateList } from '@/api/board/template' import { getTemplateList } from '@/api/board/template'
@ -307,7 +310,7 @@ export default {
immediate: false immediate: false
} }
}, },
components: { addBoard, editBoard, BoardPreview, BoardTplPreview, BoardInfoEditor, vuescroll }, components: { addBoard, editBoard, BoardPreview, BoardTplPreview, BoardInfoEditor, vuescroll, Teleport },
created() { created() {
this.____getTemplateCategory(); this.____getTemplateCategory();
this.____getAllTemplate(); this.____getAllTemplate();
@ -437,7 +440,7 @@ export default {
type: "device", type: "device",
tpl: { tpl: {
"textContent": "", "textContent": "",
origin : { origin: {
displayAreaWidth: +arr[0], displayAreaWidth: +arr[0],
displayAreaHeight: +arr[1] displayAreaHeight: +arr[1]
} }
@ -579,7 +582,7 @@ export default {
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
return ; return;
let loading = this.$loading({ let loading = this.$loading({
lock: true, lock: true,
text: 'Loading', text: 'Loading',

Loading…
Cancel
Save