소스 검색

修改内部人才市场,及三合一接口对接

fengxu 2 년 전
부모
커밋
99fbf0f025

BIN
JMshujudaping23-08-14.zip → JMshujudaping23-08-16.zip


BIN
cokingCoal/images/humanResources/e9951400.png


+ 51 - 6
cokingCoal/js/newIndex.js

@@ -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");
+      })
+    }
   },
 
 })

+ 0 - 4
cokingCoal/js/request.js

@@ -257,7 +257,6 @@ function getLocalEnvAccessToken() {
 }
 
 function fetchPostMethods(url, params) {
-  console.log(url, params, "url    params");
   return new Promise((resole, reject) => {
     fetch(fetchUrl + url, {
       method: "post",
@@ -268,15 +267,12 @@ function fetchPostMethods(url, params) {
       }),
       mode: 'cors'
     }).then(res => {
-      console.log(res);
       return res.json()
     })
       .catch(error => {
-        console.log(error, "error");
         reject(error)
       })
       .then(response => {
-        console.log(response, "response");
         if (response != undefined) {
           resole(response.data)
         }

+ 1 - 1
cokingCoal/styles/humanResources.css

@@ -497,7 +497,7 @@ li {
     width: 150px;
     height: 150px;
     background: red;
-    -webkit-mask: url('https://imgservices-1252317822.image.myqcloud.com/image/081320210201435/e9951400.png') no-repeat;
+    -webkit-mask: url('../images/humanResources/e9951400.png') no-repeat;
     -webkit-mask-size: auto 150px;
     /* transform: scale(2.65); */
     animation: fireworks 2s steps(24) infinite, random 8s steps(1) infinite, random_color 1s infinite;

+ 1 - 1
cokingCoal/styles/newIndex.css

@@ -12,7 +12,7 @@ body {
     /* background-image: url("../images/newImage/62dbe366-d64f-434e-ad1c-c57312a3d11d.png"); */
     background-repeat: no-repeat;
     background-size: 100% 100%;
-    /* overflow-y: hidden; */
+    overflow-y: hidden;
 }
 
 :root {