|
@@ -206,15 +206,17 @@ export default {
|
|
|
)[0];
|
|
|
this.selectMoudle = select.station[0].lable;
|
|
|
this.moudleList = select.station;
|
|
|
+ this.getfaultLables();
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
dataList: [],
|
|
|
+ faultLists: [],
|
|
|
lossList: {},
|
|
|
accuracyList: {},
|
|
|
barList: [],
|
|
|
algorithm: [], //算法
|
|
|
- chooseAlgorithm: '',
|
|
|
+ chooseAlgorithm: "",
|
|
|
timeValue: [],
|
|
|
showBarList: [],
|
|
|
moudleList: [],
|
|
@@ -233,6 +235,7 @@ export default {
|
|
|
options: [
|
|
|
{
|
|
|
value: "NSS_FDC",
|
|
|
+ label: "牛首山风电场",
|
|
|
station: [
|
|
|
{
|
|
|
lable: "UP82",
|
|
@@ -242,6 +245,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
value: "MHS_FDC",
|
|
|
+ label: "麻黄山风电场",
|
|
|
station: [
|
|
|
{
|
|
|
lable: "UP77",
|
|
@@ -255,6 +259,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
value: "QS_FDC",
|
|
|
+ label: "青山风电场",
|
|
|
station: [
|
|
|
{
|
|
|
lable: "CCWE-1500",
|
|
@@ -268,6 +273,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
value: "SBQ_FDC",
|
|
|
+ label: "石板泉风电场",
|
|
|
station: [
|
|
|
{
|
|
|
lable: "UP82",
|
|
@@ -285,6 +291,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
value: "XS_FDC",
|
|
|
+ label: "香山风电场",
|
|
|
station: [
|
|
|
{
|
|
|
lable: "UP97",
|
|
@@ -313,6 +320,19 @@ export default {
|
|
|
this.getType();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getfaultLables() {
|
|
|
+ let that = this;
|
|
|
+ this.API.requestData({
|
|
|
+ method: "GET",
|
|
|
+ subUrl: "http://192.168.1.18:9002/know/fault/type/all",
|
|
|
+ success(res) {
|
|
|
+ if (res) {
|
|
|
+ console.log(444444444);
|
|
|
+ that.faultLists = res.data;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
getType() {
|
|
|
let that = this;
|
|
|
this.API.requestData({
|
|
@@ -372,16 +392,22 @@ export default {
|
|
|
},
|
|
|
success(res) {
|
|
|
if (res) {
|
|
|
+ console.log(333333333);
|
|
|
that.allData = res.data;
|
|
|
res.data.forEach((item) => {
|
|
|
let array = that.dataList.filter(
|
|
|
(val) => val.code === item.faultcode
|
|
|
);
|
|
|
+ item.stationcn = that.options.filter(
|
|
|
+ (items) => items.value === item.stationen
|
|
|
+ )[0]?.label;
|
|
|
if (array.length > 0) {
|
|
|
array[0].children.push(item);
|
|
|
} else {
|
|
|
let obj = {
|
|
|
- name: item.faulttype,
|
|
|
+ name: that.faultLists.filter(
|
|
|
+ (items) => items.faultcode === item.faultcode
|
|
|
+ )[0]?.faulttype,
|
|
|
code: item.faultcode,
|
|
|
children: [],
|
|
|
};
|