大屏 底图修改

qianlishi 3 years ago
parent f69ef3d33d
commit 5fbe3f6000

@ -357,13 +357,9 @@ export default {
} }
}, },
mounted() { mounted() {
//
this.setOptionsOnClickScreen();
// //
this.initEchartData(); this.initEchartData();
this.widgets = []; this.widgets = [];
window.addEventListener("mouseup", () => { window.addEventListener("mouseup", () => {
this.grade = false; this.grade = false;
}); });
@ -394,7 +390,7 @@ export default {
this.dashboard = screenData; this.dashboard = screenData;
}, },
handleBigScreen(data) { handleBigScreen(data) {
const optionScreen = this.deepClone(getToolByCode("screen").options); const optionScreen = getToolByCode("screen").options;
const setup = optionScreen.setup; const setup = optionScreen.setup;
for (const key in data) { for (const key in data) {
for (let i = 0; i < setup.length; i++) { for (let i = 0; i < setup.length; i++) {
@ -403,6 +399,7 @@ export default {
} }
} }
} }
this.setOptionsOnClickScreen();
return { return {
backgroundColor: (data && data.backgroundColor) || "", backgroundColor: (data && data.backgroundColor) || "",
backgroundImage: (data && data.backgroundImage) || "", backgroundImage: (data && data.backgroundImage) || "",

Loading…
Cancel
Save