徐桐章 4 years ago
parent
commit
91a7c9c309

+ 5 - 1
src/components/vInput/vInput.vue

@@ -14,6 +14,7 @@
           v-model="date"
           type="daterange"
           class="date"
+          size="small"
           :style="item.style"
           start-placeholder="开始日期"
           end-placeholder="结束日期"
@@ -29,6 +30,7 @@
           v-model="form[item.props]"
           :style="item.style"
           clearable
+          size="small"
           :placeholder="item.placeholder">
             <el-option
             v-for="child in item.options"
@@ -42,6 +44,7 @@
           <el-input
           v-else
           :maxlength="item.max"
+          size="small"
           @keyup.enter.native="search"
           prefix-icon="el-icon-search"
           v-model.trim="form[item.props]"
@@ -67,8 +70,9 @@
           <span class="tool" v-for="(item,index) in btn" :key="index">
             <el-button
             :icon="item.icon"
+            size="small"
             @click="btnMethods(item)"
-            :type="item.type">{{item.name}}
+            >{{item.name}}
             </el-button>
             <span class="prompt" v-if="item.message">{{item.message}}</span>
           </span>

+ 2 - 2
src/components/vTable/vTable.vue

@@ -7,7 +7,7 @@
       header-cell-class-name="tableHeader"
       @selection-change="handleSelectionChange"
       @sort-change='sortthiscolumn'
-      size="small"
+      size="mini"
       :row-class-name="tableRowClassName"
       style="width: 100%">
 
@@ -94,9 +94,9 @@
             <el-button
               v-for="(item,index) in table.handle.filter(item => scope.row[item.props] === item.key)"
               :key="index"
+              size="small"
               style="margin:0px;"
               class="btn handelBtn"
-              :type="item.type"
               @click="handleMethods(scope.$index, scope.row, item)">
               {{item.title}}
               <!-- v-if="scope.row[item.props]===item.key" -->

+ 2 - 2
src/views/candidateManage/candidateList.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 15:25:06
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-06 09:58:16
+ * @LastEditTime: 2020-08-07 09:55:05
 -->
 <template>
   <div class="indexPage">
@@ -18,7 +18,7 @@
       @notice="noticeAll"
       @eliminate="eliminateAll"
     ></v-input>
-    <el-radio-group v-model="isCollapse" style="margin-bottom: 20px;">
+    <el-radio-group v-model="isCollapse" size="medium" style="margin-bottom: 20px;">
       <el-radio-button :label="0">候选人列表</el-radio-button>
       <el-radio-button :label="1">已通过候选人</el-radio-button>
       <el-radio-button :label="2">已淘汰候选人</el-radio-button>

+ 8 - 8
src/views/candidateManage/resumeList.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 09:53:19
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-05 16:36:16
+ * @LastEditTime: 2020-08-07 11:57:11
 -->
 <template>
   <div class="indexPage">
@@ -17,7 +17,7 @@
       @eliminate="eliminateAll"
       @search="search"
     ></v-input>
-    <el-radio-group v-model="isCollapse" style="margin-bottom: 20px;">
+    <el-radio-group v-model="isCollapse" size="medium" style="margin-bottom: 20px;">
       <el-radio-button :label="1">未读简历</el-radio-button>
       <el-radio-button :label="2">已通过简历</el-radio-button>
       <el-radio-button :label="3">已通知简历</el-radio-button>
