@@ -17,6 +17,7 @@ import Echart from '@/common/echart'
export default {
data () {
return {
+ timing : null,
options:{
tooltip: {
trigger: 'axis',
@@ -165,9 +166,12 @@ export default {
this.getdata();
this.refreshdata();
},
+ beforeDestroy () {
+ clearInterval(this.timing)
+ },
methods: {
refreshdata() {
- setInterval(() => {
+ this.timing = setInterval(() => {
this.getdata(); //获取-数据
}, 30000);
@@ -97,7 +97,12 @@ export default {
if (sessionStorage.getItem('li_code') == '所有'){
caller2 = 'RadiusBadDuty!ZZ!ALL';
}
- await this.$http.get("kanban/datalist.action?caller="+caller2+"&_noc=1&page=1&pageSize=100&condition=1=1")
+ await this.$http.get("kanban/datalist.action?caller="+caller2+"&_noc=1&page=1&pageSize=100"
+ ,{
+ params: {
+ condition: "1=1",
+ }
+ })
.then((result)=>{
let dataList = JSON.parse(result.data.data);
let radarData = new Array();
@@ -10,6 +10,7 @@ import { formatDate } from '../../../../utils/index.js';
+ intervalId :null,
cdata: {
xData:[],// ["data1", "data2", "data3", "data4", "data5", "data6"],
seriesData:[] /* [
@@ -38,7 +39,7 @@ export default {
+ this.intervalId =setInterval(() => {
@@ -9,6 +9,7 @@ import Chart from './chart.vue';
indicatorData :[],
dataRadius : []
@@ -54,10 +55,13 @@ export default {
mounted () {
this.drawTimingFn();
drawTimingFn () {
this.setData();
this.setData(); //获取-数据
@@ -19,6 +19,7 @@ import Echart from '@/common/echart'
@@ -167,9 +168,12 @@ export default {
@@ -94,11 +94,15 @@ export default {
);
//雷达图:
- var caller2 = 'RadiusBadDuty';
+ var caller2 = 'DPL!RadiusBadDuty';
- caller2 = 'RadiusBadDuty!ALL';
+ caller2 = 'DPL!RadiusBadDuty!ALL';
+ await this.$http.get("kanban/datalist.action?caller="+caller2+"&_noc=1&page=1&pageSize=100",{
+ this.intervalId = setInterval(() => {
+ timing :null,
@@ -98,8 +98,12 @@ export default {
caller2 = 'RadiusBadDuty!ALL';
- .then((result)=>{
+ await this.$http.get("kanban/datalist.action?caller="+caller2+"&_noc=1&page=1&pageSize=100",
+ {
+ }) .then((result)=>{
let radarAvgData = new Array();
@@ -11,6 +11,7 @@ export default {
{ value: 10, name: "data1" },
+ timing: null,
@@ -171,9 +172,12 @@ export default {
@@ -16,6 +16,7 @@ import Echart from '@/common/echart'
@@ -119,9 +120,12 @@ export default {
@@ -21,10 +22,13 @@ export default {
}, 10000);
@@ -15,6 +15,7 @@ import Echart from '@/common/echart'
series: [
{
@@ -218,9 +219,12 @@ export default {
@@ -11,6 +11,7 @@ import {formatDate} from "../../../../utils/index.js";
xData:[],
seriesData:[]
@@ -25,14 +26,14 @@ export default {
beforeDestroy () {
- clearInterval(this.intervalId);
+ clearInterval(this.timing);
this.chart.dispose()
this.chart.clear()
this.chart=null
@@ -34,16 +34,20 @@ export default {
index: true,
columnWidth: [50,130],
align: ['center']
- }
+ timing : null
mounted() {
this.refreshdata()
this.getdata(); //获取--数据
@@ -37,16 +37,20 @@ export default {
data() {
titleItem:[],
+ timing :null
components: { centerRight2Chart1 },
this.settestdata(); //获取数据
this.settestdata(); //获取-主题词
@@ -31,12 +31,16 @@ export default {
evenRowBGC: '#171c33', //偶数行
columnWidth: [110,100,100,80,90,100,90],
@@ -50,7 +54,7 @@ export default {
console.error(result)
});*/
@@ -45,18 +45,21 @@ export default {
- ]
+ ],
components: { CenterChart },
-
@@ -97,7 +97,8 @@ export default {
components: {
@@ -106,11 +107,13 @@ export default {
columnWidth: [150,90,100,80,90,90,90],
+ timing:null,
@@ -58,16 +58,20 @@
columnWidth: [200,170,170,200,170,100],
@@ -42,16 +42,20 @@ export default {
rowNum:7,
columnWidth: [120,180,350,180,100,140,130,100,220,220,120],
@@ -52,16 +52,20 @@
columnWidth: [200,90,280,150],
align: ['center','center','center','center']
@@ -42,16 +42,20 @@
components: { Up2Chart },
@@ -29,6 +29,7 @@
@@ -37,11 +38,13 @@