From 122f5f304b274d069a88a80839268707cb5afc33 Mon Sep 17 00:00:00 2001 From: whychdw <49690745@qq.com> Date: 星期一, 02 十二月 2019 14:55:52 +0800 Subject: [PATCH] 修改内容 --- www/pages/history-data/history-data.js | 39 +++++++++++++++++++++++++++++++-------- 1 files changed, 31 insertions(+), 8 deletions(-) diff --git a/www/pages/history-data/history-data.js b/www/pages/history-data/history-data.js index 51737dc..49c3f30 100644 --- a/www/pages/history-data/history-data.js +++ b/www/pages/history-data/history-data.js @@ -14,6 +14,11 @@ this.vm = new Vue({ el: getPageRoot(module), data: { + shows: { + groupVolLine: false, + groupCurrLine: false, + monInfoLine: false + }, loading: bui.loading({ autoClose: false }), @@ -314,6 +319,21 @@ return this.title + '-杩愮淮鏁版嵁'; } }, + created: function created() { + var self = this; + // 绔數鍘� + setTimeout(function () { + self.shows.groupVolLine = true; + }, 10); + // 缁勭鐢垫祦 + setTimeout(function () { + self.shows.groupCurrLine = true; + }, 0); + // 鍗曚綋淇℃伅 + setTimeout(function () { + self.shows.monInfoLine = true; + }, 0); + }, mounted: function mounted() { var self = this; // console.log(this); @@ -324,14 +344,17 @@ var chartTab = this.$refs['chartTab']; - // 閫夐」鍗� - var uiTab = bui.tab({ - id: "#uiTab", - width: chartTab.offsetWidth, - onInited: function onInited(option) { - self.lineChart.height = self.$refs['chartTabItem'].offsetHeight; - } - }); + // 寤舵椂鎵ц閫夐」鍗� + setTimeout(function () { + // 閫夐」鍗� + var uiTab = bui.tab({ + id: "#uiTab", + width: chartTab.offsetWidth, + onInited: function onInited(option) { + self.lineChart.height = self.$refs['chartTabItem'].offsetHeight; + } + }); + }, 0); // 鏌ヨ鎵�鏈夊凡缁忓畨瑁呯殑鐢垫睜缁� this.searchAll(); -- Gitblit v1.9.1