ソースを参照

调整接口数据

fengxu 2 年 前
コミット
a2a02ba87a

+ 0 - 1
cokingCoal/js/humanResources.js

@@ -525,7 +525,6 @@ let app = new Vue({
                 localStorage.setItem("access_token", res.access_token)
                 that.getPlayers()
                 that.getPostDetail()
-                that.getPostDetail()
 
                 that.getHalfYearDelivcv()
                 that.getHotDelivcv()

+ 29 - 15
cokingCoal/js/newIndex.js

@@ -1406,18 +1406,18 @@ let app = new Vue({
                     },
 
                 }],
-                legend: {
-                    data: ["入池人数", "出池人数"],
-                    textStyle: {
-                        // 图列内容样式
-                        color: "#fff", // 字体颜色
-                        // fontSize: "10",
-                    },
-                    right: 30,
-                    icon: "roundRect",
-                    // 小图标的宽高
-                    itemHeight: 5,
-                },
+                // legend: {
+                //     data: ["入池人数", "出池人数"],
+                //     textStyle: {
+                //         // 图列内容样式
+                //         color: "#fff", // 字体颜色
+                //         // fontSize: "10",
+                //     },
+                //     right: 30,
+                //     icon: "roundRect",
+                //     // 小图标的宽高
+                //     itemHeight: 5,
+                // },
             };
             let that = this;
             this.industryEcharts.setOption(option);
@@ -5522,13 +5522,24 @@ let app = new Vue({
             let data = {
                 flag: that.dataFlag
             }
+            let index = 0
             fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/Distribution", data).then(res => {
                 if (res) {
                     res.data.forEach(item => {
                         item.flag = false
                         item.name = item.key
+                        if (item.value == 0) {
+                            index = index + 1
+                        }
                     })
-                    this.organizationList.push(...res.data)
+                    if(that.organizationList.length == 3){
+                        that.organizationList.push(...res.data)
+                    }
+                    if (index < 3) {
+                        let arr = this.organizationList.splice(0, this.organizationList.length - 3)
+                        this.organizationList = []
+                        this.organizationList.push(...arr, ...res.data)
+                    } 
                     setInterval(_ => {
                         if (this.fIndex == this.fList.length - 1) {
                             this.fIndex = 0
@@ -5941,6 +5952,7 @@ let app = new Vue({
             let data = {
                 flag: that.dataFlag
             }
+            let buffer = that.$refs.buffer
             fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/HumanOrgAllResources", data).then(res => {
                 if (res) {
                     res.data.forEach(item => {
@@ -5957,11 +5969,13 @@ let app = new Vue({
                             userList.y3 = item.value
                         }
                     })
+                    if (!userList.x) {
+                        return
+                    }
                     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()
                 }
@@ -6633,7 +6647,7 @@ let app = new Vue({
                         }
                     })
                     if (that.fetchIndex == 3) {
-                        // that.getDistributionInfo()
+                        that.getDistributionInfo()
                         return
                     }
                     if (index == 3) {

+ 4 - 2
cokingCoal/js/request.js

@@ -13,8 +13,10 @@ function isLocalEnv() {
 }
 
 
-
-window.apiType = "prod"  // dev 本地测试 ,  sit  线上测试  uat  客户测试环境 prod  正式环境
+window.apiType = "sit"  // dev 本地测试 ,  sit  线上测试  uat  客户测试环境 prod  正式环境
+if(window.location.search){
+  apiType = window.location.search.split("=")[1]
+}
 window.fetchUrl = ""
 // window.fetchUrl = "http://172.21.9.236:8081"
 

+ 8 - 6
cokingCoal/styles/newIndex.css

@@ -1167,23 +1167,25 @@ img {
 }
 
 .top_text {
-    font-size: 40px;
+    width: 150%;
+    font-size: 32px;
     font-weight: bolder;
     color: #5AC9FD;
     position: absolute;
     top: 25%;
-    left: 37%;
-    transform: translateY(-50%);
+    left: 36%;
+    transform: translateY(-30%);
 }
 
 .top_text_on {
-    font-size: 40px;
+    width: 150%;
+    font-size: 32px;
     font-weight: bolder;
     color: #EBB829;
     position: absolute;
     top: 25%;
-    left: 37%;
-    transform: translateY(-50%);
+    left: 36%;
+    transform: translateY(-30%);
 }
 
 .top_text span {