diff --git a/src/api/mes/reportWork.js b/src/api/mes/reportWork.js
index fb5c5fe9..c6bee9cf 100644
--- a/src/api/mes/reportWork.js
+++ b/src/api/mes/reportWork.js
@@ -209,3 +209,10 @@ export function getPrepareList(query) {
});
}
+// 获取线体每月生产过程不良率
+export function getLineQcData() {
+ return request({
+ url: '/quality/qcInterface/getLineQcData',
+ method: 'get'
+ });
+}
diff --git a/src/views/dashboard/DeviceChartLine.vue b/src/views/dashboard/DeviceChartLine.vue
index 7673e57e..320781cb 100644
--- a/src/views/dashboard/DeviceChartLine.vue
+++ b/src/views/dashboard/DeviceChartLine.vue
@@ -1,7 +1,7 @@
@@ -56,11 +56,12 @@ export default {
bottom: '3%',
containLabel: true
},
+ /**
toolbox: {
feature: {
saveAsImage: {}
}
- },
+ },**/
xAxis: {
type: 'category',
boundaryGap: false,
diff --git a/src/views/dashboard/LineChart.vue b/src/views/dashboard/LineChart.vue
index 1b58d816..59455010 100644
--- a/src/views/dashboard/LineChart.vue
+++ b/src/views/dashboard/LineChart.vue
@@ -18,7 +18,7 @@
},
width: {
type: String,
- default: '100%'
+ default: '99%'
},
height: {
type: String,
@@ -41,10 +41,6 @@
watch: {
chartData: {
deep: true,
- //handler(val) {
- //debugger
- //this.setOptions(val)
- //}
handler(newValue,oldValue){
this.chart.dispose();
this.chartData=newValue;
diff --git a/src/views/index.vue b/src/views/index.vue
index 9d85684c..0fcfcd1b 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -12,6 +12,7 @@
+
- {{deviceTitle}}
+ 各线体设备月故障数
- 各线体生产不良率
+ 各车间生产不良率
@@ -34,7 +34,7 @@
-
+
@@ -44,12 +44,14 @@
import LineChart from './dashboard/LineChart';
import PieChart from './dashboard/PieChart';
import PieChart2 from './dashboard/PieChart2';
-import {getGroupLineEquInfo, getLineChartData} from '@/api/mes/reportWork'
+import {getGroupLineEquInfo, getLineChartData,getLineQcData} from '@/api/mes/reportWork'
import DeviceChartLine from "./dashboard/DeviceChartLine";
+import QcChartLine from "./dashboard/QcChartLine";
export default {
name: "Index",
components: {
DeviceChartLine,
+ QcChartLine,
LineChart//,PieChart,PieChart2
},
data() {
@@ -58,13 +60,13 @@ export default {
version: "1.0.0",
lineChartData: null,
deviceChartLineData:null,
- title:"本月工厂产量",
- deviceTitle: "各组线月设备故障数"
+ qcChartLineData:null,
+ title:"本月工厂产量"
};
},
created() {
this.getLineChartData();
- this.getGroupLineEquInfo();
+
},
methods: {
goTarget(href) {
@@ -75,11 +77,13 @@ export default {
this.lineChartData = data;
});
},
+ /**
getGroupLineEquInfo(){
getGroupLineEquInfo().then(response => {
this.deviceChartLineData = response.data;
});
- }
+ },
+ **/
},
};
diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue
index e1f79d71..c03407c7 100644
--- a/src/views/plan/workorder/index.vue
+++ b/src/views/plan/workorder/index.vue
@@ -183,12 +183,16 @@
-
+
+
-
-
+
+
+
+