|
|
@@ -399,8 +399,7 @@ let app = new Vue({
|
|
|
// this.initOrganization(organization, "", this.organizationList)
|
|
|
let mobilize = this.$refs.mobilize
|
|
|
this.initEchartStack(mobilize, { x: this.fx[0], y1: this.fy1[0], y2: this.fy2[0], y3: this.fy3[0], y4: this.fy4[0], y5: this.fy5[0] })
|
|
|
- let industry = this.$refs.industry
|
|
|
- this.initOrganizationElse(industry, "", this.industry, "")
|
|
|
+
|
|
|
let sequence = this.$refs.sequence
|
|
|
this.initBarEcharts(sequence, { x: ["管理序列", "技术序列", "操作序列"], y1: [34242, 18547, 134012], y2: [28993, 19411, 126807] }, ["当前数"])
|
|
|
let serviceAge = this.$refs.serviceAge
|
|
|
@@ -485,6 +484,10 @@ let app = new Vue({
|
|
|
localStorage.setItem("access_token", res.access_token)
|
|
|
this.getAccumulatedLogin()
|
|
|
this.getMauInfo()
|
|
|
+ this.getDistributionInfo()
|
|
|
+ this.getOrganizationChange()
|
|
|
+ this.getIndustrydistribution()
|
|
|
+ this.getHumanResources()
|
|
|
})
|
|
|
})
|
|
|
|
|
|
@@ -2388,7 +2391,6 @@ let app = new Vue({
|
|
|
let num = ((item / max) * 100).toFixed(2)
|
|
|
multipleData.push(num)
|
|
|
})
|
|
|
- console.log(max);
|
|
|
var color = "#fff";
|
|
|
option = {
|
|
|
tooltip: {
|
|
|
@@ -4402,7 +4404,6 @@ let app = new Vue({
|
|
|
let data = {}
|
|
|
let that = this
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/AccumulatedLogin", data).then(res => {
|
|
|
- console.log(res, "getAccumulatedLogin");
|
|
|
that.loginInfo.num = res.accumulatedLogin
|
|
|
that.loginInfo.unit = res.unit
|
|
|
})
|
|
|
@@ -4411,12 +4412,11 @@ let app = new Vue({
|
|
|
let data = {}
|
|
|
let that = this;
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/MAU", data).then(res => {
|
|
|
- console.log(res, "getMauInfo");
|
|
|
that.mauInfo.mau = res.mau
|
|
|
that.mauInfo.unit = res.unit
|
|
|
})
|
|
|
},
|
|
|
- scrollChange(index){
|
|
|
+ scrollChange(index) {
|
|
|
let that = this
|
|
|
if (that.achievementIndex == achievementList.length - 1) {
|
|
|
that.achievementIndex = 0
|
|
|
@@ -4429,6 +4429,51 @@ let app = new Vue({
|
|
|
that.honorIndex = that.honorIndex + 1
|
|
|
}
|
|
|
},
|
|
|
+ getDistributionInfo() {
|
|
|
+ let data = {}
|
|
|
+ let that = this
|
|
|
+ fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/Distribution", data).then(res => {
|
|
|
+ res.data.forEach(item=>{
|
|
|
+ item.flag = false
|
|
|
+ item.name = item.key
|
|
|
+ })
|
|
|
+ res.data[0].flag = true
|
|
|
+ that.organizationList = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getOrganizationChange() {
|
|
|
+ let data = {}
|
|
|
+ let that = this
|
|
|
+ fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/OrganizationChange", data).then(res => {
|
|
|
+ console.log(res, "OrganizationChange");
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getIndustrydistribution() {
|
|
|
+ let that = this
|
|
|
+ let data = {}
|
|
|
+ fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/Industrydistribution", data).then(res => {
|
|
|
+ console.log(res.data, "Industrydistribution");
|
|
|
+ let x = []
|
|
|
+ let y = []
|
|
|
+ that.industry = JSON.parse(JSON.stringify({}))
|
|
|
+ res.data.forEach(item=>{
|
|
|
+ x.push(item.key)
|
|
|
+ y.push(item.value)
|
|
|
+ })
|
|
|
+ that.industry.x = x
|
|
|
+ that.industry.y = y
|
|
|
+ let industry = that.$refs.industry
|
|
|
+ that.initOrganizationElse(industry, "", that.industry, "")
|
|
|
+ //
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getHumanResources() {
|
|
|
+ let that = this;
|
|
|
+ let data = {};
|
|
|
+ fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/HumanResources", data).then(res => {
|
|
|
+ console.log(res, "HumanResources");
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
})
|