From ceed2940c085a05378c5d01e08e82a98a17f317b Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 23 九月 2024 09:27:57 +0800 Subject: [PATCH] 统计分析、统计图表、对比分析、设备日利用率、设备日利用率对比、利用率走势分析以及利用率分段分析左侧树数据新增参数key,用来过滤异常状态设备 --- src/mixins/JeecgListMixin.js | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/mixins/JeecgListMixin.js b/src/mixins/JeecgListMixin.js index 841a3e7..f0153a1 100644 --- a/src/mixins/JeecgListMixin.js +++ b/src/mixins/JeecgListMixin.js @@ -54,6 +54,9 @@ created() { if(!this.disableMixinCreated){ console.log(' -- mixin created -- ') + // 姝ゅ闇�鍦╨oadData鍑芥暟涔嬪墠灏嗗弬鏁拌缃负鎵�闇�瑕佺殑鍊硷紝鍦ㄧ粍浠朵腑鐨刢reated涓棤娉曡缃紝鍥犱负mixin鐨勭敓鍛藉懆鏈熷嚱鏁版墽琛岄『搴忎紭鍏堜簬缁勪欢鐨勭敓鍛藉懆鏈熷嚱鏁� + const { equipmentId } = this.$route.params + if(equipmentId) this.$set(this.queryParam,'equipmentNum',equipmentId) this.loadData(); //鍒濆鍖栧瓧鍏搁厤缃� 鍦ㄨ嚜宸遍〉闈㈠畾涔� this.initDictConfig(); @@ -358,11 +361,19 @@ ) }) } else { - this.$message.success(info.file.response.message || `${info.file.name} 鏂囦欢涓婁紶鎴愬姛`) + // this.$message.success(info.file.response.message || `${info.file.name} 鏂囦欢涓婁紶鎴愬姛`) + this.$notification.success({ + message:'娑堟伅', + description:info.file.response.message || `${info.file.name} 鏂囦欢涓婁紶鎴愬姛` + }); } this.loadData() } else { - this.$message.error(`${info.file.name} ${info.file.response.message}.`); + // this.$message.error(`${info.file.name} ${info.file.response.message}.`); + this.$notification.error({ + message:'娑堟伅', + description:`${info.file.name} ${info.file.response.message}.` + }); } } else if (info.file.status === 'error') { this.loading = false; @@ -384,7 +395,11 @@ }) } } else { - this.$message.error(`鏂囦欢涓婁紶澶辫触: ${info.file.msg} `); + // this.$message.error(`鏂囦欢涓婁紶澶辫触: ${info.file.msg} `); + this.$notification.error({ + message:'娑堟伅', + description:`鏂囦欢涓婁紶澶辫触: ${info.file.msg} ` + }); } } }, -- Gitblit v1.9.3