-
@@ -51,6 +51,34 @@ const dvMouseover = (value) => {
}
};
+/**
+ * 点击表格事件
+ */
+const dvClick = (value) =>{
+ if (value.row) {
+ let id = {
+ '精加车间':1,
+ '机加车间':2,
+ '大件车间':3,
+ '精饰车间':4,
+ '焊接车间':5,
+ }
+
+ prop.config.rawData.forEach((res,index) => {
+
+ if (index == value.row[0]-1) {
+ router.push({
+ name: "Mechanicsson",
+ params: {
+ id: id[value.row[2]],
+ dev: res.id
+ },
+ });
+ }
+ });
+ }
+
+}
/**
* @函数功能: 鼠标移出组件方法
* @出口参数:
diff --git a/src/views/Mechanics/indexNew.vue b/src/views/Mechanics/indexNew.vue
index 7b116ab..fe5527f 100644
--- a/src/views/Mechanics/indexNew.vue
+++ b/src/views/Mechanics/indexNew.vue
@@ -94,7 +94,8 @@ let scrollBoardConfig = reactive({
rowNum: 10,
columnWidth: [80, 290, 120, 120, 120, 120],
align: ['center', 'center', 'center', 'center', 'center', 'center'],
- data: []
+ data: [],
+ rawData:[]
})
let gatewayData = ref([])
let devNumTimer: any = null
@@ -169,6 +170,7 @@ async function reqDeviceTotelListMFfun() {
item.failure + '%'
]
})
+ scrollBoardConfig.rawData = result.data;
}
}
diff --git a/src/views/PaintShopView/View1/bottom.vue b/src/views/PaintShopView/View1/bottom.vue
index dc201fa..a6fccd8 100644
--- a/src/views/PaintShopView/View1/bottom.vue
+++ b/src/views/PaintShopView/View1/bottom.vue
@@ -207,7 +207,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '30%',
+ barWidth: '50%',
label: {
show: true,
color: '#fff',
@@ -251,7 +251,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '25%',
+ barWidth: '45%',
label: {
show: true,
color: '#fff',
diff --git a/src/views/PaintShopView/finishView/bottom.vue b/src/views/PaintShopView/finishView/bottom.vue
index 8400d45..db5341c 100644
--- a/src/views/PaintShopView/finishView/bottom.vue
+++ b/src/views/PaintShopView/finishView/bottom.vue
@@ -205,7 +205,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '30%',
+ barWidth: '50%',
label: {
show: true,
color: '#fff',
@@ -248,7 +248,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '25%',
+ barWidth: '45%',
label: {
show: true,
color: '#fff',
diff --git a/src/views/PaintShopView/machiningView/bottom.vue b/src/views/PaintShopView/machiningView/bottom.vue
index 42631ee..9a678c9 100644
--- a/src/views/PaintShopView/machiningView/bottom.vue
+++ b/src/views/PaintShopView/machiningView/bottom.vue
@@ -206,7 +206,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '30%',
+ barWidth: '50%',
label: {
show: true,
color: '#fff',
@@ -249,7 +249,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '25%',
+ barWidth: '45%',
label: {
show: true,
color: '#fff',
diff --git a/src/views/PaintShopView/stuffView/bottom.vue b/src/views/PaintShopView/stuffView/bottom.vue
index 73ea6fd..f3fd14c 100644
--- a/src/views/PaintShopView/stuffView/bottom.vue
+++ b/src/views/PaintShopView/stuffView/bottom.vue
@@ -206,7 +206,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '30%',
+ barWidth: '50%',
label: {
show: true,
color: '#fff',
@@ -250,7 +250,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '25%',
+ barWidth: '45%',
label: {
show: true,
color: '#fff',
diff --git a/src/views/PaintShopView/weldView/bottom.vue b/src/views/PaintShopView/weldView/bottom.vue
index 15cf900..c9d762d 100644
--- a/src/views/PaintShopView/weldView/bottom.vue
+++ b/src/views/PaintShopView/weldView/bottom.vue
@@ -206,7 +206,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '30%',
+ barWidth: '50%',
label: {
show: true,
color: '#fff',
@@ -250,7 +250,7 @@ function setcontentData(val) {
return color[params.dataIndex];
}
},
- barWidth: '25%',
+ barWidth: '45%',
label: {
show: true,
color: '#fff',
diff --git a/src/views/Waterhouse/index.vue b/src/views/Waterhouse/index.vue
index 8f199eb..5461c63 100644
--- a/src/views/Waterhouse/index.vue
+++ b/src/views/Waterhouse/index.vue
@@ -1,41 +1,41 @@
-
-
数据监测
+
{{ t('messages.数据监测') }}
-
进水
+
{{ t('messages.进水') }}
20
-
出水
+
{{ t('messages.出水') }}
20
-
消耗
+
{{ t('messages.消耗') }}
20
-
用电
+
{{ t('messages.用电') }}
20
-
总体趋势图
+
{{ t('messages.总体趋势图') }}
- 近一周
- 近一月
- 近三月
+ {{ t('messages.近一周') }}
+ {{ t('messages.近一月') }}
+ {{ t('messages.近三月') }}
- 最大值
- 最小值
- 平均值
+ {{ t('messages.最大值') }}
+ {{ t('messages.最小值') }}
+ {{ t('messages.平均值') }}
@@ -48,15 +48,15 @@
-
效益&效率
+
{{ t('messages.效益&效率') }}
-
-
效益
+
+
{{ t('messages.效益') }}
-
-
效率
+
+
{{ t('messages.效益') }}
@@ -66,11 +66,14 @@