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
Showing only changes of commit 610090c2a0 - Show all commits

View File

@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-07-19 15:18:30
* @LastEditors: zhp
* @LastEditTime: 2024-03-29 16:49:09
* @LastEditTime: 2024-04-02 09:46:46
* @Description:
-->
<template>
@ -417,9 +417,25 @@ export default {
`<span style="color:rgba(255,255,255,0.5)">${item.error || ''}</span>`,
]);
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.productLineChart.initChart(
['D61', 'D62', 'D63', 'D64', 'D65'],
arr,
[98, 97, 98.7, 98.5, 98.3],
[3134, 2323, 3232, 3233, 2321]
);
@ -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.$refs.productLineChart.initChart(
nameList,