From 405cbf772a2eb776d73367b64c2f407af65dcf5c Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Wed, 29 Sep 2021 14:15:22 +0800 Subject: [PATCH] file --- .../views/report/bigscreen/designer/index.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/report-ui/src/views/report/bigscreen/designer/index.vue b/report-ui/src/views/report/bigscreen/designer/index.vue index 55bbca5c..35b0a0de 100644 --- a/report-ui/src/views/report/bigscreen/designer/index.vue +++ b/report-ui/src/views/report/bigscreen/designer/index.vue @@ -591,12 +591,20 @@ export default { this.$refs.upload.clearFiles(); //刷新大屏页面 this.initEchartData(); - this.$message({ - message: "导入成功!", - type: "success" - }); + if (response.code == '200') { + this.$message({ + message: "导入成功!", + type: "success" + }); + }else { + this.$message({ + message: response.message, + type: "error" + }); + } + }, - handleError() { + handleError(err) { this.$message({ message: "上传失败!", type: "error"