徐桐章 4 years ago
parent
commit
c7ab97e51e

+ 1 - 0
package.json

@@ -14,6 +14,7 @@
     "babel-polyfill": "^6.26.0",
     "core-js": "^3.4.3",
     "css-vars-ponyfill": "^2.3.2",
+    "echarts": "^4.8.0",
     "element-ui": "^2.13.0",
     "js-cookie": "^2.2.1",
     "js-cookies": "^1.0.4",

+ 1 - 1
public/index.html

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-06-09 15:30:15
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-07-31 11:28:52
+ * @LastEditTime: 2020-08-03 11:07:45
 --> 
 <!DOCTYPE html>
 <html lang="en">

+ 1 - 1
src/components/vNav/vNav.vue

@@ -115,7 +115,7 @@ export default {
             {
               name: '数据统计',
               // menuid: 202,
-              to: 'busUser'
+              to: 'statistics'
             }
           ]
         }

+ 6 - 1
src/router/index.js

@@ -2,7 +2,7 @@
  * @Author       : yuanrunwei
  * @Date         : 2020-05-18 12:05:37
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-03 09:54:09
+ * @LastEditTime: 2020-08-03 15:09:54
  * @FilePath     : \ambre-admin-noob\src\router\index.js
  */
 import Vue from 'vue'
