|
|
|
@ -205,7 +205,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
chartList(val){
|
|
|
|
|
chartList (val) {
|
|
|
|
|
// console.log(val,this.activeCode)
|
|
|
|
|
// if(val.findIndex(item=>item.code==this.activeCode)==-1){
|
|
|
|
|
// this.updateRightVisiable(false)
|
|
|
|
@ -263,7 +263,7 @@ export default {
|
|
|
|
|
mounted () {
|
|
|
|
|
EventBus.$on('closeRightPanel', () => {
|
|
|
|
|
this.updateRightVisiable(false)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy () {
|
|
|
|
|
this.clearTimeline()
|
|
|
|
@ -309,27 +309,27 @@ export default {
|
|
|
|
|
getScreenInfo(component.code).then(res => {
|
|
|
|
|
res.chartList.forEach((item) => {
|
|
|
|
|
if (!item.border) {
|
|
|
|
|
item.border={type:'',titleHeight:60,fontSize:16,isTitle:true,padding:[0,0,0,0]}
|
|
|
|
|
item.border = { type: '', titleHeight: 60, fontSize: 16, isTitle: true, padding: [0, 0, 0, 0] }
|
|
|
|
|
}
|
|
|
|
|
if(!item.border.padding){
|
|
|
|
|
item.border.padding=[0,0,0,0]
|
|
|
|
|
if (!item.border.padding) {
|
|
|
|
|
item.border.padding = [0, 0, 0, 0]
|
|
|
|
|
}
|
|
|
|
|
if (item.type == 'customComponent'){
|
|
|
|
|
plotSettings[Symbol.iterator]=function*(){
|
|
|
|
|
let keys=Object.keys(plotSettings)
|
|
|
|
|
for(let k of keys){
|
|
|
|
|
yield [k,plotSettings[k]]
|
|
|
|
|
if (item.type == 'customComponent') {
|
|
|
|
|
plotSettings[Symbol.iterator] = function * () {
|
|
|
|
|
const keys = Object.keys(plotSettings)
|
|
|
|
|
for (const k of keys) {
|
|
|
|
|
yield [k, plotSettings[k]]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for(let [key,value] of plotSettings){
|
|
|
|
|
if (item.name == value.name) {
|
|
|
|
|
const settings=JSON.parse(JSON.stringify(value.setting))
|
|
|
|
|
item.setting=settings.map((x)=>{
|
|
|
|
|
const index=item.setting.findIndex(y=>y.field==x.field)
|
|
|
|
|
for (const [key, value] of plotSettings) {
|
|
|
|
|
if (item.name == value.name) {
|
|
|
|
|
const settings = JSON.parse(JSON.stringify(value.setting))
|
|
|
|
|
item.setting = settings.map((x) => {
|
|
|
|
|
const index = item.setting.findIndex(y => y.field == x.field)
|
|
|
|
|
x.field = item.setting[index].field
|
|
|
|
|
x.value=item.setting[index].value
|
|
|
|
|
x.value = item.setting[index].value
|
|
|
|
|
return x
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -441,7 +441,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 自定义属性更新
|
|
|
|
|
updateSetting (config) {
|
|
|
|
|
if (config.type === 'map' || config.type==='screenScrollBoard'|| config.type === 'remoteComponent' || config.type === 'video' || config.type === 'flyMap') {
|
|
|
|
|
if (config.type === 'map' || config.type === 'screenScrollBoard' || config.type === 'remoteComponent' || config.type === 'video' || config.type === 'flyMap') {
|
|
|
|
|
config.key = new Date().getTime()
|
|
|
|
|
}
|
|
|
|
|
this.changeChartConfig(cloneDeep(config))
|
|
|
|
|