大屏设置 描写与标题问题

qianlishi 3 years ago
parent ffc5add008
commit 77e24f19fb

@ -344,6 +344,7 @@ export default {
} else {
this.$set(this.formData, key, val);
}
this.$emit("onChanged", this.formData);
// key
for (let i = 0; i < this.options.length; i++) {

@ -199,7 +199,9 @@
'background-origin': 'initial',
'background-clip': 'initial'
}"
@click.self="setOptionsOnClickScreen" @drop="widgetOnDragged($event)" @dragover="dragOver($event)"
@click.self="setOptionsOnClickScreen"
@drop="widgetOnDragged($event)"
@dragover="dragOver($event)"
>
<div v-if="grade" class="bg-grid"></div>
<widget
@ -332,7 +334,7 @@ export default {
},
//
screenCode: "",
dragWidgetCode:'', //code
dragWidgetCode: "", //code
//
widgets: [
{
@ -663,16 +665,16 @@ export default {
getPXUnderScale(px) {
return this.bigscreenScaleInWorkbench * px;
},
dragStart( widgetCode) {
this.dragWidgetCode =widgetCode;
dragStart(widgetCode) {
this.dragWidgetCode = widgetCode;
},
dragEnd() {
this.dragWidgetCode=''
this.dragWidgetCode = "";
},
dragOver(evt){
evt.preventDefault()
evt.stopPropagation()
evt.dataTransfer.dropEffect = 'copy'
dragOver(evt) {
evt.preventDefault();
evt.stopPropagation();
evt.dataTransfer.dropEffect = "copy";
},
//
widgetOnDragged(evt) {
@ -819,9 +821,14 @@ export default {
},
//
widgetValueChanged(key, val) {
console.log("key", key);
console.log("val", val);
console.log(this.widgetOptions);
if (this.screenCode == "screen") {
let newSetup = new Array();
this.dashboard = this.deepClone(val);
console.log("asd", this.dashboard);
console.log(this.widgetOptions);
if (this.bigscreenWidth != this.dashboard.width) {
this.bigscreenWidth = this.dashboard.width;
}
@ -833,9 +840,12 @@ export default {
el.value = this.bigscreenWidth;
} else if (el.name == "height") {
el.value = this.bigscreenHeight;
} else if (this.dashboard.hasOwn(el.name)) {
el["value"] = this.dashboard[el.name];
}
newSetup.push(el);
});
console.log(newSetup);
this.widgetOptions.setup = newSetup;
} else {
for (let i = 0; i < this.widgets.length; i++) {

Loading…
Cancel
Save