|
|
@@ -3,7 +3,7 @@ let app = new Vue({
|
|
|
el: "#app",
|
|
|
data() {
|
|
|
return {
|
|
|
- title: "内部人才市场双选服务平台",
|
|
|
+ title: "人才中心双选服务平台",
|
|
|
treeList: [{
|
|
|
name: "岗位发布",
|
|
|
flag: true,
|
|
|
@@ -323,13 +323,13 @@ let app = new Vue({
|
|
|
flag: true,
|
|
|
num1: 100,
|
|
|
num2: 60,
|
|
|
- num3: 60,
|
|
|
+ num3: "60%",
|
|
|
}, {
|
|
|
name: "累计数",
|
|
|
flag: false,
|
|
|
num1: 500,
|
|
|
num2: 400,
|
|
|
- num3: 80,
|
|
|
+ num3: "80%",
|
|
|
}],
|
|
|
rightIndex: 0,
|
|
|
leftList: [{
|
|
|
@@ -356,6 +356,7 @@ let app = new Vue({
|
|
|
imageFlag: false,
|
|
|
pageFlag: true,
|
|
|
hecharts: null,
|
|
|
+ leftErrorList: ["信息不完整", "信息有误", "任职条件不符", "出勤不足", "工作年限不符"]
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -397,15 +398,15 @@ let app = new Vue({
|
|
|
|
|
|
|
|
|
let rightOne = this.$refs.rightOne
|
|
|
- this.initLineRight(rightOne, { value: 53, total: 125 })
|
|
|
+ this.initLineRight(rightOne, { value: 520, total: 1250 })
|
|
|
let rightTwo = this.$refs.rightTwo
|
|
|
- this.initLineRight(rightTwo, { value: 29, total: 125 })
|
|
|
+ this.initLineRight(rightTwo, { value: 290, total: 1250 })
|
|
|
let rightThree = this.$refs.rightThree
|
|
|
- this.initLineRight(rightThree, { value: 25, total: 125 })
|
|
|
+ this.initLineRight(rightThree, { value: 250, total: 1250 })
|
|
|
let rightFour = this.$refs.rightFour
|
|
|
- this.initLineRight(rightFour, { value: 12, total: 125 })
|
|
|
+ this.initLineRight(rightFour, { value: 120, total: 1250 })
|
|
|
let rightFive = this.$refs.rightFive
|
|
|
- this.initLineRight(rightFive, { value: 6, total: 125 })
|
|
|
+ this.initLineRight(rightFive, { value: 60, total: 1250 })
|
|
|
// let c1 = this.$refs.c1
|
|
|
// this.initRightCycle(c1, 40)
|
|
|
// let c2 = this.$refs.c2
|
|
|
@@ -491,17 +492,20 @@ let app = new Vue({
|
|
|
// that.arrToListArr()
|
|
|
// that.getDelivcvAndApply()
|
|
|
// that.getreviewarrange()
|
|
|
+ // that.getRecruitType()
|
|
|
+ // that.getFailReason()
|
|
|
+ // that.getQualAudits()
|
|
|
|
|
|
// })
|
|
|
// }).catch(err => {
|
|
|
- this.isChangeList = true
|
|
|
+ this.isChangeList = true
|
|
|
|
|
|
- let pageBtm = this.$refs.pageBtm
|
|
|
- this.initDownholeEcharts(pageBtm, { x: admissionList.x, y1: admissionList.y1, y2: admissionList.y2, y3: admissionList.y3 })
|
|
|
+ let pageBtm = this.$refs.pageBtm
|
|
|
+ this.initDownholeEcharts(pageBtm, { x: admissionList.x, y1: admissionList.y1, y2: admissionList.y2, y3: admissionList.y3 })
|
|
|
|
|
|
- let vita = this.$refs.vita
|
|
|
- that.initVitaEcharts(vita)
|
|
|
- // that.getPostDetail()
|
|
|
+ let vita = this.$refs.vita
|
|
|
+ that.initVitaEcharts(vita)
|
|
|
+ that.getPostDetail()
|
|
|
// })
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -952,7 +956,11 @@ let app = new Vue({
|
|
|
normal: {
|
|
|
formatter: (params) => {
|
|
|
var text;
|
|
|
- text = `${(params.value <= 9 ? " " + params.value : params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
|
|
|
+ if (((params.value / total) * 100).toFixed(0) < 10) {
|
|
|
+ text = `${(" " + params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
|
|
|
+ } else {
|
|
|
+ text = `${(params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
|
|
|
+ }
|
|
|
return text;
|
|
|
},
|
|
|
textStyle: {
|
|
|
@@ -1609,7 +1617,9 @@ let app = new Vue({
|
|
|
|
|
|
var dataStyle = {
|
|
|
normal: {
|
|
|
- formatter: '{c}',
|
|
|
+ formatter: function (res) {
|
|
|
+ return res.data.value
|
|
|
+ },
|
|
|
position: 'center',
|
|
|
show: true,
|
|
|
textStyle: {
|
|
|
@@ -1688,7 +1698,7 @@ let app = new Vue({
|
|
|
},
|
|
|
label: dataStyle,
|
|
|
}, {
|
|
|
- value: 4,
|
|
|
+ value: 33,
|
|
|
itemStyle: placeHolderStyle,
|
|
|
},
|
|
|
|
|
|
@@ -1725,7 +1735,7 @@ let app = new Vue({
|
|
|
},
|
|
|
label: dataStyle,
|
|
|
}, {
|
|
|
- value: 5,
|
|
|
+ value: 33,
|
|
|
itemStyle: placeHolderStyle,
|
|
|
},
|
|
|
|
|
|
@@ -1763,7 +1773,7 @@ let app = new Vue({
|
|
|
},
|
|
|
label: dataStyle,
|
|
|
}, {
|
|
|
- value: 3,
|
|
|
+ value: 33,
|
|
|
itemStyle: placeHolderStyle,
|
|
|
},
|
|
|
|
|
|
@@ -1886,10 +1896,10 @@ let app = new Vue({
|
|
|
]
|
|
|
};
|
|
|
this.roseEcharts.setOption(option)
|
|
|
- tools.loopShowTooltip(this.roseEcharts, option, {
|
|
|
- nterval: 2000,
|
|
|
- loopSeries: true,
|
|
|
- });
|
|
|
+ // tools.loopShowTooltip(this.roseEcharts, option, {
|
|
|
+ // nterval: 2000,
|
|
|
+ // loopSeries: true,
|
|
|
+ // });
|
|
|
},
|
|
|
handleClick(from, type) {
|
|
|
this.handleMark()
|
|
|
@@ -2286,7 +2296,6 @@ let app = new Vue({
|
|
|
dataList.push(["<img class='list_img' src='" + imageList[index] + "' alt=''>", item, stationList[index], timeList[index]])
|
|
|
})
|
|
|
this.configMark.data = dataList
|
|
|
- console.log(this.configMark.data);
|
|
|
this.isChangeList = true
|
|
|
delete imageList
|
|
|
delete nameList
|
|
|
@@ -2306,7 +2315,6 @@ let app = new Vue({
|
|
|
res.data.forEach(item => {
|
|
|
if (item.key == "单位名称") {
|
|
|
admissionList.x = item.value
|
|
|
- console.log(item.value);
|
|
|
}
|
|
|
if (item.key == "招聘人数") {
|
|
|
admissionList.y1 = item.value
|
|
|
@@ -2320,7 +2328,6 @@ let app = new Vue({
|
|
|
})
|
|
|
|
|
|
}
|
|
|
- console.log(admissionList);
|
|
|
this.initDownholeEcharts(pageBtm, { x: admissionList.x, y1: admissionList.y1, y2: admissionList.y2, y3: admissionList.y3 })
|
|
|
|
|
|
})
|
|
|
@@ -2328,12 +2335,182 @@ let app = new Vue({
|
|
|
getreviewarrange() {
|
|
|
let that = this;
|
|
|
let data = {
|
|
|
- flag: false
|
|
|
+ flag: true
|
|
|
};
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/getreviewarrange", data).then(res => {
|
|
|
console.log(res);
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ getRecruitType() {
|
|
|
+ let that = this;
|
|
|
+ let data = {
|
|
|
+ flag: true
|
|
|
+ }
|
|
|
+ // fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/RecruitType",data).then(res => {
|
|
|
+ // console.log(res);
|
|
|
+ // })
|
|
|
+ },
|
|
|
+ getFailReason() {
|
|
|
+ let that = this;
|
|
|
+ let data = {
|
|
|
+ flag: false
|
|
|
+ };
|
|
|
+ let res = {
|
|
|
+ data: [
|
|
|
+ [
|
|
|
+ {
|
|
|
+ value: "信息有误",
|
|
|
+ key: "不通过原因"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 5200,
|
|
|
+ key: "不通过数量"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "0.00%",
|
|
|
+ key: "百分比"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ value: "出勤不足",
|
|
|
+ key: "不通过原因"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 2900,
|
|
|
+ key: "不通过数量"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "0.00%",
|
|
|
+ key: "百分比"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ value: "工作年限不符",
|
|
|
+ key: "不通过原因"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 2500,
|
|
|
+ key: "不通过数量"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "0.00%",
|
|
|
+ key: "百分比"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ value: "信息不完整",
|
|
|
+ key: "不通过原因"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 1200,
|
|
|
+ key: "不通过数量"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "0.00%",
|
|
|
+ key: "百分比"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ value: "任职条件不符",
|
|
|
+ key: "不通过原因"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 600,
|
|
|
+ key: "不通过数量"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "0.00%",
|
|
|
+ key: "百分比"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ let dataList = []
|
|
|
+ let total = 0
|
|
|
+ res.data.forEach((item, index) => {
|
|
|
+ // that.leftErrorList[index] = item[]
|
|
|
+ item.forEach(i => {
|
|
|
+ let obj = {}
|
|
|
+ if (i.key == "不通过原因") {
|
|
|
+ that.leftErrorList[index] = i.value
|
|
|
+ }
|
|
|
+ if (i.key == "不通过数量") {
|
|
|
+ obj.value = i.value
|
|
|
+ dataList[index] = obj
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ dataList.forEach(item => {
|
|
|
+ total = total + item.value
|
|
|
+ })
|
|
|
+ // leftErrorList:["信息不完整","信息有误","任职条件不符","出勤不足","工作年限不符"]
|
|
|
+
|
|
|
+ let rightOne = this.$refs.rightOne
|
|
|
+ this.initLineRight(rightOne, { value: dataList[0].value, total })
|
|
|
+ let rightTwo = this.$refs.rightTwo
|
|
|
+ this.initLineRight(rightTwo, { value: dataList[1].value, total })
|
|
|
+ let rightThree = this.$refs.rightThree
|
|
|
+ this.initLineRight(rightThree, { value: dataList[2].value, total })
|
|
|
+ let rightFour = this.$refs.rightFour
|
|
|
+ this.initLineRight(rightFour, { value: dataList[3].value, total })
|
|
|
+ let rightFive = this.$refs.rightFive
|
|
|
+ this.initLineRight(rightFive, { value: dataList[4].value, total })
|
|
|
+ // fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/FailReason",data).then(res => {
|
|
|
+ // console.log(res);
|
|
|
+ // })
|
|
|
+ },
|
|
|
+ getQualAudits() {
|
|
|
+ let that = this;
|
|
|
+ let data = {
|
|
|
+ flag: true
|
|
|
+ };
|
|
|
+ fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/QualAudits",data).then(res => {})
|
|
|
+ let res = {
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ value: 6,
|
|
|
+ key: "当前总人数"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 1,
|
|
|
+ key: "通过总人数"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "17.00%",
|
|
|
+ key: "当前通过率"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ res.data.forEach(item => {
|
|
|
+ if(item.key == "当前总人数"){
|
|
|
+ that.rightList[0].num1 = item.value
|
|
|
+ }
|
|
|
+ if(item.key == "通过总人数"){
|
|
|
+ that.rightList[0].num2 = item.value
|
|
|
+ }
|
|
|
+ if(item.key == "当前通过率"){
|
|
|
+ that.rightList[0].num3 = item.value
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(that.rightList);
|
|
|
+ // rightList: [{
|
|
|
+ // name: "当前数",
|
|
|
+ // flag: true,
|
|
|
+ // num1: 100,
|
|
|
+ // num2: 60,
|
|
|
+ // num3: 60,
|
|
|
+ // }, {
|
|
|
+ // name: "累计数",
|
|
|
+ // flag: false,
|
|
|
+ // num1: 500,
|
|
|
+ // num2: 400,
|
|
|
+ // num3: 80,
|
|
|
+ // }],
|
|
|
+ },
|
|
|
|
|
|
},
|
|
|
|