From 4224c923a220e78e831f05e67435affe3740a681 Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Tue, 28 Sep 2021 16:22:18 +0800 Subject: [PATCH] update --- report-ui/src/components/Dictionary/index.vue | 4 +++- .../designer/designerComponents/dynamicComponents.vue | 9 +++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/report-ui/src/components/Dictionary/index.vue b/report-ui/src/components/Dictionary/index.vue index e3c8d020..fd58f97f 100644 --- a/report-ui/src/components/Dictionary/index.vue +++ b/report-ui/src/components/Dictionary/index.vue @@ -54,7 +54,9 @@ export default { created() { this.getSystem(); }, - mounted() {}, + mounted() { + this.dictionary = this.value; + }, methods: { // 获取数据字典 async getSystem() { diff --git a/report-ui/src/views/report/bigscreen/designer/designerComponents/dynamicComponents.vue b/report-ui/src/views/report/bigscreen/designer/designerComponents/dynamicComponents.vue index 57431603..684f53f6 100644 --- a/report-ui/src/views/report/bigscreen/designer/designerComponents/dynamicComponents.vue +++ b/report-ui/src/views/report/bigscreen/designer/designerComponents/dynamicComponents.vue @@ -129,7 +129,7 @@ export default { }, // 数据集回显 async echoDataSet(val) { - console.log(val); + if (!val) return; const setCode = val.setCode; await this.loadDataSet(); @@ -142,10 +142,10 @@ export default { this.echoDynamicData(val); }, echoDynamicData(val) { - const chartProperties = val.chartProperties; + const chartProperties = this.deepClone(val.chartProperties); + this.chartProperties = chartProperties; if (this.userNameList.length > 0) { } - if (this.setParamList.length > 0) { for (let i = 0; i < this.setParamList.length; i++) { const item = this.setParamList[i]; @@ -154,9 +154,6 @@ export default { } } } - console.log(this.params); - // console.log(this.userNameList); - // console.log(this.setParamList); } } };