|
|
|
@ -44,7 +44,7 @@
|
|
|
|
|
label="操作"
|
|
|
|
|
width="260">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button @click="viewDetails(scope.row)" type="text" size="small" style="padding: 0 4px">全屏查看
|
|
|
|
|
<el-button @click="viewDetails(scope.row)" type="text" size="small" style="padding: 0 4px">预览
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button @click="querySceneInfo(scope.row)" type="text" size="small" style="padding: 0 4px">修改模版
|
|
|
|
|
</el-button>
|
|
|
|
@ -85,7 +85,8 @@
|
|
|
|
|
<div class="useModel" v-if="!sceneForm.achieveContent.center">
|
|
|
|
|
<i class="el-icon-plus"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layout" ref="layout" v-if="sceneForm.achieveContent.center">
|
|
|
|
|
<div class="layout" ref="layout" v-if="sceneForm.achieveContent.center"
|
|
|
|
|
:style="`background-image:url(${(sceneForm.achieveContent.pageCfg||{}).bg})`">
|
|
|
|
|
<component style="pointer-events: none" :is="sceneForm.achieveContent.center"
|
|
|
|
|
:tree="sceneForm.achieveContent.centerChildren"></component>
|
|
|
|
|
</div>
|
|
|
|
@ -105,7 +106,8 @@
|
|
|
|
|
width="700px">
|
|
|
|
|
|
|
|
|
|
<div class="modelListItem" v-for="i in modelList" @click="useModel(i)">
|
|
|
|
|
<div class="modelListItemContent">
|
|
|
|
|
<div class="modelListItemContent"
|
|
|
|
|
:style="`background-image:url(${(JSON.parse(i.templateContent).pageCfg||{}).bg})`">
|
|
|
|
|
<component style="pointer-events: none;" :is="JSON.parse(i.templateContent).center"
|
|
|
|
|
:tree="JSON.parse(i.templateContent).centerChildren"></component>
|
|
|
|
|
</div>
|
|
|
|
@ -169,6 +171,7 @@
|
|
|
|
|
<el-radio-group v-model="pageCfg.sizeType">
|
|
|
|
|
<el-radio :label="1">固定宽高</el-radio>
|
|
|
|
|
<el-radio :label="2">固定比例</el-radio>
|
|
|
|
|
<el-radio :label="3">撑满容器</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="页面大小" label-width="120px" v-if="pageCfg.sizeType">
|
|
|
|
@ -212,7 +215,8 @@
|
|
|
|
|
closable
|
|
|
|
|
:disable-transitions="false"
|
|
|
|
|
@close="colorsClose(tag)">
|
|
|
|
|
<el-color-picker show-alpha v-model="colors[k]" size="mini" @change="colorsChange($event,k)"></el-color-picker>
|
|
|
|
|
<el-color-picker show-alpha v-model="colors[k]" size="mini"
|
|
|
|
|
@change="colorsChange($event,k)"></el-color-picker>
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-color-picker show-alpha
|
|
|
|
|
class="input-new-tag"
|
|
|
|
@ -231,7 +235,8 @@
|
|
|
|
|
closable
|
|
|
|
|
:disable-transitions="false"
|
|
|
|
|
@close="colorsClose1(tag)">
|
|
|
|
|
<el-color-picker show-alpha v-model="colors1[k]" size="mini" @change="colorsChange1($event,k)"></el-color-picker>
|
|
|
|
|
<el-color-picker show-alpha v-model="colors1[k]" size="mini"
|
|
|
|
|
@change="colorsChange1($event,k)"></el-color-picker>
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-color-picker show-alpha
|
|
|
|
|
class="input-new-tag"
|
|
|
|
@ -453,6 +458,8 @@ export default {
|
|
|
|
|
...e,
|
|
|
|
|
sceneData: JSON.parse(e.achieveContent)
|
|
|
|
|
}
|
|
|
|
|
console.log('csssss', JSON.parse(e.achieveContent))
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.pageCfg = this.bindComponentsData.sceneData.pageCfg || {}
|
|
|
|
|
if (!this.pageCfg.styleData?.colors) {
|
|
|
|
|
this.$set(this.pageCfg.styleData, 'colors', [])
|
|
|
|
@ -463,7 +470,6 @@ export default {
|
|
|
|
|
if (!this.pageCfg.styleData?.region) {
|
|
|
|
|
this.$set(this.pageCfg.styleData, 'region', '')
|
|
|
|
|
}
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.colors = JSON.parse(JSON.stringify(this.pageCfg.styleData.colors || '[]'))
|
|
|
|
|
this.colors1 = JSON.parse(JSON.stringify(this.pageCfg.styleData.colors1 || '[]'))
|
|
|
|
|
|
|
|
|
@ -490,6 +496,12 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.pageCfg.sizeType === 3) {
|
|
|
|
|
this.pageData = {
|
|
|
|
|
width: null,
|
|
|
|
|
height: null,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
bindComponentsOk() {
|
|
|
|
@ -533,6 +545,12 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.pageCfg.sizeType === 3) {
|
|
|
|
|
this.pageData = {
|
|
|
|
|
width: null,
|
|
|
|
|
height: null,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.bindComponentsData.sceneData.pageCfg = this.pageCfg
|
|
|
|
|
this.pageCfgDialogVisible = false
|
|
|
|
|
},
|
|
|
|
@ -540,7 +558,7 @@ export default {
|
|
|
|
|
this.$set(this.pageCfg, 'bg', file.data.url.replaceAll('127.0.0.1', '10.11.40.122'))
|
|
|
|
|
},
|
|
|
|
|
viewDetails(e) {
|
|
|
|
|
this.$router.push({path: '/board/sceneView', query: {achieveId: e.achieveId}})
|
|
|
|
|
this.$router.push({path: '/sceneView', query: {achieveId: e.achieveId}})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -580,6 +598,8 @@ export default {
|
|
|
|
|
.layout {
|
|
|
|
|
height: 500px;
|
|
|
|
|
border: 1px solid #0003;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.miniLayout {
|
|
|
|
@ -617,6 +637,8 @@ export default {
|
|
|
|
|
height: 200px;
|
|
|
|
|
border: 1px solid #0003;
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modelListItemName {
|
|
|
|
@ -638,12 +660,15 @@ export default {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc(100vh - 70px - 70px - 60px - 6px);
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
|
|
.scene {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 50%;
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
left: 0%;
|
|
|
|
|
top: 0%;
|
|
|
|
|
//left: 50%;
|
|
|
|
|
//top: 50%;
|
|
|
|
|
//transform: translate(-50%, -50%);
|
|
|
|
|
border: 1px solid #0003;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|