@@ -398,11 +398,11 @@ export default {
     },
     through (row, type = false) {
       let ids = type ? row : [row.id]
-      let deleteResumeInfoList = ids.map(item => ({ id: item, isPass: 1 }))
+      let resumeInfoStatusList = ids.map(item => ({ id: item, isPass: 1 }))
       this.$api
         .post('/resumeInfo/changeReadType', {
           reqdata: {
-            deleteResumeInfoList
+            resumeInfoStatusList
           }
         })
         .then((res) => {
@@ -416,11 +416,11 @@ export default {
     },
     eliminate (row, type = false) {
       let ids = type ? row : [row.id]
-      let deleteResumeInfoList = ids.map(item => ({ id: item, isPass: 2 }))
+      let resumeInfoStatusList = ids.map(item => ({ id: item, isPass: 2 }))
       this.$api
         .post('/resumeInfo/changeReadType', {
           reqdata: {
-            deleteResumeInfoList
+            resumeInfoStatusList
           }
         })
         .then((res) => {
@@ -434,7 +434,7 @@ export default {
     },
     del (row, type = false) {
       let ids = type ? row : [row.id]
-      let deleteResumeInfoList = ids.map(item => ({ id: item, status: 1 }))
+      let resumeInfoStatusList = ids.map(item => ({ id: item, status: 1 }))
       this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
@@ -444,7 +444,7 @@ export default {
           this.$api
             .post('/resumeInfo/deleteResumeInfo', {
               reqdata: {
-                deleteResumeInfoList
+                resumeInfoStatusList
               }
             })
             .then((res) => {

+ 22 - 9
src/views/companyManage/procedureManage.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 16:00:46
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-07-31 15:30:06
+ * @LastEditTime: 2020-08-07 14:22:57
 -->
 <template>
   <div class="indexPage">
@@ -18,6 +18,7 @@
       @editor="editor"
       @del="del"
     ></v-table>
+    <!-- :prop="'questionList.' + index + '.questionName'" -->
     <v-pager @page="callPage" :total="totalrecords"></v-pager>
     <el-dialog :visible.sync="dialogFormVisible" width="660px" :before-close="close">
       <el-form :model="form" ref="form" label-width="140px" label-position="left">
@@ -31,9 +32,9 @@
           v-for="(item, index) in form.questionList"
           :label="'面试问题' + (index + 1)"
           :key="index"
-          :prop="'questionList.' + index + '.questionName'"
+          :prop="'questionList.' + index"
           :rules="{
-            required: true, message: '问题不能为空', trigger: 'blur'
+            required: true, validator: validatePass, trigger: 'blur'
           }"
         >
           <div v-if="state!=2">
@@ -60,9 +61,9 @@
             <div>
               {{item.questionName}}
             </div>
-            <video v-if="item.videoIdList && item.videoIdList.length" :src="downList.some(i => i.id === item.videoIdList[0]).videoPath ? downList.find(i => i.id === item.videoIdList[0]).videoPath : ''" controls></video>
+            <video v-if="item.videoIdList && item.videoIdList.length" :src="downList.some(i => i.id === (activeId||item.videoIdList[0])) ? $img + downList.find(i => i.id === (activeId||item.videoIdList[0])).videoPath : ''" controls></video>
             <div class="flex">
-               <div v-for="(i, j) in item.videoIdList" :key="j" class="active" @click="active = j" :class="active === j ? 'is-active' : ''">{{downList.some(k => k.id === i).videoName ? downList.find(k => k.id === i).videoName : '无数据'}}</div>
+               <div v-for="(i, j) in item.videoIdList" :key="j" class="active" @click="active = j,activeId = j" :class="active === j ? 'is-active' : ''">{{downList.some(k => k.id === i) ? downList.find(k => k.id === i).videoName : '无数据'}}</div>
             </div>
           </div>
         </el-form-item>
@@ -79,6 +80,17 @@
 <script>
 export default {
   data () {
+    let validatePass = function (rule, value, callback) {
+      console.log(rule, value)
+      if (!value.questionName.length) {
+        callback(new Error('请输入面试问题'))
+      } else {
+        if (!value.videoIdList.length) {
+          callback(new Error('请选择面试视频'))
+        }
+        callback()
+      }
+    }
     return {
       tableList: [],
       dialogFormVisible: false,
@@ -91,6 +103,7 @@ export default {
       },
       state: 0,
       active: 0,
+      activeId: '',
       downList: [],
       pickList: [],
       list: [],
@@ -130,7 +143,8 @@ export default {
             type: 'danger'
           }
         ]
-      }
+      },
+      validatePass
     }
   },
   created () {
@@ -248,9 +262,8 @@ export default {
     },
     close () {
       this.dialogFormVisible = false
-      this.form = {
-        questionList: []
-      }
+      this.form = { processName: '', questionList: [] }
+      this.form.questionList.push({ key: 1, questionName: '' })
     },
     addDomain () {
       this.form.questionList.push({