fengxu 1 vuosi sitten
vanhempi
commit
f9bbefbc77
3 muutettua tiedostoa jossa 48 lisäystä ja 37 poistoa
  1. 7 6
      cokingCoal/hr.html
  2. 35 26
      cokingCoal/js/humanResources.js
  3. 6 5
      cokingCoal/styles/humanResources.css

+ 7 - 6
cokingCoal/hr.html

@@ -110,18 +110,19 @@
                 </div>
             </div>
             <div class="page_main_left flex_column" style="background-color: #63b6ff11;" v-if="!showBigList">
+                <div class="title" style="width: 70%;height: 65px;margin-left: -30%;">Ⅳ.综合测评</div>
                 <div class="main flex_column w100" style="padding: 0;">
-                    <div class="title" style="width: 70%;height: 100px;margin-left: -30%;">笔试安排</div>
+                    <!-- <div class="title" style="width: 70%;height: 100px;margin-left: -30%;">笔试安排</div> -->
 
                     <div class="main_item " style="width: 100%;background: none;">
                         <!-- <div class="main_item_title">笔试安排</div> -->
                         <div class="main_item_main" style="height: 100%;">
-                            <dv-scroll-board v-if="showExamination" :config="configWritten"
+                            <dv-scroll-board v-if="showExamination" :config="configInterviewElse"
                                 @scroll-change="scrollChangeListW" style="width: 100%; height: 100%" />
                         </div>
                     </div>
-                    <div class="title" style="width: 70%;height: 100px;margin-left: -30%;margin-top: 30px;">面试安排</div>
-                    <div class="main_item  w100" style="width: 100%;background: none;position: relative;">
+                    <!-- <div class="title" style="width: 70%;height: 100px;margin-left: -30%;margin-top: 30px;">面试安排</div> -->
+                    <div class="main_item  w100" style="width: 100%;background: none;position: relative;" v-if="false">
                         <!-- <div class="main_item_title">面试安排</div> -->
                         <div class="main_item_main" style="height: 100%;">
                             <dv-scroll-board v-if="showInterview" :config="configInterview"
@@ -276,14 +277,14 @@
                     <div :class="treeList[3].flag?'title_yellow':'title'">Ⅳ.综合测评</div>
                     <div class="main flex_sp">
                         <div class="main_item flex_column" style="background: none;">
-                            <div class="main_item_title">笔试安排</div>
+                            <!-- <div class="main_item_title">笔试安排</div> -->
                             <div class="main_item_main">
                                 <dv-scroll-board v-if="showExamination" :config="configWritten"
                                     @scroll-change="scrollChangeListW" style="width: 100%; height: 100%" />
                             </div>
                         </div>
                         <div class="main_item flex_column" style="background: none;position: relative;">
-                            <div class="main_item_title">面试安排</div>
+                            <!-- <div class="main_item_title">面试安排</div> -->
                             <div class="main_item_main">
                                 <dv-scroll-board v-if="showInterview" :config="configInterview"
                                     @scroll-change="scrollChangeListIn" style="width: 100%; height: 100%" />

+ 35 - 26
cokingCoal/js/humanResources.js

