|
|
@ -14,11 +14,20 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
originWidgetLinkageLogic,
|
|
|
|
|
|
|
|
targetWidgetLinkageLogic,
|
|
|
|
|
|
|
|
} from "@/views/bigscreenDesigner/designer/linkageLogic";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "WidgetSelect",
|
|
|
|
name: "WidgetFormTime",
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
value: Object,
|
|
|
|
value: Object,
|
|
|
|
ispreview: Boolean,
|
|
|
|
ispreview: Boolean,
|
|
|
|
|
|
|
|
widgetIndex: {
|
|
|
|
|
|
|
|
type: Number,
|
|
|
|
|
|
|
|
default: 0,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -43,6 +52,9 @@ export default {
|
|
|
|
eventChange() {
|
|
|
|
eventChange() {
|
|
|
|
return this.optionsSetup.event || "change";
|
|
|
|
return this.optionsSetup.event || "change";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
allComponentLinkage() {
|
|
|
|
|
|
|
|
return this.$store.state.designer.allComponentLinkage;
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
value: {
|
|
|
|
value: {
|
|
|
@ -60,18 +72,18 @@ export default {
|
|
|
|
this.optionsData = this.value.data;
|
|
|
|
this.optionsData = this.value.data;
|
|
|
|
this.optionsStyle = this.value.position;
|
|
|
|
this.optionsStyle = this.value.position;
|
|
|
|
this.setOptions();
|
|
|
|
this.setOptions();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
targetWidgetLinkageLogic(this); // 联动-目标组件逻辑
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
change(event) {
|
|
|
|
change(event) {
|
|
|
|
console.log(event);
|
|
|
|
console.log(event);
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const formTimeData = {}
|
|
|
|
const params = {};
|
|
|
|
formTimeData['startTime'] = event[0] //startTime
|
|
|
|
params[optionsSetup.field] = event;
|
|
|
|
formTimeData['endTime'] = event[1] //endTime
|
|
|
|
params["assChart"] = optionsSetup.assChart;
|
|
|
|
originWidgetLinkageLogic(this, true, {
|
|
|
|
console.log(event);
|
|
|
|
currentData: formTimeData,
|
|
|
|
// console.log(params)
|
|
|
|
}); // 联动-源组件逻辑
|
|
|
|
const optionsData = this.optionsData;
|
|
|
|
|
|
|
|
console.log(optionsData);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setOptions() {
|
|
|
|
setOptions() {
|
|
|
|
const optionsData = this.optionsData;
|
|
|
|
const optionsData = this.optionsData;
|
|
|
|