@@ -33,6 +33,11 @@ const routes = [
     component: () => import('@/views/candidateManage/mailManage')
   },
   {
+    path: '/statistics',
+    name: 'statistics',
+    component: () => import('@/views/candidateManage/statistics')
+  },
+  {
     path: '/basicInfo',
     name: 'basicInfo',
     component: () => import('@/views/companyManage/basicInfo')

+ 13 - 12
src/views/candidateManage/candidateAll.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:17:25
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-03 10:45:26
+ * @LastEditTime: 2020-08-03 11:51:16
 -->
 <template>
   <div class="indexPage">
@@ -84,7 +84,8 @@ export default {
           },
           {
             label: '性别',
-            props: 'delivererSex'
+            props: 'delivererSex',
+            options: ['女', '男']
           },
           {
             label: '简历来源',
@@ -172,16 +173,16 @@ export default {
       this.queryData(form)
     },
     details ({ id }) {
-      this.$api
-        .post('', {
-          reqdata: {
-            id
-          }
-        })
-        .then((res) => {
-          this.open()
-          this.info = res.object
-        })
+      // this.$api
+      //   .post('', {
+      //     reqdata: {
+      //       id
+      //     }
+      //   })
+      //   .then((res) => {
+      this.open()
+      //     this.info = res.object
+      //   })
     },
     open () {
       this.dialogFormVisible = true

+ 3 - 2
src/views/candidateManage/resume.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:32:00
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-03 10:46:06
+ * @LastEditTime: 2020-08-03 11:10:21
 -->
 <template>
     <div>
@@ -14,8 +14,9 @@
                     <div class="top">
                         <div class="title">小八的面试视频:</div>
                         <div class="video">
-                            <video width="100%" controls src="https://vdept.bdstatic.com/324b4d51474d51685674525a7a397737/424e6c6a6b354875/e4f949c59a0a5afc39446b7e83c8e2893ec5727c25bd8fde06c2adaa08b7cf820228b97312bb8b487ef1f73ac3aaf66af73fd54d4fd6f64d5f280059490670d7.mp4?auth_key=1596084985-0-0-014de3491d14f4f16a570bc972366f96"></video>
+                            <video width="100%" controls :src="$img + '/yc1min/videoLibrary/20200729/86a4a324-7e90-415d-9685-41e2f4a75c03.mp4'"></video>
                         </div>
+                        <!-- https://vdept.bdstatic.com/324b4d51474d51685674525a7a397737/424e6c6a6b354875/e4f949c59a0a5afc39446b7e83c8e2893ec5727c25bd8fde06c2adaa08b7cf820228b97312bb8b487ef1f73ac3aaf66af73fd54d4fd6f64d5f280059490670d7.mp4?auth_key=1596084985-0-0-014de3491d14f4f16a570bc972366f96 -->
                         <div class="list">
                             <div @click="active = 0" :class="active === 0 ? 'is-active' : ''">视频第一段</div>
                             <div @click="active = 1" :class="active === 1 ? 'is-active' : ''">视频第二段</div>

+ 26 - 25
src/views/candidateManage/resumeList.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 09:53:19
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-02 16:59:20
+ * @LastEditTime: 2020-08-03 16:30:53
 -->
 <template>
   <div class="indexPage">
@@ -55,7 +55,7 @@
               closable
               @close="copyPickList.splice(index, 1)"
               type="success"
-            >{{tableList.find(i => i.id === item).delivererName}}</el-tag>
+            >{{tableList.some(i => i.id === item) ? tableList.find(i => i.id === item).delivererName : ''}}</el-tag>
           </div>
         </el-form-item>
         <el-form-item label="选择群发模板" prop="templateId">
@@ -117,7 +117,8 @@ export default {
           props: 'resumeFrom',
           options: [
             { label: '51job', value: 0 },
-            { label: '智联', value: 1 }
+            { label: '智联', value: 1 },
+            { label: '58同城', value: 2 }
           ]
         },
         {
@@ -167,11 +168,13 @@ export default {
           },
           {
             label: '性别',
-            props: 'delivererSex'
+            props: 'delivererSex',
+            options: ['女', '男']
           },
           {
             label: '简历来源',
-            props: ''
+            props: 'resumeFrom',
+            options: ['51job', '智联招聘', '58同城']
           },
           {
             label: '简历投递时间',
@@ -187,7 +190,7 @@ export default {
           },
           {
             label: '学历',
-            props: ''
+            props: 'delivererEducation'
           },
           {
             label: '联系电话',
@@ -236,7 +239,8 @@ export default {
           },
           {
             label: '性别',
-            props: 'delivererSex'
+            props: 'delivererSex',
+            options: ['女', '男']
           },
           {
             label: '简历来源',
@@ -376,7 +380,7 @@ export default {
     through (row, type = false) {
       let ids = type ? row : [row.id]
       this.$api
-        .post('', {
+        .post('/resumeInfo/changeReadType', {
           reqdata: {
             ids
           }
@@ -393,7 +397,7 @@ export default {
     eliminate (row, type = false) {
       let ids = type ? row : [row.id]
       this.$api
-        .post('', {
+        .post('/resumeInfo/changeReadType', {
           reqdata: {
             ids
           }
@@ -501,9 +505,9 @@ export default {
                 type: 'info'
               },
               {
-                title: '标记通过',
-                method: 'through',
-                type: 'primary'
+                title: '通知面试',
+                method: 'notice',
+                type: 'success'
               },
               {
                 title: '标记淘汰',
@@ -518,16 +522,6 @@ export default {
             ]
             : [
               {
-                title: '查看简历',
-                method: 'details',
-                type: 'info'
-              },
-              {
-                title: '通知面试',
-                method: 'notice',
-                type: 'success'
-              },
-              {
                 title: '标记通过',
                 method: 'through',
                 type: 'primary'
@@ -573,9 +567,9 @@ export default {
                 method: 'search'
               },
               {
-                name: '标记通过',
-                type: 'primary',
-                method: 'through'
+                name: '通知面试',
+                type: 'success',
+                method: 'notice'
               },
               {
                 name: '标题淘汰',
@@ -609,6 +603,13 @@ export default {
                 }
               ]
       )
+      this.$set(
+        this.table,
+        'width',
+        this.isCollapse === 1
+          ? 500 : this.isCollapse === 2
+            ? 400 : 200
+      )
     }
   }
 }

+ 85 - 0
src/views/candidateManage/statistics.vue

@@ -0,0 +1,85 @@
+<!--
+ * @Description: create
+ * @Version: 1.0
+ * @Autor: XuTongZhang
+ * @Date: 2020-08-03 15:00:31
+ * @LastEditors: XuTongZhang
+ * @LastEditTime: 2020-08-03 15:55:13
+-->
+<template>
+  <div>
+    <div id="echart" ref="mychart" :style="{width: '100%', height: '300px'}"></div>
+  </div>
+</template>
+
+<script>
+import echarts from 'echarts'
+export default {
+  data () {
+    return {
+    }
+  },
+  mounted () {
+    this.initChart()
+  },
+  methods: {
+    queryData () {
+      this.$api
+        .post('', {
+          reqdata: {}
+        })
+        .then((res) => {
+          this.initChart(res.object)
+        })
+    },
+    initChart (data) {
+      let myChart = echarts.init(this.$refs.mychart)
+      myChart.setOption({
+        title: {
+          text: '简历投递信息'
+        },
+        tooltip: {
+          trigger: 'axis'
+        },
+        legend: {
+          data: ['校招投递简历', '社招投递简历']
+        },
+        grid: {
+          left: '3%',
+          right: '4%',
+          bottom: '3%',
+          containLabel: true
+        },
+        toolbox: {
+          feature: {
+            saveAsImage: {}
+          }
+        },
+        xAxis: {
+          type: 'category',
+          boundaryGap: false,
+          data: [1, 2]
+        },
+        yAxis: {
+          type: 'value'
+        },
+        series: [
+          {
+            name: '校招投递简历',
+            type: 'line',
+            data: [50, 30]
+          },
+          {
+            name: '社招投递简历',
+            type: 'line',
+            data: [1, 50]
+          }
+        ]
+      })
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+</style>

+ 3 - 2
src/views/companyManage/positionInfo.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 17:19:43
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-02 16:10:36
+ * @LastEditTime: 2020-08-03 11:45:15
 -->
 <template>
   <div class="indexPage">
@@ -92,7 +92,8 @@ export default {
           },
           {
             label: '职位状态',
-            props: ''
+            props: 'status',
+            options: ['有效', '禁用']
           }
         ],
         handle: [

+ 12 - 0
yarn.lock

@@ -3059,6 +3059,13 @@ ecc-jsbn@~0.1.1:
     jsbn "~0.1.0"
     safer-buffer "^2.1.0"
 
+echarts@^4.8.0:
+  version "4.8.0"
+  resolved "https://registry.yarnpkg.com/echarts/-/echarts-4.8.0.tgz#b2c1cfb9229b13d368ee104fc8eea600b574d4c4"
+  integrity sha512-YwShpug8fWngj/RlgxDaYrLBoD+LsZUArrusjNPHpAF+is+gGe38xx4W848AwWMGoi745t3OXM52JedNrv+F6g==
+  dependencies:
+    zrender "4.3.1"
+
 ee-first@1.1.1:
   version "1.1.1"
   resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
@@ -8914,3 +8921,8 @@ yorkie@^2.0.0:
     is-ci "^1.0.10"
     normalize-path "^1.0.0"
     strip-indent "^2.0.0"
+
+zrender@4.3.1:
+  version "4.3.1"
+  resolved "https://registry.yarnpkg.com/zrender/-/zrender-4.3.1.tgz#baf8aa6dc8187a2f819692d7d5f9bedfa2b90fa3"
+  integrity sha512-CeH2TpJeCdG0TAGYoPSAcFX2ogdug1K7LIn9UO/q9HWqQ54gWhrMAlDP9AwWYMUDhrPe4VeazQ4DW3msD96nUQ==