@@ -201,22 +201,25 @@ let app = new Vue({
                 columnWidth: [90, 120, 170, 200],
                 rowNum: 6,
                 data: [
-                    ["01", '陈英', '洽谈室1', '杜儿坪矿', "2023.08.18   09:30-10:30"],
-                    ["02", '李小曼', '洽谈室1', '杜儿坪矿', "2023.08.18   09:30-10:30"],
-                    ["03", '王亮', '洽谈室1', '柳湾煤矿', "2023.08.18   09:30-10:30"],
-                    ["04", '李鑫', '洽谈室1', '高阳煤矿', "2023.08.18   09:30-10:30"],
-                    ["05", '王杰', '洽谈室1', '柳湾煤矿', "2023.08.18   09:30-10:30"],
-                    ["06", '张强', '洽谈室1', '杜儿坪矿', "2023.08.18   09:30-10:30"],
-                    ["07", '王强', '洽谈室1', '高阳煤矿', "2023.08.19   09:30-10:30"],
-                    ["08", '程丽', '洽谈室1', '柳湾煤矿', "2023.08.19   09:30-10:30"],
-                    ["09", '韩赢', '洽谈室1', '杜儿坪矿', "2023.08.19   09:30-10:30"],
-                    ["10", '王丽', '洽谈室1', '柳湾煤矿', "2023.08.19   09:30-10:30"],
+
                 ],
                 align: ["center", "center", "center", "center", "center"],
                 headerBGC: "#69c1ff2d",
                 oddRowBGC: "rgba(105, 193, 255, 0)",
                 evenRowBGC: "#69c1ff21",
             },
+            configInterviewElse: {
+                waitTime: 2000,
+                header: ["序号", "姓名", "地点", "双选单位", "时间"],
+                headerHeight: 55,
+                columnWidth: [240, 320, 370, 460, 480],
+                rowNum: 25,
+                data: [],
+                align: ["center", "center", "center", "center", "center"],
+                headerBGC: "#69c1ff2d",
+                oddRowBGC: "rgba(105, 193, 255, 0)",
+                evenRowBGC: "#69c1ff21",
+            },
             configWritten: {
                 waitTime: 2000,
                 header: ["序号", "姓名", "地点", "双选单位", "时间"],
@@ -224,16 +227,6 @@ let app = new Vue({
                 columnWidth: [90, 120, 170, 200],
                 rowNum: 6,
                 data: [
-                    ["01", '李志桐', '洽谈室1', '杜儿坪矿', "2023.08.22   09:30-10:30"],
-                    ["02", '赵建国', '洽谈室1', '柳湾煤矿', "2023.08.22   09:30-10:30"],
-                    ["03", '张耀杰', '洽谈室1', '高阳煤矿', "2023.08.22   09:30-10:30"],
-                    ["04", '崔诚', '洽谈室1', '杜儿坪矿', "2023.08.22   09:30-10:30"],
-                    ["05", '陈灵均', '洽谈室1', '杜儿坪矿', "2023.08.22   09:30-10:30"],
-                    ["06", '杜勇', '洽谈室1', '柳湾煤矿', "2023.08.23   09:30-10:30"],
-                    ["07", '李灵风', '洽谈室1', '高阳煤矿', "2023.08.23   09:30-10:30"],
-                    ["08", '卢晨', '洽谈室1', '杜儿坪矿', "2023.08.23   09:30-10:30"],
-                    ["08", '韩玉树', '洽谈室1', '柳湾煤矿', "2023.08.23   09:30-10:30"],
-                    ["09", '王杰', '洽谈室1', '杜儿坪矿', "2023.08.23   09:30-10:30"],
                 ],
                 align: ["center", "center", "center", "center", "center"],
                 headerBGC: "#69c1ff2d",
@@ -591,8 +584,8 @@ let app = new Vue({
             let that = this;
             if (index == 1) {
                 if (that.showBigList) {
-                    that.configInterview.rowNum = 10
-                    that.configWritten.rowNum = 10
+                    that.configInterview.rowNum = 20
+                    that.configWritten.rowNum = 20
                     that.employmentList3.rowNum = 20
                     that.configInterview.columnWidth = []
                     that.configInterview.columnWidth = [240, 320, 370, 460, 480]
@@ -1012,7 +1005,6 @@ let app = new Vue({
             // if(myChart){
             //     myChart.dispose()
             // }
-            console.log(type);
             let myChart
             if (type) {
                 if (that[type]) {
@@ -2762,10 +2754,9 @@ let app = new Vue({
                         //     // that.initLineRight(child.children[1], { value: dataList[i].value, total }, title)
                         // }
                         let echartsErrorBox = that.$refs.echartsErrorBox
-                        setTimeout(()=>{
+                        setTimeout(() => {
                             for (const child of echartsErrorBox.children) {
                                 const index = Array.prototype.indexOf.call(echartsErrorBox.children, child);
-                                console.log(index);
                                 let title = "lineRight" + (index + 1)
                                 that.initLineRight(child.children[1], { value: dataList[index].value, total }, title)
                             }
@@ -2843,13 +2834,30 @@ let app = new Vue({
                             })
                         }
                     }
+                    let arr = []
+                    if (res.bishiList.length != 0) {
+                        arr.push(...res.bishiList)
+                        res.bishiList = []
+                        res.bishiList = arr.filter((_, index) => index % 2 === 0);
+                        res.mianshiList = arr.filter((_, index) => index % 2 !== 0);
+                        that.configInterviewElse.data = [...arr]
+                    } else if (res.mianshiList.length != 0) {
+                        arr.push(...res.mianshiList)
+                        res.mianshiList = []
+                        res.bishiList = arr.filter((_, index) => index % 2 === 0);
+                        res.mianshiList = arr.filter((_, index) => index % 2 !== 0);
+                        that.configInterviewElse.data = [...arr]
+                    }
+
                     if (type == 1) {
+                        // that.configWritten.data = res.bishiList
                         that.configWritten.data = that.getNo(res.bishiList)
                         setTimeout(() => {
                             that.showExamination = true
                         }, 10)
 
                     } else if (type == 2) {
+                        // that.configInterview.data = res.mianshiList
                         that.configInterview.data = that.getNo(res.mianshiList)
                         setTimeout(() => {
                             that.showInterview = true
@@ -2857,7 +2865,9 @@ let app = new Vue({
 
 
                     } else {
+                        // that.configWritten.data = res.bishiList
                         that.configWritten.data = that.getNo(res.bishiList)
+                        // that.configInterview.data = res.mianshiList
                         that.configInterview.data = that.getNo(res.mianshiList)
                         setTimeout(() => {
                             that.showInterview = true
@@ -2878,7 +2888,6 @@ let app = new Vue({
                             }, (10000 * 6 * 5))
                         }
                     }
-
                 }
             })
         },

+ 6 - 5
cokingCoal/styles/humanResources.css

@@ -242,8 +242,8 @@ img {
     width: calc(50% - 10px);
     height: 100%;
     background-color: #69c1ff09;
-    padding-top: 20px;
-    box-sizing: border-box;
+    /* padding-top: 20px;
+    box-sizing: border-box; */
 }
 
 .right_top {
@@ -512,7 +512,8 @@ li {
 
 .main_item_main {
     width: 100%;
-    height: calc(100% - 70px);
+    /* height: calc(100% - 70px); */
+    height: 100%;
 }
 
 .center_top_item {
@@ -903,7 +904,7 @@ li {
 }
 
 .right_item_tit {
-    width: 25%;
+    width: 40%;
     height: 100%;
     display: flex;
     justify-content: flex-start;
@@ -925,7 +926,7 @@ li {
 }
 
 .echarts_dom_else {
-    width: 75%;
+    width: 60%;
     height: 100%;
 }