projects/mesxc-zhp #297

Merged
juzi merged 2 commits from projects/mesxc-zhp into projects/mesxc-test 2024-04-02 09:50:35 +08:00

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2021-07-19 15:18:30 * @Date: 2021-07-19 15:18:30
* @LastEditors: zhp * @LastEditors: zhp
* @LastEditTime: 2024-03-29 16:49:09 * @LastEditTime: 2024-04-02 09:46:46
* @Description: * @Description:
--> -->
<template> <template>
@ -416,10 +416,26 @@ export default {
`<span style="color:rgba(255,255,255,0.5)">${item.status || ''}</span>`, `<span style="color:rgba(255,255,255,0.5)">${item.status || ''}</span>`,
`<span style="color:rgba(255,255,255,0.5)">${item.error || ''}</span>`, `<span style="color:rgba(255,255,255,0.5)">${item.error || ''}</span>`,
]); ]);
this.eqConfig.data = eqArr; this.eqConfig.data = eqArr;
let arr = ['D64', 'D62', 'D61', 'D63', 'D65']
// let arr = [5, 6, 2, 4, 7, 9, 15];
// 7
for (let i = 0; i < arr.length - 1; i++) {
//
for (let j = 0; j < arr.length - i - 1; j++) {
//
if (arr[j].substr(arr[j].length - 1, 1) > arr[j + 1].substr(arr[j + 1].length - 1, 1)) {
//
let temp = arr[j];
arr[j] = arr[j + 1];
arr[j + 1] = temp;
}
}
}
console.log(arr);
this.$refs['eqScrollBoard'].updateRows(eqArr); this.$refs['eqScrollBoard'].updateRows(eqArr);
this.$refs.productLineChart.initChart( this.$refs.productLineChart.initChart(
['D61', 'D62', 'D63', 'D64', 'D65'], arr,
[98, 97, 98.7, 98.5, 98.3], [98, 97, 98.7, 98.5, 98.3],
[3134, 2323, 3232, 3233, 2321] [3134, 2323, 3232, 3233, 2321]
); );
@ -443,7 +459,7 @@ export default {
// // erd.uninstall(document); //refvuedom // // erd.uninstall(document); //refvuedom
// removeEventListener('resize', resizeFun) // removeEventListener('resize', resizeFun)
// }, // },
methods: { methods: {
getData() { getData() {
let processArr = qualityMonthList.map((item, index) => [ let processArr = qualityMonthList.map((item, index) => [
// console.log(item) // console.log(item)
@ -655,6 +671,19 @@ export default {
// } // }
// } // }
}); });
// let arr = ['D64', 'D62', 'D61', 'D63', 'D65']
for (let i = 0; i < nameList.length - 1; i++) {
//
for (let j = 0; j < nameList.length - i - 1; j++) {
//
if (nameList[j].substr(nameList[j].length - 1, 1) > nameList[j + 1].substr(nameList[j + 1].length - 1, 1)) {
//
let temp = nameList[j];
nameList[j] = nameList[j + 1];
nameList[j + 1] = temp;
}
}
}
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.productLineChart.initChart( this.$refs.productLineChart.initChart(
nameList, nameList,