Browse Source

情报板模板接口

wangqin
lau572 11 months ago
parent
commit
7a0aa7152d
  1. 11
      ruoyi-ui/src/views/index.vue

11
ruoyi-ui/src/views/index.vue

@ -15,7 +15,7 @@
</div> </div>
<div class="dialog_info_left_show"> <div class="dialog_info_left_show">
<div v-if="dialogInfoList.length > 0" class="dialog_info_left_show_box" style="height: 100%;"> <div v-if="dialogInfoList.length > 0" class="dialog_info_left_show_box" style="height: 100%;">
<div class="dialog_info_left_show_box_item" v-for="i in dialogInfoList" :key="i.id"> <div class="dialog_info_left_show_box_item" v-for="(item,i) in dialogInfoList" :key="i.id">
<div class="dialog_info_left_show_l"> <div class="dialog_info_left_show_l">
<div class="dialog_info_left_show_l_xsq" :style="{'width':processString(i.screenSize,'w') / getScrollSz(processString(i.screenSize,'w'))+'px','height':processString(i.screenSize,'h') / getScrollSz(processString(i.screenSize,'w'))+'px','justify-content':getTextAlign(i.tcontents[0].formatStyle)}"> <div class="dialog_info_left_show_l_xsq" :style="{'width':processString(i.screenSize,'w') / getScrollSz(processString(i.screenSize,'w'))+'px','height':processString(i.screenSize,'h') / getScrollSz(processString(i.screenSize,'w'))+'px','justify-content':getTextAlign(i.tcontents[0].formatStyle)}">
<div class="dialog_info_left_show_l_xsq_txt" :style="{'font-size':i.tcontents[0].fontSize / getScrollSz(processString(i.screenSize,'w'))+'px','color':'#'+i.tcontents[0].fontColor,'font-family':i.tcontents[0].fontType,}" v-html="i.tcontents[0].content.replace(/\n|\r\n/g, '<br>').replace( <div class="dialog_info_left_show_l_xsq_txt" :style="{'font-size':i.tcontents[0].fontSize / getScrollSz(processString(i.screenSize,'w'))+'px','color':'#'+i.tcontents[0].fontColor,'font-family':i.tcontents[0].fontType,}" v-html="i.tcontents[0].content.replace(/\n|\r\n/g, '<br>').replace(
@ -659,10 +659,11 @@ export default {
this.$forceUpdate() this.$forceUpdate()
}, },
delMoFn(item) { delMoFn(index) {
console.log(item) console.log(index)
// deleteTemplate(item.tcontents[0].templateId) // deleteTemplate(item.tcontents[0].templateId)
this.removeItemById(this.dialogInfoList, item.id) this.dialogInfoList.splice(index,1)
// this.removeItemById(this.dialogInfoList, item.id)
}, },
putLeftFn(item) { putLeftFn(item) {
console.log('点击事件', item) console.log('点击事件', item)
@ -1517,4 +1518,4 @@ export default {
border: none; border: none;
color: #fff; color: #fff;
} }
</style> </style>

Loading…
Cancel
Save