|
@@ -413,6 +413,8 @@ let app = new Vue({
|
|
beforeCreate() {
|
|
beforeCreate() {
|
|
// 跳转地址
|
|
// 跳转地址
|
|
let AddUrl = location.protocol + "//" + location.host + "/ierp"
|
|
let AddUrl = location.protocol + "//" + location.host + "/ierp"
|
|
|
|
+ // return
|
|
|
|
+
|
|
if (!window.location.search) {
|
|
if (!window.location.search) {
|
|
// alert("链接已失效,请重新打开")
|
|
// alert("链接已失效,请重新打开")
|
|
window.location.href = AddUrl
|
|
window.location.href = AddUrl
|
|
@@ -439,7 +441,7 @@ let app = new Vue({
|
|
console.log(diff);
|
|
console.log(diff);
|
|
console.log(diffInSeconds);
|
|
console.log(diffInSeconds);
|
|
console.log(effective);
|
|
console.log(effective);
|
|
-
|
|
|
|
|
|
+ debugger
|
|
if (!authorityType) {
|
|
if (!authorityType) {
|
|
if (!effective) {
|
|
if (!effective) {
|
|
console.log("链接已失效,请重新打开");
|
|
console.log("链接已失效,请重新打开");
|
|
@@ -1024,10 +1026,8 @@ let app = new Vue({
|
|
chat.setOption(option)
|
|
chat.setOption(option)
|
|
},
|
|
},
|
|
initLineRight(el, data, type) {
|
|
initLineRight(el, data, type) {
|
|
|
|
+ console.log(data);
|
|
let that = this;
|
|
let that = this;
|
|
- // if(myChart){
|
|
|
|
- // myChart.dispose()
|
|
|
|
- // }
|
|
|
|
let myChart
|
|
let myChart
|
|
if (type) {
|
|
if (type) {
|
|
if (that[type]) {
|
|
if (that[type]) {
|
|
@@ -1206,12 +1206,12 @@ let app = new Vue({
|
|
}
|
|
}
|
|
if (params.value >= 10) {
|
|
if (params.value >= 10) {
|
|
if (((params.value / total) * 100).toFixed(0) < 10) {
|
|
if (((params.value / total) * 100).toFixed(0) < 10) {
|
|
- text = `${(" " + params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
|
|
|
|
|
|
+ text = `${(" " + params.value)}人 | ${data.point}`;
|
|
} else {
|
|
} else {
|
|
- text = `${(params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
|
|
|
|
|
|
+ text = `${(params.value)}人 | ${data.point}`;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- text = `${(" " + params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
|
|
|
|
|
|
+ text = `${(" " + params.value)}人 | ${data.point}`;
|
|
}
|
|
}
|
|
return text;
|
|
return text;
|
|
},
|
|
},
|
|
@@ -2757,13 +2757,16 @@ let app = new Vue({
|
|
// dataList.forEach(item => {
|
|
// dataList.forEach(item => {
|
|
// total = total + item.value
|
|
// total = total + item.value
|
|
// })
|
|
// })
|
|
- that.rightData.push(...dataList)
|
|
|
|
|
|
+ // that.rightData.push(...dataList)
|
|
res.data.forEach((item, index) => {
|
|
res.data.forEach((item, index) => {
|
|
|
|
+ let obj = {}
|
|
item.forEach(i => {
|
|
item.forEach(i => {
|
|
- let obj = {}
|
|
|
|
if (i.key == "不通过原因") {
|
|
if (i.key == "不通过原因") {
|
|
that.leftErrorList[index] = i.value
|
|
that.leftErrorList[index] = i.value
|
|
}
|
|
}
|
|
|
|
+ if (i.key == "百分比") {
|
|
|
|
+ obj.point = i.value
|
|
|
|
+ }
|
|
if (i.key == "不通过数量") {
|
|
if (i.key == "不通过数量") {
|
|
obj.value = i.value
|
|
obj.value = i.value
|
|
dataList[index] = obj
|
|
dataList[index] = obj
|
|
@@ -2771,18 +2774,12 @@ let app = new Vue({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- // for (const child of echartsErrorBox.children) {
|
|
|
|
- // console.log(child);
|
|
|
|
- // // let title = "lineRight" + (i + 1)
|
|
|
|
- // that.initLineRight(child.children[1], { value: dataList[i].value, total })
|
|
|
|
- // // that.initLineRight(child.children[1], { value: dataList[i].value, total }, title)
|
|
|
|
- // }
|
|
|
|
let echartsErrorBox = that.$refs.echartsErrorBox
|
|
let echartsErrorBox = that.$refs.echartsErrorBox
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
for (const child of echartsErrorBox.children) {
|
|
for (const child of echartsErrorBox.children) {
|
|
const index = Array.prototype.indexOf.call(echartsErrorBox.children, child);
|
|
const index = Array.prototype.indexOf.call(echartsErrorBox.children, child);
|
|
let title = "lineRight" + (index + 1)
|
|
let title = "lineRight" + (index + 1)
|
|
- that.initLineRight(child.children[1], { value: dataList[index].value, total }, title)
|
|
|
|
|
|
+ that.initLineRight(child.children[1], { value: dataList[index].value, point: dataList[index].point, total }, title)
|
|
}
|
|
}
|
|
}, 10)
|
|
}, 10)
|
|
|
|
|
|
@@ -2933,32 +2930,38 @@ let app = new Vue({
|
|
},
|
|
},
|
|
scrollChangeList(index) {
|
|
scrollChangeList(index) {
|
|
let that = this;
|
|
let that = this;
|
|
- that.noticTime && clearInterval(that.noticTime)
|
|
|
|
- setTimeout(() => {
|
|
|
|
- if (index + 5 == that.employmentList1.data.length) {
|
|
|
|
- that.isListEnd = that.isListEnd + 1
|
|
|
|
- if (that.isListEnd == 2) {
|
|
|
|
- that.isListEnd = 0
|
|
|
|
- that.isShowList = false
|
|
|
|
|
|
+ if (that.noticList.length != 1) {
|
|
|
|
+ if (index + that.employmentList1.rowNum == that.employmentList1.data.length + 1) {
|
|
|
|
+ if (that.noticIndex >= that.noticList.length - 1) {
|
|
|
|
+ that.noticIndex = 0
|
|
|
|
+ } else {
|
|
|
|
+ that.noticIndex += 1
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (that.noticList[that.noticIndex]) {
|
|
|
|
+
|
|
that.employmentList1.data = []
|
|
that.employmentList1.data = []
|
|
that.employmentList2.data = []
|
|
that.employmentList2.data = []
|
|
- that.noticeIndex = that.noticeIndex + 1
|
|
|
|
- if (that.noticeIndex > that.noticeList.length - 1) {
|
|
|
|
- that.noticeIndex = 0
|
|
|
|
|
|
+ that.employmentList3.data = []
|
|
|
|
+ that.isShowList = false
|
|
|
|
+ that.noticList[that.noticIndex].noticeUserList.forEach((item, index) => {
|
|
|
|
+ if (index % 2 == 0) {
|
|
|
|
+ that.employmentList1.data.push(item)
|
|
|
|
+ } else {
|
|
|
|
+ that.employmentList2.data.push(item)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ that.employmentList3.data.push(...that.noticList[that.noticIndex].noticeUserList)
|
|
|
|
+ if (that.employmentList1.rowNum >= that.employmentList1.data.length) {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ that.scrollChangeList(0)
|
|
|
|
+ }, 10000)
|
|
}
|
|
}
|
|
- // that.getNoticePerson("李四是五")
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
that.isShowList = true
|
|
that.isShowList = true
|
|
}, 10)
|
|
}, 10)
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }, 1700)
|
|
|
|
- if (index == 0) {
|
|
|
|
- console.log("index == 0");
|
|
|
|
- }
|
|
|
|
- if (index == that.employmentList1.data.length - 1) {
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
changeCardNo(str) {
|
|
changeCardNo(str) {
|
|
@@ -2984,10 +2987,14 @@ let app = new Vue({
|
|
if (Array.isArray(arr)) {
|
|
if (Array.isArray(arr)) {
|
|
arr.forEach((item, index) => {
|
|
arr.forEach((item, index) => {
|
|
let a = []
|
|
let a = []
|
|
|
|
+ if (Array.isArray(item)) {
|
|
|
|
+ list.push(a)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (index <= 8) {
|
|
if (index <= 8) {
|
|
- a = ["0" + (index + 1), item.name, item.sex, that.changeCardNo(item.cardno), item.org1]
|
|
|
|
|
|
+ a = ["0" + (index + 1), item.name, item.sex, item.cardno, item.org1]
|
|
} else {
|
|
} else {
|
|
- a = [(index + 1).toString(), item.name, item.sex, that.changeCardNo(item.cardno), item.org1]
|
|
|
|
|
|
+ a = [(index + 1).toString(), item.name, item.sex, item.cardno, item.org1]
|
|
}
|
|
}
|
|
list.push(a)
|
|
list.push(a)
|
|
})
|
|
})
|
|
@@ -3000,35 +3007,38 @@ let app = new Vue({
|
|
flag: that.dataFlag
|
|
flag: that.dataFlag
|
|
};
|
|
};
|
|
this.isShowList = false
|
|
this.isShowList = false
|
|
-
|
|
|
|
|
|
+ that.noticIndex = 0
|
|
that.employmentList1.data = []
|
|
that.employmentList1.data = []
|
|
that.employmentList2.data = []
|
|
that.employmentList2.data = []
|
|
that.employmentList3.data = []
|
|
that.employmentList3.data = []
|
|
|
|
|
|
- that.noticIndex = 0
|
|
|
|
that.noticList = []
|
|
that.noticList = []
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/getNotice", data).then(res => {
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/getNotice", data).then(res => {
|
|
if (res && res.length != 0) {
|
|
if (res && res.length != 0) {
|
|
|
|
+
|
|
res.forEach((item, index) => {
|
|
res.forEach((item, index) => {
|
|
|
|
+ if (item.noticeUserList.length % 2 != 0) {
|
|
|
|
+ item.noticeUserList.push([])
|
|
|
|
+ }
|
|
let obj = {
|
|
let obj = {
|
|
noticeDataList: item.noticeDataList,
|
|
noticeDataList: item.noticeDataList,
|
|
noticeUserList: that.changeNoticList(item.noticeUserList)
|
|
noticeUserList: that.changeNoticList(item.noticeUserList)
|
|
}
|
|
}
|
|
that.noticList.push(obj)
|
|
that.noticList.push(obj)
|
|
})
|
|
})
|
|
- // if (that.noticList[that.noticIndex]) {
|
|
|
|
- that.noticList[that.noticIndex].noticeUserList.forEach((item, index) => {
|
|
|
|
- if (index % 2 == 0) {
|
|
|
|
- that.employmentList1.data.push(item)
|
|
|
|
- } else {
|
|
|
|
- that.employmentList2.data.push(item)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- that.employmentList3.data.push(...that.noticList[that.noticIndex].noticeUserList)
|
|
|
|
|
|
+ if (that.noticList[that.noticIndex]) {
|
|
|
|
+ that.noticList[that.noticIndex].noticeUserList.forEach((item, index) => {
|
|
|
|
+ if (index % 2 == 0) {
|
|
|
|
+ that.employmentList1.data.push(item)
|
|
|
|
+ } else {
|
|
|
|
+ that.employmentList2.data.push(item)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ that.employmentList3.data.push(...that.noticList[that.noticIndex].noticeUserList)
|
|
|
|
|
|
- // }
|
|
|
|
|
|
+ }
|
|
if (res.length != 1) {
|
|
if (res.length != 1) {
|
|
- that.noticIndex += 1
|
|
|
|
|
|
+ // that.noticIndex += 1
|
|
|
|
|
|
if (that.employmentList2.data.length <= that.employmentList2.rowNum) {
|
|
if (that.employmentList2.data.length <= that.employmentList2.rowNum) {
|
|
that.noticTime = setInterval(() => {
|
|
that.noticTime = setInterval(() => {
|
|
@@ -3038,22 +3048,22 @@ let app = new Vue({
|
|
|
|
|
|
|
|
|
|
that.isShowList = false
|
|
that.isShowList = false
|
|
- // if(that.noticList[that.noticIndex]){
|
|
|
|
- that.noticList[that.noticIndex].noticeUserList.forEach((item, index) => {
|
|
|
|
- if (index % 2 == 0) {
|
|
|
|
- that.employmentList1.data.push(item)
|
|
|
|
- } else {
|
|
|
|
- that.employmentList2.data.push(item)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- that.employmentList3.data.push(...that.noticList[that.noticIndex].noticeUserList)
|
|
|
|
- // }
|
|
|
|
|
|
+ if (that.noticList[that.noticIndex]) {
|
|
|
|
+ that.noticList[that.noticIndex].noticeUserList.forEach((item, index) => {
|
|
|
|
+ if (index % 2 == 0) {
|
|
|
|
+ that.employmentList1.data.push(item)
|
|
|
|
+ } else {
|
|
|
|
+ that.employmentList2.data.push(item)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ that.employmentList3.data.push(...that.noticList[that.noticIndex].noticeUserList)
|
|
|
|
+ }
|
|
|
|
|
|
- that.noticIndex += 1
|
|
|
|
|
|
+ // that.noticIndex += 1
|
|
|
|
|
|
- if (that.noticIndex > that.noticList.length - 1) {
|
|
|
|
- that.noticIndex = 0
|
|
|
|
- }
|
|
|
|
|
|
+ // if (that.noticIndex > that.noticList.length - 1) {
|
|
|
|
+ // that.noticIndex = 0
|
|
|
|
+ // }
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
that.isShowList = true
|
|
that.isShowList = true
|
|
}, 10)
|
|
}, 10)
|