From 091fd073afb4c24d740056f2c6cbac742483adfe Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 29 Sep 2022 13:54:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=94=B9=E5=8F=98=E8=A7=86=E5=9B=BE=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=9C=B0=E5=9B=BE=E4=B8=AD=E6=96=87=E5=AD=97=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=8F=8A=E6=97=B6=E5=8F=98=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/system/dynamic.js | 3 ++- frontend/src/lang/en.js | 1 + frontend/src/lang/tw.js | 1 + frontend/src/lang/zh.js | 1 + frontend/src/views/chart/components/ChartComponent.vue | 10 ++++++++++ 5 files changed, 15 insertions(+), 1 deletion(-) diff --git a/frontend/src/api/system/dynamic.js b/frontend/src/api/system/dynamic.js index e16d914cca..6ca3f50daf 100644 --- a/frontend/src/api/system/dynamic.js +++ b/frontend/src/api/system/dynamic.js @@ -17,7 +17,8 @@ export function execute(options) { url: options.url, method: options.type, loading: true, - data: options.data + data: options.data, + hideMsg: options.hideMsg } if (options.responseType) { param.responseType = options.responseType diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 7f651aa463..178a099f0f 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -911,6 +911,7 @@ export default { password_input_error: 'Original password input error' }, chart: { + map_center_lost: 'The graph is missing the centroid or center attribute, please complete it and try again', margin_model: 'Model', margin_model_auto: 'Auto', margin_model_absolute: 'Absolute', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index afbcb185ce..9e18c8acca 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -911,6 +911,7 @@ export default { password_input_error: '原始密碼輸入錯誤' }, chart: { + map_center_lost: '圖形缺失中心點centroid或center屬性,請補全後再試', margin_model: '模式', margin_model_auto: '自動', margin_model_absolute: '絕對', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 099fff30fc..425c1d028d 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -910,6 +910,7 @@ export default { password_input_error: '原始密码输入错误' }, chart: { + map_center_lost: '图形缺失中心点centroid或center属性,请补全后再试', margin_model: '模式', margin_model_auto: '自动', margin_model_absolute: '绝对', diff --git a/frontend/src/views/chart/components/ChartComponent.vue b/frontend/src/views/chart/components/ChartComponent.vue index 2593b9d237..e65897ed6d 100644 --- a/frontend/src/views/chart/components/ChartComponent.vue +++ b/frontend/src/views/chart/components/ChartComponent.vue @@ -159,6 +159,16 @@ export default { }, resize() { this.drawEcharts() + }, + 'themeStyle.color'(value, old) { + if (value !== old) { + this.preDraw() + } + }, + 'themeStyle.commonBackground.color'(value, old) { + if (value !== old) { + this.preDraw() + } } }, mounted() {