已增加整轮播图和地图连线
This commit is contained in:
@@ -109,13 +109,7 @@
|
||||
<component-config v-show="configIndex === 0" :config="currLayout" v-bind="$props"/>
|
||||
<div class="layout-right__content--wrapper" v-show="configIndex === 1"
|
||||
v-if="currLayout.type !== 'title' && currLayout.type !== 'video'">
|
||||
<data-config
|
||||
ref="dataConfig"
|
||||
:instance="instance"
|
||||
:dict="dict"
|
||||
:options="currLayout"
|
||||
@change="onChange('barChart')">
|
||||
</data-config>
|
||||
<data-config v-model="currLayout" :instance="instance" :dict="dict" @change="onChange('barChart')"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -214,7 +208,8 @@
|
||||
</el-table-column>
|
||||
</ai-table>
|
||||
</ai-dialog>
|
||||
<ai-dialog :visible.sync="isShowAddImg" width="580px" append-to-body title="添加素材" @closed="form.images = []" @onConfirm="onImageConfirm">
|
||||
<ai-dialog :visible.sync="isShowAddImg" width="580px" append-to-body title="添加素材" @closed="form.images = []"
|
||||
@onConfirm="onImageConfirm">
|
||||
<ai-uploader
|
||||
:instance="instance"
|
||||
v-model="form.images"
|
||||
@@ -297,12 +292,14 @@ export default {
|
||||
workbenchTransform() {
|
||||
return `scale(${this.heightScale})`
|
||||
},
|
||||
|
||||
currLayout() {
|
||||
if (this.activeIndex === -1) return {}
|
||||
return this.componentList[this.activeIndex]
|
||||
currLayout: {
|
||||
set(v) {
|
||||
this.componentList.splice(this.activeIndex, 1, v)
|
||||
},
|
||||
get() {
|
||||
return this.activeIndex > -1 ? this.componentList[this.activeIndex] : {}
|
||||
}
|
||||
},
|
||||
|
||||
widget() {
|
||||
if (this.components.length && this.components[this.parentIndex].list.length) {
|
||||
return this.components[this.parentIndex].list[this.subIndex].list
|
||||
@@ -410,13 +407,9 @@ export default {
|
||||
clone(e) {
|
||||
this.componentList.push(this.deepClone(e))
|
||||
},
|
||||
|
||||
onChange(e) {
|
||||
if (e.indexOf('Chart') > -1) {
|
||||
this.$refs[`chart${this.activeIndex}`]?.[0]?.refresh()
|
||||
}
|
||||
onChange() {
|
||||
this.$refs[`chart${this.activeIndex}`]?.[0]?.refresh()
|
||||
},
|
||||
|
||||
deepClone(obj) {
|
||||
if (obj instanceof Object) {
|
||||
let newObj = {}
|
||||
@@ -993,8 +986,8 @@ export default {
|
||||
}
|
||||
|
||||
:deep(.layout-right__content ) {
|
||||
height: calc(100% - 40px);
|
||||
overflow-y: overlay;
|
||||
height: calc(100% - 50px);
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
|
||||
.layout-config__group {
|
||||
|
||||
Reference in New Issue
Block a user