diff --git a/src/view/tab/systemStatus/StackerStatus.vue b/src/view/tab/systemStatus/StackerStatus.vue
index d3b4de3..14aaca3 100644
--- a/src/view/tab/systemStatus/StackerStatus.vue
+++ b/src/view/tab/systemStatus/StackerStatus.vue
@@ -41,19 +41,9 @@
-
-
-
-
-
-
-
-
-
-
-
+
@@ -64,16 +54,19 @@ import {ElLoading, ElMessage} from "element-plus";
import {formatterOnOrOffEnum} from "@/enum/base/on.off.enum";
import {formatterStackerControlModel} from "@/enum/stacker/stackerControlModelEnum";
import {formatterStackerStatus} from "@/enum/stacker/stackerStatusEnum";
+import ShowStackerErr from "@/view/component/stackerStatus/ShowStackerErr.vue";
export default {
// import 引入的组件需要注入到对象中才能使用
- components: {},
+ components: {ShowStackerErr},
props: [],
emits: [],
data() {
// 这里存放数据
return {
- stackerInfo:[]
+ stackerInfo:[],
+ // 展示报警弹窗
+ showErrDia: false,
}
},
// 计算属性 类似于 data 概念
@@ -118,7 +111,15 @@ export default {
},
// 显示故障
showErr(row) {
-
+ if(row.errCode === 0) {
+ ElMessage({
+ message: '当前没有报警,或者可以查询刷新后再试',
+ type: 'success',
+ })
+ return
+ }
+ this.showErrDia = true;
+ this.$refs.showStackerErr.query('S', row.errCode);
}
},
// 组合式 API
diff --git a/vue.config.js b/vue.config.js
index c1d825f..033da89 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,5 +1,6 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
+ publicPath: '/wcs',
transpileDependencies: true,
chainWebpack: (config) => {
config.plugin('define').tap((defineConfig) => {