Ver Fonte

内部人才市场添加定时任务,数据调整

fengxu há 2 anos atrás
pai
commit
ed7f418450

BIN
JMshujudaping23-08-17.zip → JMshujudaping23-08-21.zip


+ 2 - 2
cokingCoal/humanResources.html

@@ -71,9 +71,9 @@
                             </div>
                         </div>
                         <div class="main_item">
-                            <vue-seamless-scroll :data="listData" class="warp" :classOption="classOption">
+                            <vue-seamless-scroll v-if="rollFlag" :data="listData" class="warp" :classOption="classOption">
                                 <div class="item">
-                                    <p class="item_title">山西焦煤西山煤电杜儿坪矿井下操作工招聘公告</p>
+                                    <p class="item_title">{{ rollTitle }}</p>
                                     <p class="item_con">
                                         <span>一、招聘原则</span>
                                         <span>公开报名、集中面试,公平竞争、择优录用。</span>

+ 72 - 19
cokingCoal/js/humanResources.js

@@ -88,8 +88,9 @@ let app = new Vue({
                 },
             ],
             treeIndex: 0,
+            rollFlag: true,
             config1: {
-                waitTime: 5000,
+                waitTime: 7300,
                 header: ["招聘单位", "招聘岗位", "招聘人数", "投递人数", "发布时间"],
                 headerHeight: 55,
                 columnWidth: [230, 170, 100, 100],
@@ -176,7 +177,7 @@ let app = new Vue({
                 header: ["头像", "姓名", "投递岗位", "时间"],
                 rowNum: 6,
                 headerHeight: 55,
-                columnWidth: [120 ],
+                columnWidth: [120],
                 data: [
                     ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>王伟</span>", "<span class=''>技术员</span>", "<span class=''>2023.07.29</span>"],
                     ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>李丽丽</span>", "<span class=''>井下钻探工</span>", "<span class=''>2023.07.26</span>"],
@@ -289,13 +290,13 @@ let app = new Vue({
                 headerHeight: 55,
                 columnWidth: [100, 200, 400,],
                 data: [
-                    ["汾西矿业", "综合管理岗", "4"],
-                    ["西山煤电", "综合管理岗", "3"],
-                    ["西山煤电", "财务管理岗", "2"],
-                    ["汾西矿业", "综合管理岗", "4"],
-                    ["西山煤电", "综合管理岗", "3"],
-                    ["西山煤电", "财务管理岗", "2"],
-                    ["汾西矿业", "综合管理岗", "4"],
+                    ["汾西矿业", "综合管理岗", "40"],
+                    ["西山煤电", "综合管理岗", "35"],
+                    ["西山煤电", "财务管理岗", "30"],
+                    ["汾西矿业", "综合管理岗", "25"],
+                    ["西山煤电", "综合管理岗", "20"],
+                    ["西山煤电", "财务管理岗", "15"],
+                    ["汾西矿业", "综合管理岗", "10"],
                 ],
                 align: ["center", "center", "center", "center", "center"],
                 index: true,
@@ -344,7 +345,10 @@ let app = new Vue({
             }],
             leftIndex: 0,
             roseEcharts: null,
-            leftFlag: true
+            leftFlag: true,
+            rollTitle: "山西焦煤西山煤电杜儿坪矿井下操作工招聘公告",
+            leftTime: null,
+            rightTime: null,
         }
     },
     created() {
@@ -420,17 +424,38 @@ let app = new Vue({
             }, 2000)
             // setInterval(()=>{
             //     if(that.configIndex > that.config1.data.length - 1){
-            //         console.log("最后一条");
             //         that.configIndex = 0
-            //         console.log(that.config1.data[that.configIndex]);
             //         return
             //     } else {
-            //         console.log(that.config1.data[that.configIndex]);
             //         that.configIndex = that.configIndex + 1
             //         return
             //     }
             // },5000)
         })
+        this.leftTime = setInterval(() => {
+            that.leftList.forEach((item, index) => {
+                item.flag = !item.flag
+                if(item.flag){
+                    if (index == 0) {
+                        that.leftFlag = true
+                    } else {
+                        that.leftFlag = false
+                        setTimeout(() => {
+                            let leftChange = that.$refs.leftChange
+                            that.initRoseEcharts(leftChange)
+                        })
+                    }
+                }
+            })
+        }, 5000)
+        this.rightTime = setInterval(()=>{
+            that.rightList.forEach((item,index)=>{
+                item.flag = !item.flag
+                if(item.flag){
+                    that.rightIndex = index
+                }
+            })
+        },5000)
     },
     methods: {
         initDownholeEcharts(el, data) {
@@ -578,6 +603,12 @@ let app = new Vue({
             });
         },
         scrollChange(index) {
+            this.rollFlag = false;
+            this.rollTitle = "山西焦煤西坪矿井下操作工招聘公告" + index,
+            setTimeout(() => {
+                this.rollFlag = true
+            })
+
         },
 
         initRightCycle(el, data) {
@@ -916,7 +947,7 @@ let app = new Vue({
                 },
                 yAxis: [
                     {
-                        name:"投递/份",
+                        name: "投递/份",
                         type: "value",
                         gridIndex: 0,
                         min: 0,
@@ -933,7 +964,7 @@ let app = new Vue({
                         axisTick: {
                             show: false
                         },
-                        nameTextStyle:{
+                        nameTextStyle: {
                             fontSize: 28,
                             color: "#B6BFCE"
                         },
@@ -1363,7 +1394,6 @@ let app = new Vue({
             if (this.downholeFlag) {
                 setTimeout(() => {
                     let vita = this.$refs.vita
-                    console.log(vita);
                     this.initVitaEcharts(vita)
                 })
             }
@@ -1373,17 +1403,26 @@ let app = new Vue({
             // } else {
             //     this.echartsIndex = 1
             // }
-            console.log(12312132132);
         },
         handleChangeType(type, index) {
             let that = this;
             if (type) {
+                that.rightTime && clearInterval(that.rightTime)
                 that.rightList.forEach(item => {
                     item.flag = false
                 })
                 that.rightList[index].flag = true
                 that.rightIndex = index
+                this.rightTime = setInterval(()=>{
+                    that.rightList.forEach((item,index)=>{
+                        item.flag = !item.flag
+                        if(item.flag){
+                            that.rightIndex = index
+                        }
+                    })
+                },5000)
             } else {
+                that.leftTime && clearInterval(that.leftTime)
                 that.leftList.forEach(item => {
                     item.flag = false
                 })
@@ -1395,11 +1434,25 @@ let app = new Vue({
                     that.leftFlag = false
                     setTimeout(() => {
                         let leftChange = that.$refs.leftChange
-                        console.log(leftChange);
                         that.initRoseEcharts(leftChange)
                     })
                 }
-
+                that.leftTime = setInterval(() => {
+                    that.leftList.forEach((item, index) => {
+                        item.flag = !item.flag
+                        if(item.flag){
+                            if (index == 0) {
+                                that.leftFlag = true
+                            } else {
+                                that.leftFlag = false
+                                setTimeout(() => {
+                                    let leftChange = that.$refs.leftChange
+                                    that.initRoseEcharts(leftChange)
+                                })
+                            }
+                        }
+                    })
+                }, 5000)
             }
         },
     },

+ 7 - 7
cokingCoal/js/newIndex.js

@@ -4792,16 +4792,16 @@ let app = new Vue({
               mobilizeList.y5 = item.value
             }
 
-            that.fx = spArr(mobilizeList.x, 6)
-            that.fy1 = spArr(mobilizeList.y1, 6)
-            that.fy2 = spArr(mobilizeList.y2, 6)
-            that.fy3 = spArr(mobilizeList.y3, 6)
-            that.fy4 = spArr(mobilizeList.y4, 6)
-            that.fy5 = spArr(mobilizeList.y5, 6)
+
 
           })
         }
-
+        that.fx = spArr(mobilizeList.x, 6)
+        that.fy1 = spArr(mobilizeList.y1, 6)
+        that.fy2 = spArr(mobilizeList.y2, 6)
+        that.fy3 = spArr(mobilizeList.y3, 6)
+        that.fy4 = spArr(mobilizeList.y4, 6)
+        that.fy5 = spArr(mobilizeList.y5, 6)
         let mobilize = that.$refs.mobilize
         that.initEchartStack(mobilize, { x: that.fx[0], y1: that.fy1[0], y2: that.fy2[0], y3: that.fy3[0], y4: that.fy4[0], y5: that.fy5[0] })
         that.timeSy()

+ 1 - 0
cokingCoal/js/request.js

@@ -207,6 +207,7 @@ function localEnvAppToken() {
     fetch(fetchUrl + "/ierp/api/getAppToken.do", {
       method: "post",
       body: JSON.stringify(data),
+      timeout: 5000,
       mode: 'cors'
     }).then(res => {
       return res.json()