| | |
| | | "rgb(255, 124, 31)", |
| | | "rgb(165, 96, 255)" |
| | | ], |
| | | tooltip: { |
| | | trigger: "item", |
| | | formatter: "{b} {d}%" //只要百分比 |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "Nightingale Chart", |
| | |
| | | }, |
| | | label: { |
| | | show: false |
| | | //formatter: '{b} : {c} ({d}%)' //带当前图例名 + 百分比 |
| | | }, |
| | | |
| | | data: [] |
| | | } |
| | | ] |
| | |
| | | if (rsp && rsp.success) { |
| | | this.decodeWarningRate(rsp.data.warningRate) |
| | | this.decodeWarningChartRate(rsp.data.warningChartRate) |
| | | this.decodeWarningStatics(rsp.data.warningTable) |
| | | this.decodeWarningTable(rsp.data.warningStatics) |
| | | this.decodeWarningStatics(rsp.data.warningStatics) |
| | | this.decodeWarningTable(rsp.data.warningTable) |
| | | } |
| | | }) |
| | | }, |
| | | decodeWarningTable(b64data) { |
| | | // 整改列表 |
| | | decodeWarningStatics(b64data) { |
| | | this.solvedTotal = 0 |
| | | this.tableDataList = [] |
| | | if (b64data) { |
| | | let decodeString = Base64.decode(b64data) |
| | | if (decodeString != "") { |
| | | let decodeResult = JSON.parse(decodeString) |
| | | decodeResult = [] |
| | | if (decodeResult) { |
| | | // console.log("decodeResult", decodeResult) |
| | | console.log("warningStatics", decodeResult) |
| | | decodeResult.forEach((element) => { |
| | | this.solvedTotal = this.solvedTotal + element.doc_count |
| | | this.tableDataList.push({ date: element.key_as_string, count: element.doc_count }) |
| | |
| | | } |
| | | }, |
| | | // 折线图 |
| | | decodeWarningStatics(b64data) { |
| | | decodeWarningTable(b64data) { |
| | | this.lineChart.clear() |
| | | this.barOption.xAxis.data = [] |
| | | this.barOption.series[0].data = [] |