先占个坑
This commit is contained in:
@@ -223,7 +223,7 @@
|
||||
<el-input size="mini" clearable placeholder="请输入弹窗标题" v-model="config.dialogTitle"/>
|
||||
</config-item>
|
||||
<config-item label="内容" v-if="!['table','AiDvTable'].includes(config.type)">
|
||||
<ai-dialog-btn dialog-title="弹窗内容" text="打开编辑器">
|
||||
<ai-dialog-btn dialog-title="弹窗内容" text="打开编辑器" :modal="false">
|
||||
<ai-editor clearable placeholder="请输入弹窗内容" v-model="config.dialogContent" :instance="instance"/>
|
||||
</ai-dialog-btn>
|
||||
</config-item>
|
||||
|
||||
@@ -75,18 +75,20 @@ export default {
|
||||
},
|
||||
initStaticDataProps() {
|
||||
const columnProp = "name"
|
||||
this.options.staticData.map((row, i) => {
|
||||
const prop = `c${i || ""}`
|
||||
this.colConfigs.push({label: row[columnProp], prop})
|
||||
Object.entries(row).map(([k, v]) => {
|
||||
if (/^v/.test(k)) {
|
||||
const item = this.tableData[k.substring(1) || 0] || {}
|
||||
item[prop] = v
|
||||
this.tableData[k.substring(1) || 0] = item
|
||||
}
|
||||
if (Array.isArray(this.options.staticData)) {
|
||||
this.options.staticData.map((row, i) => {
|
||||
const prop = `c${i || ""}`
|
||||
this.colConfigs.push({label: row[columnProp], prop})
|
||||
Object.entries(row).map(([k, v]) => {
|
||||
if (/^v/.test(k)) {
|
||||
const item = this.tableData[k.substring(1) || 0] || {}
|
||||
item[prop] = v
|
||||
this.tableData[k.substring(1) || 0] = item
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
this.tableData = this.tableData.map(e => ({...e, $cellEdit: false}))
|
||||
this.tableData = this.tableData.map(e => ({...e, $cellEdit: false}))
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
@@ -517,7 +517,7 @@ const components = [{
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'other', label: '其他', list: [{
|
||||
label: '其他', list: [{
|
||||
label: '地图', type: 'map', list: [{
|
||||
type: 'map',
|
||||
label: '地图',
|
||||
@@ -621,7 +621,7 @@ const components = [{
|
||||
}]
|
||||
}]
|
||||
}, {
|
||||
label: '轮播图', type: 'swiper', list: [{
|
||||
label: '轮播图', list: [{
|
||||
type: 'swiper',
|
||||
label: '轮播图',
|
||||
width: 400,
|
||||
@@ -692,26 +692,29 @@ const components = [{
|
||||
thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/total.png'
|
||||
}]
|
||||
}, {
|
||||
label: '视频监控', type: 'monitor', list: [{
|
||||
type: 'monitor',
|
||||
label: '视频监控',
|
||||
src: '',
|
||||
width: 480,
|
||||
height: 240,
|
||||
zIndex: 1,
|
||||
top: 0,
|
||||
left: 0,
|
||||
title: '',
|
||||
moniterId: '',
|
||||
monitorType: 'cmcc',
|
||||
api: '/app/appzyvideoequipment/list2',
|
||||
border: 'border2',
|
||||
sourceDataId: '',
|
||||
dataType: 'staticData',
|
||||
staticData: '',
|
||||
dynamicData: '',
|
||||
thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/video.png'
|
||||
}]
|
||||
label: '视频监控', list: [
|
||||
{
|
||||
type: 'monitor',
|
||||
label: '视频监控',
|
||||
src: '',
|
||||
width: 480,
|
||||
height: 240,
|
||||
zIndex: 1,
|
||||
top: 0,
|
||||
left: 0,
|
||||
title: '',
|
||||
moniterId: '',
|
||||
monitorType: 'cmcc',
|
||||
api: '/app/appzyvideoequipment/list2',
|
||||
border: 'border2',
|
||||
sourceDataId: '',
|
||||
dataType: 'staticData',
|
||||
staticData: '',
|
||||
dynamicData: '',
|
||||
thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/video.png'
|
||||
},
|
||||
{type: "monitorCarousel", label: "视频轮播", width: 480, height: 480, zIndex: 1, title: "视频轮播", thumb: "https://cdn.cunwuyun.cn/dvcp/dv/tpl/video.png"}
|
||||
]
|
||||
}, customHtml]
|
||||
}]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user