|
|
@ -461,6 +461,8 @@ export default {
|
|
|
|
const screenData = this.handleBigScreen(data.dashboard);
|
|
|
|
const screenData = this.handleBigScreen(data.dashboard);
|
|
|
|
this.widgets = processData;
|
|
|
|
this.widgets = processData;
|
|
|
|
this.dashboard = screenData;
|
|
|
|
this.dashboard = screenData;
|
|
|
|
|
|
|
|
this.bigscreenWidth = this.dashboard.width;
|
|
|
|
|
|
|
|
this.bigscreenHeight = this.dashboard.height;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleBigScreen(data) {
|
|
|
|
handleBigScreen(data) {
|
|
|
|
const optionScreen = getToolByCode("screen").options;
|
|
|
|
const optionScreen = getToolByCode("screen").options;
|
|
|
@ -771,7 +773,23 @@ export default {
|
|
|
|
// 将当前选中的组件,右侧属性值更新
|
|
|
|
// 将当前选中的组件,右侧属性值更新
|
|
|
|
widgetValueChanged(key, val) {
|
|
|
|
widgetValueChanged(key, val) {
|
|
|
|
if (this.screenCode == "screen") {
|
|
|
|
if (this.screenCode == "screen") {
|
|
|
|
|
|
|
|
let newSetup = new Array();
|
|
|
|
this.dashboard = this.deepClone(val);
|
|
|
|
this.dashboard = this.deepClone(val);
|
|
|
|
|
|
|
|
if(this.bigscreenWidth != this.dashboard.width){
|
|
|
|
|
|
|
|
this.bigscreenWidth = this.dashboard.width
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(this.bigscreenHeight != this.dashboard.height){
|
|
|
|
|
|
|
|
this.bigscreenHeight = this.dashboard.height
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.widgetOptions.setup.forEach(el => {
|
|
|
|
|
|
|
|
if(el.name == 'width'){
|
|
|
|
|
|
|
|
el.value = this.bigscreenWidth
|
|
|
|
|
|
|
|
}else if(el.name == 'height'){
|
|
|
|
|
|
|
|
el.value = this.bigscreenHeight
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
newSetup.push(el)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.widgetOptions.setup = newSetup
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
for (let i = 0; i < this.widgets.length; i++) {
|
|
|
|
for (let i = 0; i < this.widgets.length; i++) {
|
|
|
|
if (this.widgetIndex == i) {
|
|
|
|
if (this.widgetIndex == i) {
|
|
|
@ -946,6 +964,8 @@ export default {
|
|
|
|
border: 1px solid #3a4659;
|
|
|
|
border: 1px solid #3a4659;
|
|
|
|
background: #282a30;
|
|
|
|
background: #282a30;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tools-item-text{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|