|
|
@@ -475,9 +475,28 @@ let app = new Vue({
|
|
|
},
|
|
|
newSkillList: [],
|
|
|
dataFlag: true,
|
|
|
- isShowRequest: true,
|
|
|
+
|
|
|
+
|
|
|
+ isShowRequest: false,
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
isShowPage: true,
|
|
|
- industryEcharts: null
|
|
|
+ industryEcharts: null,
|
|
|
+ userListX: [],
|
|
|
+ userListy1: [],
|
|
|
+ userListy2: [],
|
|
|
+ userListy3: [],
|
|
|
+ userIndex: 0,
|
|
|
+ timeUserList: null,
|
|
|
+ stereoscopic: undefined,
|
|
|
+ imageUrl: "./pdf/1.png",
|
|
|
+ defeat: 0,
|
|
|
+ showChange: false,
|
|
|
+ fetchIndex: 0,
|
|
|
+ employsNums: 0,
|
|
|
+ selectTraining: 0,
|
|
|
+ technical: null,
|
|
|
}
|
|
|
},
|
|
|
beforeCreate() {
|
|
|
@@ -597,7 +616,7 @@ let app = new Vue({
|
|
|
|
|
|
|
|
|
|
|
|
- setInterval(() => {
|
|
|
+ let changeData = setInterval(() => {
|
|
|
this.getAccumulatedLogin()
|
|
|
this.getMauInfo()
|
|
|
console.log("数据更新每五分钟一次");
|
|
|
@@ -608,14 +627,37 @@ let app = new Vue({
|
|
|
|
|
|
} else {
|
|
|
this.noRequestFunction()
|
|
|
-
|
|
|
}
|
|
|
+ setInterval(()=>{
|
|
|
+ this.SAtime && clearInterval(this.SAtime);
|
|
|
+ this.levelTime && clearInterval(this.levelTime);
|
|
|
+ this.downholeTime && clearInterval(this.downholeTime);
|
|
|
+ this.twoTime && clearInterval(this.twoTime);
|
|
|
+ this.timeUserList && clearInterval(this.timeUserList);
|
|
|
+ // this.timeTitle && clearInterval(this.timeTitle);
|
|
|
+ this.time2 && clearInterval(this.time2);
|
|
|
+ this.time3 && clearInterval(this.time3);
|
|
|
+ if (this.isShowRequest) {
|
|
|
+ this.requestFunction()
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.noRequestFunction()
|
|
|
+ }
|
|
|
+ },1000*60*60)
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
handleChangeData() {
|
|
|
this.isShowPage = false;
|
|
|
+ this.SAtime && clearInterval(this.SAtime);
|
|
|
+ this.levelTime && clearInterval(this.levelTime);
|
|
|
+ this.downholeTime && clearInterval(this.downholeTime);
|
|
|
+ this.twoTime && clearInterval(this.twoTime);
|
|
|
+ this.timeUserList && clearInterval(this.timeUserList);
|
|
|
+ // this.timeTitle && clearInterval(this.timeTitle);
|
|
|
+ this.time2 && clearInterval(this.time2);
|
|
|
+ this.time3 && clearInterval(this.time3);
|
|
|
this.requestFunction()
|
|
|
setTimeout(() => {
|
|
|
this.isShowPage = true;
|
|
|
@@ -757,6 +799,7 @@ let app = new Vue({
|
|
|
this.getDownholeoperationFlase()
|
|
|
|
|
|
this.getTurnOverDetail()
|
|
|
+ this.getDistributionAttachment()
|
|
|
|
|
|
|
|
|
this.getDept(true)
|
|
|
@@ -941,14 +984,14 @@ let app = new Vue({
|
|
|
|
|
|
this.downholeObj = {
|
|
|
key: "集团公司",
|
|
|
- value: 15396
|
|
|
+ value: that.employsNums
|
|
|
}
|
|
|
this.initDownholeEcharts(efficiency, { x: downhole.x, y: [downhole.y[4], downhole.y[5]] }, 2)
|
|
|
that.downholeIndex = 2
|
|
|
} else if (that.downholeIndex == 2) {
|
|
|
this.downholeObj = {
|
|
|
key: "选拔培养",
|
|
|
- value: 2807
|
|
|
+ value: that.selectTraining
|
|
|
}
|
|
|
this.initDownholeEcharts(efficiency, { x: downhole.x, y: [downhole.y[0], downhole.y[1], downhole.y[2], downhole.y[3]] }, 1)
|
|
|
that.downholeIndex = 1
|
|
|
@@ -977,6 +1020,7 @@ let app = new Vue({
|
|
|
if (that.twoTimeIndex == that.nx2.length - 1) {
|
|
|
that.twoTimeIndex = 0
|
|
|
that.twoIndex = 1
|
|
|
+ console.log(that.twoTimeIndex);
|
|
|
that.initTwoBarEcharts(echartTwo, { x: that.nx1[that.twoTimeIndex], y: that.ny1[that.twoTimeIndex] })
|
|
|
return
|
|
|
} else {
|
|
|
@@ -986,6 +1030,27 @@ let app = new Vue({
|
|
|
}
|
|
|
}, 8000)
|
|
|
},
|
|
|
+ // 人才市场定时器
|
|
|
+ timeuserList() {
|
|
|
+ let that = this;
|
|
|
+ this.timeUserList = setInterval(() => {
|
|
|
+ this.timeUserList && clearInterval(this.timeUserList);
|
|
|
+ this.timeuserList()
|
|
|
+ let buffer = that.$refs.buffer
|
|
|
+ that.stereoscopic.dispose();
|
|
|
+ if (that.userIndex >= that.userListX.length - 1) {
|
|
|
+ that.userIndex = 0
|
|
|
+ // this.userListX = spArr(userList.x,9)
|
|
|
+ // this.userListy1 = spArr(userList.y1,9)
|
|
|
+ // this.userListy2 = spArr(userList.y2,9)
|
|
|
+ // this.userListy3 = spArr(userList.y3,9)
|
|
|
+ that.initStereoscopic(buffer, { x: that.userListX[that.userIndex], y1: that.userListy1[that.userIndex], y2: that.userListy2[that.userIndex], y3: that.userListy3[that.userIndex] })
|
|
|
+ } else {
|
|
|
+ that.userIndex += 1
|
|
|
+ that.initStereoscopic(buffer, { x: that.userListX[that.userIndex], y1: that.userListy1[that.userIndex], y2: that.userListy2[that.userIndex], y3: that.userListy3[that.userIndex] })
|
|
|
+ }
|
|
|
+ }, 18000)
|
|
|
+ },
|
|
|
// 针对学历结构的定时器
|
|
|
timeNt() {
|
|
|
let that = this;
|
|
|
@@ -2386,7 +2451,7 @@ let app = new Vue({
|
|
|
value: 7350,
|
|
|
},
|
|
|
]) {
|
|
|
- let myChart = echarts.init(el)
|
|
|
+ this.technical = echarts.init(el)
|
|
|
let objData = {}
|
|
|
let sum = 0
|
|
|
data.forEach(item => {
|
|
|
@@ -2492,7 +2557,7 @@ let app = new Vue({
|
|
|
show: false
|
|
|
}
|
|
|
},
|
|
|
- data: echarts2,
|
|
|
+ data: data,
|
|
|
emphasis: {
|
|
|
scaleSize: 15, // 设置放大倍数
|
|
|
},
|
|
|
@@ -2513,14 +2578,14 @@ let app = new Vue({
|
|
|
},],
|
|
|
}
|
|
|
|
|
|
- myChart.setOption(option)
|
|
|
- tools.loopShowTooltip(myChart, option, {
|
|
|
+ this.technical.setOption(option)
|
|
|
+ tools.loopShowTooltip(this.technical, option, {
|
|
|
nterval: 2000,
|
|
|
loopSeries: true,
|
|
|
});
|
|
|
- window.addEventListener("resize", function () {
|
|
|
- myChart.resize();
|
|
|
- });
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
+ // myChart.resize();
|
|
|
+ // });
|
|
|
},
|
|
|
initChartsBig(arr = [{
|
|
|
name: '研究生及以上',
|
|
|
@@ -3284,14 +3349,15 @@ let app = new Vue({
|
|
|
let chart = echarts.init(el);
|
|
|
var scale = 2;
|
|
|
var singleData = data.y1;
|
|
|
- var multipleData = data.y2
|
|
|
- // data.y1.forEach(item => {
|
|
|
- // max = max + item
|
|
|
- // })
|
|
|
- // data.y1.forEach(item => {
|
|
|
- // let num = ((item / max) * 100).toFixed(2)
|
|
|
- // multipleData.push(num)
|
|
|
- // })
|
|
|
+ var multipleData = []
|
|
|
+ let max = 0;
|
|
|
+ data.y1.forEach(item => {
|
|
|
+ max = max + item
|
|
|
+ })
|
|
|
+ data.y1.forEach(item => {
|
|
|
+ let num = ((item / max) * 100).toFixed(2)
|
|
|
+ multipleData.push(num)
|
|
|
+ })
|
|
|
var color = "#fff";
|
|
|
option = {
|
|
|
tooltip: {
|
|
|
@@ -3680,7 +3746,7 @@ let app = new Vue({
|
|
|
});
|
|
|
},
|
|
|
initStereoscopic(el, data) {
|
|
|
- let chart = echarts.init(el);
|
|
|
+ this.stereoscopic = echarts.init(el);
|
|
|
option = {
|
|
|
tooltip: {
|
|
|
show: true,
|
|
|
@@ -3841,14 +3907,14 @@ let app = new Vue({
|
|
|
|
|
|
]
|
|
|
}
|
|
|
- chart.setOption(option);
|
|
|
- tools.loopShowTooltip(chart, option, {
|
|
|
+ this.stereoscopic.setOption(option);
|
|
|
+ tools.loopShowTooltip(this.stereoscopic, option, {
|
|
|
nterval: 2000,
|
|
|
loopSeries: true,
|
|
|
});
|
|
|
- window.addEventListener("resize", function () {
|
|
|
- chart.resize();
|
|
|
- });
|
|
|
+ // window.addEventListener("resize", function () {
|
|
|
+ // chart.resize();
|
|
|
+ // });
|
|
|
},
|
|
|
initHorizontalBar(el) {
|
|
|
let chart = echarts.init(el);
|
|
|
@@ -4990,11 +5056,14 @@ let app = new Vue({
|
|
|
],
|
|
|
};
|
|
|
this.mobilizeFL.on('click', function (params) {
|
|
|
+ that.getTurnOverDetail(params.name)
|
|
|
// 获取点击事件的参数信息
|
|
|
- that.isShowMark = true
|
|
|
- that.salaryFlag = false
|
|
|
- that.pdfFlag = false
|
|
|
- that.mobilizeFlag = true
|
|
|
+ setTimeout(() => {
|
|
|
+ that.isShowMark = true
|
|
|
+ that.salaryFlag = false
|
|
|
+ that.pdfFlag = false
|
|
|
+ that.mobilizeFlag = true
|
|
|
+ }, 10)
|
|
|
// 在这里进行相应的处理逻辑
|
|
|
});
|
|
|
this.mobilizeFL.setOption(option);
|
|
|
@@ -5372,10 +5441,14 @@ let app = new Vue({
|
|
|
},
|
|
|
|
|
|
handleUserChange() {
|
|
|
- this.isShowMark = true
|
|
|
- this.salaryFlag = false
|
|
|
- this.pdfFlag = false
|
|
|
- this.mobilizeFlag = true
|
|
|
+ this.getTurnOverDetail()
|
|
|
+ setTimeout(() => {
|
|
|
+ this.isShowMark = true
|
|
|
+ this.salaryFlag = false
|
|
|
+ this.pdfFlag = false
|
|
|
+ this.mobilizeFlag = true
|
|
|
+ }, 10)
|
|
|
+
|
|
|
},
|
|
|
|
|
|
handleMore() {
|
|
|
@@ -5395,16 +5468,20 @@ let app = new Vue({
|
|
|
|
|
|
},
|
|
|
getAccumulatedLogin() {
|
|
|
- let data = {}
|
|
|
let that = this
|
|
|
+ let data = {
|
|
|
+ flag: that.dataFlag
|
|
|
+ }
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/AccumulatedLogin", data).then(res => {
|
|
|
that.loginInfo.num = res.accumulatedLogin
|
|
|
that.loginInfo.unit = res.unit
|
|
|
})
|
|
|
},
|
|
|
getMauInfo() {
|
|
|
- let data = {}
|
|
|
let that = this;
|
|
|
+ let data = {
|
|
|
+ flag: that.dataFlag
|
|
|
+ }
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/MAU", data).then(res => {
|
|
|
that.mauInfo.mau = res.mau
|
|
|
that.mauInfo.unit = res.unit
|
|
|
@@ -5506,7 +5583,9 @@ let app = new Vue({
|
|
|
},
|
|
|
getlaborproductivity() {
|
|
|
let that = this;
|
|
|
- let data = {};
|
|
|
+ let data = {
|
|
|
+ flag: that.dataFlag
|
|
|
+ }
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/laborproductivity", data).then(res => {
|
|
|
let markLine = []
|
|
|
if (res.data) {
|
|
|
@@ -5538,7 +5617,9 @@ let app = new Vue({
|
|
|
},
|
|
|
getMineEfficiency() {
|
|
|
let that = this;
|
|
|
- let data = {};
|
|
|
+ let data = {
|
|
|
+ flag: that.dataFlag
|
|
|
+ }
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/MineEfficiency", data).then(res => {
|
|
|
let obj = {}
|
|
|
if (res != null) {
|
|
|
@@ -5569,7 +5650,9 @@ let app = new Vue({
|
|
|
},
|
|
|
getEmpProductivity() {
|
|
|
let that = this;
|
|
|
- let data = {}
|
|
|
+ let data = {
|
|
|
+ flag: that.dataFlag
|
|
|
+ }
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/EmpProductivity", data).then(res => {
|
|
|
let obj = {}
|
|
|
if (res != null) {
|
|
|
@@ -5631,7 +5714,9 @@ let app = new Vue({
|
|
|
},
|
|
|
getCollegeinternAndEnterpriseship() {
|
|
|
let that = this;
|
|
|
- let data = {};
|
|
|
+ let data = {
|
|
|
+ flag: that.dataFlag
|
|
|
+ }
|
|
|
let student = this.$refs.student
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/CollegeinternAndEnterpriseship", data).then(res => {
|
|
|
if (res) {
|
|
|
@@ -5667,7 +5752,9 @@ let app = new Vue({
|
|
|
},
|
|
|
getCollegestudy() {
|
|
|
let that = this;
|
|
|
- let data = {};
|
|
|
+ let data = {
|
|
|
+ flag: that.dataFlag
|
|
|
+ }
|
|
|
let proList = [];
|
|
|
let schList = [];
|
|
|
let typeList = [];
|
|
|
@@ -5823,9 +5910,15 @@ let app = new Vue({
|
|
|
userList.y3 = item.value
|
|
|
}
|
|
|
})
|
|
|
+ that.userListX = spArr(userList.x, 9)
|
|
|
+ that.userListy1 = spArr(userList.y1, 9)
|
|
|
+ that.userListy2 = spArr(userList.y2, 9)
|
|
|
+ that.userListy3 = spArr(userList.y3, 9)
|
|
|
+ let buffer = that.$refs.buffer
|
|
|
+ that.initStereoscopic(buffer, { x: that.userListX[0], y1: that.userListy1[0], y2: that.userListy2[0], y3: that.userListy3[0], })
|
|
|
+ that.timeuserList()
|
|
|
}
|
|
|
- let buffer = that.$refs.buffer
|
|
|
- this.initStereoscopic(buffer, userList)
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
getMapData() {
|
|
|
@@ -5857,7 +5950,7 @@ let app = new Vue({
|
|
|
point = geoCoordMap[k]
|
|
|
}
|
|
|
}
|
|
|
- item.data.forEach(i => {
|
|
|
+ item.data.forEach(i => {
|
|
|
let num;
|
|
|
let name;
|
|
|
i.forEach(j => {
|
|
|
@@ -6033,9 +6126,10 @@ let app = new Vue({
|
|
|
}
|
|
|
rankLevelList.push(obj)
|
|
|
})
|
|
|
+ if(this.technical != null){
|
|
|
+ this.technical.dispose()
|
|
|
+ }
|
|
|
this.initChartR1(initChartR1, rankLevelList)
|
|
|
- } else {
|
|
|
- this.initChartR1(initChartR1)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -6053,16 +6147,15 @@ let app = new Vue({
|
|
|
downhole.x = item.value
|
|
|
}
|
|
|
if (item.key == "井下一线") {
|
|
|
- downhole.y[2] = item.value
|
|
|
+ downhole.y[4] = item.value
|
|
|
}
|
|
|
if (item.key == "井下辅助") {
|
|
|
- downhole.y[3] = item.value
|
|
|
+ downhole.y[5] = item.value
|
|
|
}
|
|
|
})
|
|
|
- this.initDownholeEcharts(efficiency, { x: downhole.x, y: [downhole.y[0], downhole.y[1]] }, 1)
|
|
|
-
|
|
|
+ // this.initDownholeEcharts(efficiency, { x: downhole.x, y: [downhole.y[4], downhole.y[5]] }, 1)
|
|
|
} else {
|
|
|
- this.initDownholeEcharts(efficiency, { x: downhole.x, y: [downhole.y[0], downhole.y[1]] }, 1)
|
|
|
+ // this.initDownholeEcharts(efficiency, { x: downhole.x, y: [downhole.y[4], downhole.y[5]] }, 1)
|
|
|
|
|
|
}
|
|
|
})
|
|
|
@@ -6073,33 +6166,50 @@ let app = new Vue({
|
|
|
flag: that.dataFlag
|
|
|
}
|
|
|
let efficiency = this.$refs.efficiency
|
|
|
- fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/GrassRoots", data).then(res => {
|
|
|
+ fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/SelectTraining", data).then(res => {
|
|
|
if (res) {
|
|
|
res.data.forEach(item => {
|
|
|
- if (item.key == "组织") {
|
|
|
+ if (item.key == "组织名称") {
|
|
|
downhole.x = item.value
|
|
|
}
|
|
|
- if (item.key == "基层正职") {
|
|
|
+ if (item.key == "一级专员") {
|
|
|
downhole.y[0] = item.value
|
|
|
}
|
|
|
- if (item.key == "基层副职") {
|
|
|
+ if (item.key == "二级专员") {
|
|
|
downhole.y[1] = item.value
|
|
|
}
|
|
|
+ if (item.key == "一级技工") {
|
|
|
+ downhole.y[2] = item.value
|
|
|
+ }
|
|
|
+ if (item.key == "二级技工") {
|
|
|
+ downhole.y[3] = item.value
|
|
|
+ }
|
|
|
+ if (item.key == "选拔培训") {
|
|
|
+ that.downholeObj = {
|
|
|
+ key: "选拔培养",
|
|
|
+ value: item.value
|
|
|
+ }
|
|
|
+ that.selectTraining = item.value
|
|
|
+ }
|
|
|
})
|
|
|
+ this.initDownholeEcharts(efficiency, { x: downhole.x, y: [downhole.y[0], downhole.y[1], downhole.y[2], downhole.y[3]] }, 1)
|
|
|
+ this.getFrontLine()
|
|
|
}
|
|
|
- this.initDownholeEcharts(efficiency, { x: downhole.x, y: [downhole.y[0], downhole.y[1]] }, 1)
|
|
|
- this.getFrontLine()
|
|
|
+
|
|
|
})
|
|
|
this.downholeTimes()
|
|
|
|
|
|
},
|
|
|
getEmploysNums() {
|
|
|
let that = this;
|
|
|
- let data = {};
|
|
|
+ let data = {
|
|
|
+ flag: that.dataFlag
|
|
|
+ };
|
|
|
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/EmploysNums", data).then(res => {
|
|
|
if (res) {
|
|
|
that.downholeObj = res
|
|
|
+ that.employsNums = res.value
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -6170,12 +6280,13 @@ let app = new Vue({
|
|
|
that.echartTwoList.y = item.value
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+ that.nx1 = spArr(that.echartTwoList.x, 5)
|
|
|
+ that.ny1 = spArr(that.echartTwoList.y, 5)
|
|
|
+ that.initTwoBarEcharts(echartTwo, { x: that.nx1[0], y: that.ny1[0] })
|
|
|
+ that.twoTimeIndex = 0
|
|
|
+ that.timeTwo()
|
|
|
}
|
|
|
- that.nx1 = spArr(that.echartTwoList.x, 5)
|
|
|
- that.ny1 = spArr(that.echartTwoList.y, 5)
|
|
|
- that.initTwoBarEcharts(echartTwo, { x: that.nx1[0], y: that.ny1[0] })
|
|
|
- that.timeTwo()
|
|
|
+
|
|
|
})
|
|
|
|
|
|
},
|
|
|
@@ -6243,10 +6354,11 @@ let app = new Vue({
|
|
|
obj.y.push(item.value)
|
|
|
})
|
|
|
that.echartsTwoBar2 = JSON.parse(JSON.stringify(obj))
|
|
|
+ that.seniorityListX = spArr(that.echartsTwoBar2.x, 4)
|
|
|
+ that.seniorityListY = spArr(that.echartsTwoBar2.y, 4)
|
|
|
}
|
|
|
})
|
|
|
- that.seniorityListX = spArr(that.echartsTwoBar2.x, 4)
|
|
|
- that.seniorityListY = spArr(that.echartsTwoBar2.y, 4)
|
|
|
+
|
|
|
},
|
|
|
getCalSalary() {
|
|
|
let that = this;
|
|
|
@@ -6258,9 +6370,11 @@ let app = new Vue({
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/getCalSalary", data).then(res => {
|
|
|
if (res) {
|
|
|
leftEndList = res.data
|
|
|
+
|
|
|
}
|
|
|
that.initBarEchartsElse(leftEnd, leftEndList, ["累计月平均工资", "同期累计月平均工资"])
|
|
|
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
getCalSalary1() {
|
|
|
@@ -6386,96 +6500,106 @@ let app = new Vue({
|
|
|
|
|
|
|
|
|
},
|
|
|
- getTurnOverDetail() {
|
|
|
+ getTurnOverDetail(orgName = null) {
|
|
|
let that = this;
|
|
|
let data = {
|
|
|
flag: that.dataFlag,
|
|
|
+ orgName,
|
|
|
}
|
|
|
- // fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/TurnOverDetail",data).then(res => {
|
|
|
- // console.log(res);
|
|
|
- // })
|
|
|
- let res = {
|
|
|
- data: [
|
|
|
- { value: ["张三", "孙七"], key: "姓名" },
|
|
|
- { value: ["山焦华晋", "6"], key: "调出单位" },
|
|
|
- { value: ["山焦盐化", "7"], key: "调入单位" },
|
|
|
- { value: ["2023-09-07 00:00:00", "2023-09-07 00:00:00"], key: "调动时间" },
|
|
|
- { value: ["变动完成", "9"], key: "变动状态" }]
|
|
|
- }
|
|
|
- let list = []
|
|
|
- let nameList = []
|
|
|
- let outList = []
|
|
|
- let inList = []
|
|
|
- let timeList = []
|
|
|
- let flagList = []
|
|
|
- // header: ["姓名", "调出单位", "调入单位", "调动时间", '变动状态',],
|
|
|
- res.data.forEach((item) => {
|
|
|
- if (item.key == "姓名") {
|
|
|
- item.value.forEach((i) => {
|
|
|
- nameList.push(i)
|
|
|
- })
|
|
|
- }
|
|
|
- if (item.key == "调出单位") {
|
|
|
- item.value.forEach((i) => {
|
|
|
- outList.push(i)
|
|
|
- })
|
|
|
- }
|
|
|
- if (item.key == "调入单位") {
|
|
|
- item.value.forEach((i) => {
|
|
|
- inList.push(i)
|
|
|
- })
|
|
|
- }
|
|
|
- if (item.key == "调动时间") {
|
|
|
- item.value.forEach((i) => {
|
|
|
- timeList.push(i)
|
|
|
+ that.showChange = false
|
|
|
+ fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/TurnOverDetail", data).then(res => {
|
|
|
+ // console.log(res);
|
|
|
+ if (res) {
|
|
|
+ let list = []
|
|
|
+ let nameList = []
|
|
|
+ let outList = []
|
|
|
+ let inList = []
|
|
|
+ let timeList = []
|
|
|
+ let flagList = []
|
|
|
+ // header: ["姓名", "调出单位", "调入单位", "调动时间", '变动状态',],
|
|
|
+ res.data.forEach((item) => {
|
|
|
+ if (item.key == "姓名") {
|
|
|
+ item.value.forEach((i) => {
|
|
|
+ nameList.push(i)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (item.key == "调出单位") {
|
|
|
+ item.value.forEach((i) => {
|
|
|
+ outList.push(i)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (item.key == "调入单位") {
|
|
|
+ item.value.forEach((i) => {
|
|
|
+ inList.push(i)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (item.key == "调动时间") {
|
|
|
+ item.value.forEach((i) => {
|
|
|
+ timeList.push(i)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (item.key == "变动状态") {
|
|
|
+ item.value.forEach((i) => {
|
|
|
+ flagList.push(i)
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
- }
|
|
|
- if (item.key == "变动状态") {
|
|
|
- item.value.forEach((i) => {
|
|
|
- flagList.push(i)
|
|
|
+ nameList.forEach((item, index) => {
|
|
|
+ list.push([item, outList[index], inList[index], timeList[index], flagList[index],])
|
|
|
})
|
|
|
+ that.configChange.data = list
|
|
|
+ setTimeout(()=>{
|
|
|
+ that.showChange = true
|
|
|
+ },10)
|
|
|
}
|
|
|
})
|
|
|
- nameList.forEach((item, index) => {
|
|
|
- list.push([item, outList[index], inList[index], timeList[index], flagList[index],])
|
|
|
- })
|
|
|
+
|
|
|
},
|
|
|
getDept(flag) {
|
|
|
let that = this;
|
|
|
let data = {
|
|
|
flag: that.dataFlag
|
|
|
}
|
|
|
-
|
|
|
if (!flag) {
|
|
|
data.flag = false
|
|
|
}
|
|
|
-
|
|
|
let index = 0
|
|
|
-
|
|
|
-
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/Dept", data).then(res => {
|
|
|
if (res) {
|
|
|
res.data.forEach(item => {
|
|
|
item.flag = false
|
|
|
item.name = item.key
|
|
|
- if(item.value == 0){
|
|
|
+ if (item.value == 0) {
|
|
|
index = index + 1
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
- if(index == 3){
|
|
|
+ if(that.fetchIndex == 3){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (index == 3) {
|
|
|
+ that.fetchIndex += 1
|
|
|
that.getDept(false)
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
res.data[0].flag = true
|
|
|
that.organizationList = res.data
|
|
|
that.getDistributionInfo()
|
|
|
- }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getDistributionAttachment() {
|
|
|
+ let that = this;
|
|
|
+ let data = {
|
|
|
+ flag: that.dataFlag
|
|
|
+ };
|
|
|
+ fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/DistributionAttachment", data).then(res => {
|
|
|
+ if (res) {
|
|
|
+ that.imageUrl = res.url
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
-})
|
|
|
+})
|
|
|
+
|