|
@@ -155,7 +155,8 @@ let app = new Vue({
|
|
|
},
|
|
|
configMark: {
|
|
|
waitTime: 2000,
|
|
|
- header: ["单位名称", "人员数量", "月份", "预警项"],
|
|
|
+ // header: ["单位名称", "人员数量", "月份", "预警项"],
|
|
|
+ header: ["单位名称", "月份", "人员数量", "预警项"],
|
|
|
rowNum: 6,
|
|
|
data: [
|
|
|
["<span class='red'>西山煤电</span>", "<span class='red'>71</span>", "<span class='red'>7月</span>", "<span class='red'>薪资低于4000元</span>"],
|
|
@@ -504,32 +505,35 @@ let app = new Vue({
|
|
|
|
|
|
setTypeFlag: null,
|
|
|
|
|
|
+ gtTotle: 90
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
beforeCreate() {
|
|
|
// 跳转地址
|
|
|
- let AddUrl = location.protocol + "//" + location.host + "/ierp"
|
|
|
- if(!window.location.search){
|
|
|
+ let AddUrl = location.protocol + "//" + location.host + "/ierp"
|
|
|
+ return
|
|
|
+ if (!window.location.search) {
|
|
|
// alert("链接已失效,请重新打开")
|
|
|
window.location.href = AddUrl
|
|
|
}
|
|
|
let arr = window.location.search.split("&")
|
|
|
let dataList = []
|
|
|
- arr.forEach(item=>{
|
|
|
+ arr.forEach(item => {
|
|
|
dataList.push(item.split("=")[1])
|
|
|
})
|
|
|
window.user = dataList[0]
|
|
|
let newDate = new Date().getTime()
|
|
|
let authorityType = window.sessionStorage.getItem("authorityType") || false
|
|
|
- if(!authorityType){
|
|
|
- if(newDate - dataList[1] > 30000){
|
|
|
+ if (!authorityType) {
|
|
|
+ if (newDate - dataList[1] > 30000) {
|
|
|
// alert("链接已失效,请重新打开")
|
|
|
window.location.href = AddUrl
|
|
|
}
|
|
|
window.sessionStorage.setItem("authorityType", true)
|
|
|
}
|
|
|
},
|
|
|
- beforeDestroy(){
|
|
|
+ beforeDestroy() {
|
|
|
window.sessionStorage.removeItem("authorityType")
|
|
|
},
|
|
|
watch: {
|
|
@@ -4774,14 +4778,14 @@ let app = new Vue({
|
|
|
},
|
|
|
initEchartsBar(el, data, color) {
|
|
|
this.studentEcharts = echarts.init(el);
|
|
|
- if(Array.isArray(data.x)){
|
|
|
+ if (Array.isArray(data.x)) {
|
|
|
data.x.forEach(item => {
|
|
|
item = item.slice(0, -2)
|
|
|
})
|
|
|
} else {
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
let xLabel = data.x
|
|
|
option = {
|
|
|
grid: {
|
|
@@ -6030,7 +6034,7 @@ let app = new Vue({
|
|
|
that.optimize[1].value = item.value
|
|
|
}
|
|
|
if (item.key == "优化率") {
|
|
|
- that.optimizeValue = item.value
|
|
|
+ that.optimizeValue = item.value * 100
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -6547,11 +6551,20 @@ let app = new Vue({
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/getCalSalary1", data).then(res => {
|
|
|
if (res) {
|
|
|
salaryList = res
|
|
|
+ that.gtTotle = res.total
|
|
|
+ if (salaryList.x.length < 6) {
|
|
|
+ that.initLineElseEchartsR(echarts90, { x: salaryList.x, y: salaryList.y })
|
|
|
+ that.time4 && clearInterval(that.time4);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ that.sx = spArr(salaryList.x, 6)
|
|
|
+ that.sy = spArr(salaryList.y, 6)
|
|
|
+ that.initLineElseEchartsR(echarts90, { x: that.sx[0], y: that.sy[0] })
|
|
|
+ that.time4 && clearInterval(that.time4);
|
|
|
+ that.timeSy()
|
|
|
}
|
|
|
- that.sx = spArr(salaryList.x, 6)
|
|
|
- that.sy = spArr(salaryList.y, 6)
|
|
|
|
|
|
- that.initLineElseEchartsR(echarts90, { x: that.sx[0], y: that.sy[0] })
|
|
|
+
|
|
|
|
|
|
})
|
|
|
},
|