|
@@ -505,7 +505,9 @@ let app = new Vue({
|
|
|
|
|
|
setTypeFlag: null,
|
|
setTypeFlag: null,
|
|
|
|
|
|
- gtTotle: 90
|
|
|
|
|
|
+ gtTotle: 90,
|
|
|
|
+ userColor: false,
|
|
|
|
+ monthColor: false,
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -534,7 +536,7 @@ let app = new Vue({
|
|
|
|
|
|
var diffInSeconds = Math.floor(diff / 1000); // 将差值转换为秒数
|
|
var diffInSeconds = Math.floor(diff / 1000); // 将差值转换为秒数
|
|
|
|
|
|
- let effective = diffInSeconds <= 30; // 判断差值是否在30秒以内
|
|
|
|
|
|
+ let effective = diffInSeconds <= 300; // 判断差值是否在30秒以内
|
|
|
|
|
|
console.log(diff);
|
|
console.log(diff);
|
|
console.log(diffInSeconds);
|
|
console.log(diffInSeconds);
|
|
@@ -683,7 +685,7 @@ let app = new Vue({
|
|
this.getAccumulatedLogin()
|
|
this.getAccumulatedLogin()
|
|
this.getMauInfo()
|
|
this.getMauInfo()
|
|
console.log("数据更新每五分钟一次");
|
|
console.log("数据更新每五分钟一次");
|
|
- }, 60000 * 5)
|
|
|
|
|
|
+ }, 10000)
|
|
|
|
|
|
if (this.isShowRequest) {
|
|
if (this.isShowRequest) {
|
|
this.requestFunction()
|
|
this.requestFunction()
|
|
@@ -1333,9 +1335,9 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
});
|
|
});
|
|
- window.addEventListener("resize", function () {
|
|
|
|
- chart.resize();
|
|
|
|
- });
|
|
|
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
|
+ // chart.resize();
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
initOrganizationElse(el, title = "", data = { x: ["集团本部", "山焦财务", "山焦担保", "山焦股份", "山焦国华", "山焦机电", "山焦人力", "山焦民爆", "山焦事业", "山焦投资"], y: [0, 680, 562, 268, 717, 843, 987, 126, 723, 569] }, unit = "") {
|
|
initOrganizationElse(el, title = "", data = { x: ["集团本部", "山焦财务", "山焦担保", "山焦股份", "山焦国华", "山焦机电", "山焦人力", "山焦民爆", "山焦事业", "山焦投资"], y: [0, 680, 562, 268, 717, 843, 987, 126, 723, 569] }, unit = "") {
|
|
if (this.industryEcharts != null) {
|
|
if (this.industryEcharts != null) {
|
|
@@ -3202,9 +3204,9 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
});
|
|
});
|
|
- window.addEventListener("resize", function () {
|
|
|
|
- this.workEcharts.resize();
|
|
|
|
- });
|
|
|
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
|
+ // this.workEcharts.resize();
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
initBarChartsElse(el, data, name, lineInfo) {
|
|
initBarChartsElse(el, data, name, lineInfo) {
|
|
this.efficiency = echarts.init(el);
|
|
this.efficiency = echarts.init(el);
|
|
@@ -3411,9 +3413,9 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
});
|
|
});
|
|
- window.addEventListener("resize", function () {
|
|
|
|
- this.efficiency.resize();
|
|
|
|
- });
|
|
|
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
|
+ // this.efficiency.resize();
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
initBarEcharts(el, data, nameList) {
|
|
initBarEcharts(el, data, nameList) {
|
|
let chart = echarts.init(el);
|
|
let chart = echarts.init(el);
|
|
@@ -3607,9 +3609,9 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
});
|
|
});
|
|
- window.addEventListener("resize", function () {
|
|
|
|
- chart.resize();
|
|
|
|
- });
|
|
|
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
|
+ // chart.resize();
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
initBarEchartsElse(el, data, nameList) {
|
|
initBarEchartsElse(el, data, nameList) {
|
|
let chart = echarts.init(el);
|
|
let chart = echarts.init(el);
|
|
@@ -3814,9 +3816,9 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
});
|
|
});
|
|
- window.addEventListener("resize", function () {
|
|
|
|
- chart.resize();
|
|
|
|
- });
|
|
|
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
|
+ // chart.resize();
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
initBarEchartsElseJM(el, data, nameList) {
|
|
initBarEchartsElseJM(el, data, nameList) {
|
|
let chart = echarts.init(el);
|
|
let chart = echarts.init(el);
|
|
@@ -4022,9 +4024,9 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
});
|
|
});
|
|
- window.addEventListener("resize", function () {
|
|
|
|
- chart.resize();
|
|
|
|
- });
|
|
|
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
|
+ // chart.resize();
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
initStereoscopic(el, data) {
|
|
initStereoscopic(el, data) {
|
|
this.stereoscopic = echarts.init(el);
|
|
this.stereoscopic = echarts.init(el);
|
|
@@ -4280,9 +4282,9 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
});
|
|
});
|
|
- window.addEventListener("resize", function () {
|
|
|
|
- chart.resize();
|
|
|
|
- });
|
|
|
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
|
+ // chart.resize();
|
|
|
|
+ // });
|
|
|
|
|
|
},
|
|
},
|
|
initProvinceChart(el, mapData = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) {
|
|
initProvinceChart(el, mapData = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) {
|
|
@@ -5357,9 +5359,9 @@ let app = new Vue({
|
|
nterval: 2000,
|
|
nterval: 2000,
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
});
|
|
});
|
|
- window.addEventListener("resize", function () {
|
|
|
|
- this.mobilizeFL.resize();
|
|
|
|
- });
|
|
|
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
|
+ // this.mobilizeFL.resize();
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
initDownholeEcharts(el, data, type) {
|
|
initDownholeEcharts(el, data, type) {
|
|
this.downhole = echarts.init(el);
|
|
this.downhole = echarts.init(el);
|
|
@@ -5613,10 +5615,9 @@ let app = new Vue({
|
|
this.achievementIndex = 0
|
|
this.achievementIndex = 0
|
|
},
|
|
},
|
|
handleStudio(item, index) {
|
|
handleStudio(item, index) {
|
|
- if (index != 0) {
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ // if (index != 0) {
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
let that = this;
|
|
let that = this;
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
that.listFlag = true
|
|
that.listFlag = true
|
|
@@ -5759,8 +5760,14 @@ let app = new Vue({
|
|
flag: that.dataFlag
|
|
flag: that.dataFlag
|
|
}
|
|
}
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/AccumulatedLogin", data).then(res => {
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/AccumulatedLogin", data).then(res => {
|
|
- that.loginInfo.num = res.accumulatedLogin
|
|
|
|
- that.loginInfo.unit = res.unit
|
|
|
|
|
|
+ if(that.loginInfo.num != res.accumulatedLogin){
|
|
|
|
+ that.loginInfo.num = res.accumulatedLogin
|
|
|
|
+ that.loginInfo.unit = res.unit
|
|
|
|
+ that.userColor = true
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ that.userColor = !that.userColor
|
|
|
|
+ },2000)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getMauInfo() {
|
|
getMauInfo() {
|
|
@@ -5770,8 +5777,14 @@ let app = new Vue({
|
|
}
|
|
}
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/MAU", data).then(res => {
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/MAU", data).then(res => {
|
|
if (res) {
|
|
if (res) {
|
|
- that.mauInfo.mau = res.mau
|
|
|
|
- that.mauInfo.unit = res.unit
|
|
|
|
|
|
+ if(that.mauInfo.mau != res.mau){
|
|
|
|
+ that.mauInfo.mau = res.mau
|
|
|
|
+ that.mauInfo.unit = res.unit
|
|
|
|
+ that.monthColor = true
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ that.monthColor = !that.monthColor
|
|
|
|
+ },2000)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -6269,7 +6282,8 @@ let app = new Vue({
|
|
that.optimize[1].value = item.value
|
|
that.optimize[1].value = item.value
|
|
}
|
|
}
|
|
if (item.key == "优化率") {
|
|
if (item.key == "优化率") {
|
|
- that.optimizeValue = item.value * 100
|
|
|
|
|
|
+ console.log((item.value * 100));
|
|
|
|
+ that.optimizeValue = (item.value * 100).toFixed(2);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|