徐桐章 4 年之前
父節點
當前提交
d020498491

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

@@ -110,7 +110,7 @@ export default {
             {
               name: '邮箱管理',
               // menuid: 202,
-              to: 'busUser'
+              to: 'mailManage'
             },
             {
               name: '数据统计',

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

@@ -7,6 +7,7 @@
       header-cell-class-name="tableHeader"
       @selection-change="handleSelectionChange"
       @sort-change='sortthiscolumn'
+      size="small"
       :row-class-name="tableRowClassName"
       style="width: 100%">
 
@@ -91,12 +92,11 @@
         <template slot-scope="scope">
           <el-button-group style="display:flex;justify-content: center;">
             <el-button
-              v-for="(item,index) in table.handle.filter(item => show!==item.show).filter(item => scope.row[item.props]===item.key)"
+              v-for="(item,index) in table.handle.filter(item => scope.row[item.props] === item.key)"
               :key="index"
               style="margin:0px;"
               class="btn handelBtn"
               :type="item.type"
-              :disabled="!!scope.row[item.disabled]"
               @click="handleMethods(scope.$index, scope.row, item)">
               {{item.title}}
               <!-- v-if="scope.row[item.props]===item.key" -->
@@ -105,7 +105,6 @@
         </template>
       </el-table-column>
     </el-table>
-    {{pickList}}
   </div>
 </template>
 

+ 6 - 1
src/router/index.js

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

+ 7 - 5
src/views/candidateManage/candidateAll.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:17:25
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-07-31 17:01:43
+ * @LastEditTime: 2020-08-03 10:37:19
 -->
 <template>
   <div class="indexPage">
@@ -32,7 +32,7 @@ export default {
       page: 1,
       totalrecords: 0,
       pickList: [],
-      info: {},
+      form: {},
       list: [
         {
           placeholder: '请输入关键字查询',
@@ -135,6 +135,7 @@ export default {
           }
         ],
         fixed: true,
+        width: 100,
         handle: [
           {
             title: '查看简历',
@@ -152,7 +153,7 @@ export default {
     this.queryData()
   },
   methods: {
-    queryData (form = {}, sort = {}) {
+    queryData (form = {}) {
       let page = this.page
       let reqdata = form
       this.$api
@@ -170,7 +171,7 @@ export default {
     },
     details (row) {
       this.open()
-      this.querydetail(row.infoId)
+      this.querydetail(row.id)
     },
     querydetail (id) {
       this.$api
@@ -181,7 +182,7 @@ export default {
         })
         .then((res) => {
           let obj = res.object
-          this.info = obj
+          this.form = obj
         })
     },
     open () {
@@ -189,6 +190,7 @@ export default {
     },
     close () {
       this.dialogFormVisible = false
+      this.form = {}
     },
     callPage (val) {
       this.page = val

+ 13 - 9
src/views/candidateManage/candidateList.vue

@@ -4,11 +4,11 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 15:25:06
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-07-30 09:54:20
+ * @LastEditTime: 2020-08-02 16:48:59
 -->
 <template>
   <div class="indexPage">
-    <v-input :btn="btn" :list="list" :sortRule="sortRule" @add="add" @del="delAll" @search="search"></v-input>
+    <v-input :btn="btn" :list="list" @del="delAll" @search="search"></v-input>
     <el-radio-group v-model="isCollapse" style="margin-bottom: 20px;">
       <el-radio-button :label="1">已通过候选人</el-radio-button>
       <el-radio-button :label="2">已淘汰候选人</el-radio-button>
@@ -36,7 +36,7 @@ export default {
       tableList: [],
       page: 1,
       sortRule: {},
-      isCollapse: 0,
+      isCollapse: 1,
       totalrecords: 0,
       pickList: [],
       form: {},
@@ -59,18 +59,22 @@ export default {
         },
         {
           type: 'select',
-          placeholder: '职位',
+          placeholder: '投递职位',
           props: '',
           options: []
+        },
+        {
+          type: 'select',
+          placeholder: '应聘职位',
+          props: '',
+          options: []
+        },
+        {
+          type: 'date'
         }
       ],
       btn: [
         {
-          name: '重置',
-          type: 'success',
-          method: ''
-        },
-        {
           name: '确定',
           type: 'primary',
           method: ''

+ 132 - 0
src/views/candidateManage/mailManage.vue

@@ -0,0 +1,132 @@
+<!--
+ * @Description: create
+ * @Version: 1.0
+ * @Autor: XuTongZhang
+ * @Date: 2020-08-03 09:38:03
+ * @LastEditors: XuTongZhang
+ * @LastEditTime: 2020-08-03 10:25:21
+-->
+<template>
+  <div class="mailManage">
+    <el-card class="box-card">
+      <el-form ref="form" :model="form51" :rules="rules" label-width="140px" label-position="left">
+        <el-form-item label="51job邮箱">
+          <el-input v-model.trim="form51.cmpMailAccount"></el-input>
+        </el-form-item>
+        <el-form-item label="密码">
+          <el-input v-model.trim="form51.cmpMailPassword" show-password></el-input>
+        </el-form-item>
+        <el-form-item class="button-grounp">
+          <el-button type="primary" @click="determine(0)">验证并使用</el-button>
+        </el-form-item>
+      </el-form>
+      <el-form ref="form" :model="formzl" :rules="rules" label-width="140px" label-position="left">
+        <el-form-item label="智联邮箱">
+          <el-input v-model.trim="formzl.cmpMailAccount"></el-input>
+        </el-form-item>
+        <el-form-item label="密码">
+          <el-input v-model.trim="formzl.cmpMailPassword" show-password></el-input>
+        </el-form-item>
+        <el-form-item class="button-grounp">
+          <el-button type="primary" @click="determine(1)">验证并使用</el-button>
+        </el-form-item>
+      </el-form>
+      <el-form ref="form" :model="form58" :rules="rules" label-width="140px" label-position="left">
+        <el-form-item label="58邮箱">
+          <el-input v-model.trim="form58.cmpMailAccount"></el-input>
+        </el-form-item>
+        <el-form-item label="密码">
+          <el-input v-model.trim="form58.cmpMailPassword" show-password></el-input>
+        </el-form-item>
+        <el-form-item class="button-grounp">
+          <el-button type="primary" @click="determine(2)">验证并使用</el-button>
+        </el-form-item>
+        <div class="info">提示:接受简历的邮箱地址或者密码变更后,需要在本页面修改并点击重新验证,生效时间约30分钟至1小时;如未生效,请联系平台管理员。</div>
+      </el-form>
+    </el-card>
+  </div>
+</template>
+
+<script>
+export default {
+  data () {
+    let determine = function (val) {
+      let reqdata = val === 0 ? this.form51 : val === 1 ? this.formzl : this.form58
+      reqdata.cmpMailType = val
+      this.$api
+        .post('/companyAccount/updateCompanyAccount', {
+          reqdata
+        })
+        .then((res) => {
+          this.queryData()
+          this.$message({
+            type: 'success',
+            message: '修改成功!'
+          })
+        })
+    }
+    let queryDate = function () {
+      this.$api
+        .post('/companyAccount/queryCompanyAccountList', {
+          reqdata: {}
+        })
+        .then((res) => {
+          try {
+            this.form51 = res.list[0]
+            this.formzl = res.list[1]
+            this.form58 = res.list[2]
+          } catch (error) {
+
+          }
+        })
+    }
+    return {
+      form51: {},
+      formzl: {},
+      form58: {},
+      determine,
+      queryDate,
+      rules: {
+        cmpMailAccount: [
+          { required: true, message: '请输入邮箱账号', trigger: 'blur' }
+        ],
+        cmpMailPassword: [
+          { required: true, message: '请输入邮箱密码', trigger: 'blur' }
+        ]
+      }
+    }
+  },
+  created () {
+    this.queryDate()
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+.mailManage {
+  display: flex;
+  justify-content: center;
+  align-content: center;
+}
+.box-card {
+  width: 800rpx;
+  padding: 18px 0;
+}
+.button-grounp {
+  display: flex;
+  justify-content: flex-end;
+}
+.info {
+  width: 540px;
+  color: #bbb;
+  font-size: 12px;
+}
+</style>
+
+<style lang="scss">
+.mailManage {
+  .el-input__inner {
+    width: 400px !important;
+  }
+}
+</style>

+ 22 - 14
src/views/candidateManage/resume.vue

@@ -4,22 +4,23 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:32:00
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-07-30 11:55:29
+ * @LastEditTime: 2020-08-03 10:34:57
 -->
 <template>
     <div>
-        <el-dialog :visible.sync="dialogFormVisible" width="1200px" :before-close="close" :show-close="false">
+        <el-dialog :visible.sync="dialogFormVisible" width="1500px" :before-close="close" :close-on-click-modal="false" :show-close="false">
             <div class="flex">
                 <div class="left">
                     <div class="top">
                         <div class="title">小八的面试视频:</div>
                         <div class="video">
-                            <video width="500" controls src="https://vdept.bdstatic.com/324b4d51474d51685674525a7a397737/424e6c6a6b354875/e4f949c59a0a5afc39446b7e83c8e2893ec5727c25bd8fde06c2adaa08b7cf820228b97312bb8b487ef1f73ac3aaf66af73fd54d4fd6f64d5f280059490670d7.mp4?auth_key=1596084985-0-0-014de3491d14f4f16a570bc972366f96"></video>
+                            <video width="100%" controls src="https://vdept.bdstatic.com/324b4d51474d51685674525a7a397737/424e6c6a6b354875/e4f949c59a0a5afc39446b7e83c8e2893ec5727c25bd8fde06c2adaa08b7cf820228b97312bb8b487ef1f73ac3aaf66af73fd54d4fd6f64d5f280059490670d7.mp4?auth_key=1596084985-0-0-014de3491d14f4f16a570bc972366f96"></video>
                         </div>
                         <div class="list">
-                            <div class="is-active">视频第一段</div>
-                            <div>视频第二段</div>
-                            <div>视频第三段</div>
+                            <div @click="active = 0" :class="active === 0 ? 'is-active' : ''">视频第一段</div>
+                            <div @click="active = 1" :class="active === 1 ? 'is-active' : ''">视频第二段</div>
+                            <div @click="active = 2" :class="active === 2 ? 'is-active' : ''">视频第三段</div>
+                            <!-- <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>
                     </div>
                     <div class="center">
@@ -39,7 +40,7 @@
                     </div>
                 </div>
                 <div class="right">
-                    <div></div>
+                    <iframe width="100%" height="100%" src="http://cdn.info666.com/yc1min/resume/resume.html"></iframe>
                 </div>
             </div>
         </el-dialog>
@@ -50,7 +51,8 @@
 export default {
   data () {
     return {
-      positionIntroduce: ''
+      positionIntroduce: '',
+      active: 0
     }
   },
   props: {
@@ -75,6 +77,8 @@ export default {
         display: flex;
         justify-content: space-between;
         .left {
+            flex: 1;
+            margin-right: 20px;
             .top {
                 .title {
                     font-size: 28px;
@@ -91,6 +95,8 @@ export default {
                     }
                     .is-active {
                         color: #000;
+                        font-size: 16px;
+                        margin-top: 7px;
                     }
                 }
             }
@@ -108,13 +114,15 @@ export default {
             }
         }
         .right {
-            margin-left: 30px;
-            flex: 1;
+            // margin-left: 30px;
+            // flex: 1;
             overflow: scroll;
-            height: 554px;
-            > div {
-                // background-color:goldenrod;
-                height: 100vh;
+            width: 770px;
+            iframe {
+                border: none;
+                html {
+                    width: 100%;
+                }
             }
         }
     }

+ 240 - 66
src/views/candidateManage/resumeList.vue

@@ -4,11 +4,19 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 09:53:19
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-07-31 19:43:48
+ * @LastEditTime: 2020-08-02 16:59:20
 -->
 <template>
   <div class="indexPage">
-    <v-input :btn="btn" :list="list" @del="delAll" @notice="noticeAll" @through="throughAll" @eliminate="eliminateAll" @search="search"></v-input>
+    <v-input
+      :btn="btn"
+      :list="list"
+      @del="delAll"
+      @notice="noticeAll"
+      @through="throughAll"
+      @eliminate="eliminateAll"
+      @search="search"
+    ></v-input>
     <el-radio-group v-model="isCollapse" style="margin-bottom: 20px;">
       <el-radio-button :label="1">未读简历</el-radio-button>
       <el-radio-button :label="2">已通过简历</el-radio-button>
@@ -21,7 +29,7 @@
       :tableList="tableList"
       :sortType="true"
       :queryData="queryData"
-      :form="form"
+      :form="searchForm"
       @details="details"
       @notice="notice"
       @through="through"
@@ -31,19 +39,23 @@
       id="id"
     ></v-table>
     <v-pager @page="callPage" :total="totalrecords"></v-pager>
-    <el-dialog :visible.sync="dialogFormVisible" width="600px" :before-close="close" :show-close="false">
+    <el-dialog
+      :visible.sync="dialogFormVisible"
+      width="600px"
+      :before-close="close"
+      :show-close="false"
+    >
       <el-form :model="form" ref="form" label-width="140px" :rules="rules" label-position="left">
-        <el-form-item label-width="0" prop="pickList">
+        <el-form-item label-width="0">
           <div class="title">通知群发列表</div>
           <div class="content">
             <el-tag
-              v-for="(item, index) in pickList"
+              v-for="(item, index) in copyPickList"
               :key="item"
               closable
-              @close="pickList.splice(index, 1)"
-              type="success">
-              {{tableList.find(i => i.id === item).delivererName}}
-            </el-tag>
+              @close="copyPickList.splice(index, 1)"
+              type="success"
+            >{{tableList.find(i => i.id === item).delivererName}}</el-tag>
           </div>
         </el-form-item>
         <el-form-item label="选择群发模板" prop="templateId">
@@ -57,9 +69,7 @@
           </el-select>
           <!-- <div v-else>{{this.downList1.some(i => i.id === form.processId) ? this.downList1.find(i => i.id === form.processId).processName : ''}}</div> -->
         </el-form-item>
-        <el-form-item label="群发邮箱">
-          139820930@qq.com
-        </el-form-item>
+        <el-form-item label="群发邮箱">139820930@qq.com</el-form-item>
         <el-form-item>
           <el-button type="primary" @click="launch">立即发出</el-button>
         </el-form-item>
@@ -71,28 +81,21 @@
 <script>
 export default {
   data () {
-    let validcodeName = (rule, value, callback) => {
-      if (!value.length) {
-        callback(new Error('通知对象数不能零'))
-      } else {
-        callback()
-      }
-    }
     return {
       tableList: [],
       dialogFormVisible: false,
       page: 1,
-      sortRule: {},
       isCollapse: 1,
       totalrecords: 0,
       pickList: [],
+      copyPickList: [],
       downList: [],
       form: {},
+      searchForm: {},
       rules: {
-        pickList: [
-          { required: true, validator: validcodeName, trigger: 'blur' }
-        ],
-        templateId: [{ required: true, message: '请选择群发模板', trigger: 'blur' }]
+        templateId: [
+          { required: true, message: '请选择群发模板', trigger: 'blur' }
+        ]
       },
       list: [
         {
@@ -112,7 +115,10 @@ export default {
           type: 'select',
           placeholder: '来源',
           props: 'resumeFrom',
-          options: [{ label: '51job', value: 0 }, { label: '智联', value: 1 }]
+          options: [
+            { label: '51job', value: 0 },
+            { label: '智联', value: 1 }
+          ]
         },
         {
           type: 'select',
@@ -189,7 +195,6 @@ export default {
           }
         ],
         width: 500,
-        fixed: true,
         handle: [
           {
             title: '查看简历',
@@ -263,7 +268,6 @@ export default {
           }
         ],
         width: 300,
-        fixed: true,
         handle: [
           {
             title: '查看简历',
@@ -291,6 +295,7 @@ export default {
   methods: {
     queryData (form = {}) {
       let page = this.page
+      this.searchForm = form
       let reqdata = form
       this.$api
         .post('/resumeInfo/queryResumeList', {
@@ -310,12 +315,21 @@ export default {
         .then((res) => {
           this.downList = res.list
         })
+      this.$api
+        .post('/position/queryPositionList', {
+          reqdata: {}
+        })
+        .then((res) => {
+          this.list[3].options = res.list.map((item) => ({
+            value: item.id,
+            label: item.positionName
+          }))
+        })
     },
-    search (form, sortRule) {
+    search (form) {
       this.queryData(form)
     },
     details ({ id }) {
-      // this.open()
       this.$api
         .post('/resumeInfo/queryResumeInfoDetail', {
           reqdata: {
@@ -327,36 +341,37 @@ export default {
         })
     },
     launch () {
-      let reqdata = { id: this.pickList }
-      this.$api
-        .post('/resumeInfo/queryResumeInfoDetail', {
-          reqdata
-        })
-        .then((res) => {
-          window.open(this.$img + res.object.filePath)
-        })
-    },
-    notice (row, type = false) {
-      let ids = type ? row : [row.id]
-      this.$api
-        .post('/resumeInfo/sendInviteMail', {
-          reqdata: {
-            ids
-          }
-        })
-        .then((res) => {
-          this.$message({
-            message: '通知成功',
-            type: 'success'
+      let a
+      this.$refs['form'].validate((valid) => {
+        a = valid
+      })
+      if (!a) return
+      this.copyPickList.length
+        ? this.$api
+          .post('/resumeInfo/sendInviteMail', {
+            reqdata: {
+              ids: this.copyPickList,
+              templateId: this.form.templateId
+            }
           })
-          this.queryData(this.form)
-        })
+          .then((res) => {
+            this.$message({
+              message: '通知成功',
+              type: 'success'
+            })
+            this.close()
+            this.queryData(this.searchForm)
+          })
+        : this.$message({ type: 'info', message: '请添加需要通知的对象' })
+    },
+    notice (row) {
+      this.open()
+      this.copyPickList = [row.id]
     },
     noticeAll () {
       this.pickList.length
-        // ? this.notice(this.pickList, true)
         ? this.open()
-        : this.$message({ type: 'info', message: '请选择需要通知的内容' })
+        : this.$message({ type: 'info', message: '请选择需要通知的对象' })
     },
     through (row, type = false) {
       let ids = type ? row : [row.id]
@@ -367,12 +382,12 @@ export default {
           }
         })
         .then((res) => {
-          this.queryData(this.form)
+          this.queryData(this.searchForm)
         })
     },
     throughAll () {
       this.pickList.length
-        ? this.through(this.pickList, true)
+        ? this.through(this.copyPickList, true)
         : this.$message({ type: 'info', message: '请选择通过的应聘者' })
     },
     eliminate (row, type = false) {
@@ -384,7 +399,7 @@ export default {
           }
         })
         .then((res) => {
-          this.queryData(this.form)
+          this.queryData(this.searchForm)
         })
     },
     eliminateAll () {
@@ -407,7 +422,7 @@ export default {
               }
             })
             .then((res) => {
-              this.queryData(this.form, this.sortRule)
+              this.queryData(this.searchForm)
               this.$message({
                 type: 'success',
                 message: '删除成功!'
@@ -434,21 +449,180 @@ export default {
     },
     close () {
       this.dialogFormVisible = false
+      this.form = {}
+      this.copyPickList = Array.from(JSON.parse(JSON.stringify(this.pickList)))
     },
     callPage (val) {
       this.page = val
-      this.queryData(this.form)
+      this.queryData(this.searchForm)
+    }
+  },
+  watch: {
+    pickList () {
+      this.copyPickList = Array.from(JSON.parse(JSON.stringify(this.pickList)))
+    },
+    isCollapse () {
+      this.$set(
+        this.table,
+        'handle',
+        this.isCollapse === 1
+          ? [
+            {
+              title: '查看简历',
+              method: 'details',
+              type: 'info'
+            },
+            {
+              title: '通知面试',
+              method: 'notice',
+              type: 'success'
+            },
+            {
+              title: '标记通过',
+              method: 'through',
+              type: 'primary'
+            },
+            {
+              title: '标记淘汰',
+              method: 'eliminate',
+              type: 'warning'
+            },
+            {
+              title: '删除',
+              method: 'del',
+              type: 'danger'
+            }
+          ]
+          : this.isCollapse === 2
+            ? [
+              {
+                title: '查看简历',
+                method: 'details',
+                type: 'info'
+              },
+              {
+                title: '标记通过',
+                method: 'through',
+                type: 'primary'
+              },
+              {
+                title: '标记淘汰',
+                method: 'eliminate',
+                type: 'warning'
+              },
+              {
+                title: '删除',
+                method: 'del',
+                type: 'danger'
+              }
+            ]
+            : [
+              {
+                title: '查看简历',
+                method: 'details',
+                type: 'info'
+              },
+              {
+                title: '通知面试',
+                method: 'notice',
+                type: 'success'
+              },
+              {
+                title: '标记通过',
+                method: 'through',
+                type: 'primary'
+              },
+              {
+                title: '删除',
+                method: 'del',
+                type: 'danger'
+              }
+            ]
+      )
+      this.$set(
+        this.$data,
+        'btn',
+        this.isCollapse === 1
+          ? [
+            {
+              name: '确定',
+              type: 'primary',
+              method: 'search'
+            },
+            {
+              name: '通知面试',
+              type: 'success',
+              method: 'notice'
+            },
+            {
+              name: '标记通过',
+              type: 'primary',
+              method: 'through'
+            },
+            {
+              name: '标题淘汰',
+              type: 'warning',
+              method: 'eliminate'
+            }
+          ]
+          : this.isCollapse === 2
+            ? [
+              {
+                name: '确定',
+                type: 'primary',
+                method: 'search'
+              },
+              {
+                name: '标记通过',
+                type: 'primary',
+                method: 'through'
+              },
+              {
+                name: '标题淘汰',
+                type: 'warning',
+                method: 'eliminate'
+              }
+            ]
+            : this.isCollapse === 3
+              ? [
+                {
+                  name: '删除',
+                  type: 'danger',
+                  method: 'del'
+                }
+              ]
+              : [
+                {
+                  name: '确定',
+                  type: 'primary',
+                  method: 'search'
+                },
+                {
+                  name: '标记通过',
+                  type: 'primary',
+                  method: 'through'
+                },
+                {
+                  name: '删除',
+                  type: 'danger',
+                  method: 'del'
+                }
+              ]
+      )
     }
   }
 }
 </script>
 
 <style lang="scss" scoped>
-  .title {
-    font-size: 20px;
-    font-weight: bold;
-  }
-  .content {
-    min-height: 30px;
+.title {
+  font-size: 20px;
+  font-weight: bold;
+}
+.content {
+  min-height: 50px;
+  > span {
+    margin: 5px;
   }
+}
 </style>

+ 9 - 5
src/views/companyManage/positionInfo.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 17:19:43
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-07-31 15:30:32
+ * @LastEditTime: 2020-08-02 16:10:36
 -->
 <template>
   <div class="indexPage">
@@ -22,22 +22,26 @@
     <el-dialog width="600px" :visible.sync="dialogFormVisible" :before-close="close">
       <el-form :model="form" ref="form" label-width="140px" :rules="rules" label-position="left">
         <el-form-item label="职位名称" prop="positionName">
-          <el-input v-model="form.positionName" placeholder="请输入职位名称" autocomplete="off"></el-input>
+          <el-input v-if="state!==2" v-model="form.positionName" placeholder="请输入职位名称" autocomplete="off"></el-input>
+          <div v-else>{{form.positionName}}</div>
         </el-form-item>
         <el-form-item label="职位描述" prop="positionIntroduce">
           <el-input
+            v-if="state!==2"
             type="textarea"
             :rows="4"
             resize="none"
             placeholder="请输入内容"
             v-model="form.positionIntroduce"
           ></el-input>
+          <div v-else>{{form.positionIntroduce}}</div>
         </el-form-item>
         <el-form-item label="职位状态" prop="status">
-          <el-radio-group v-model="form.status">
+          <el-radio-group v-if="state!==2" v-model="form.status">
             <el-radio :label="0">启用</el-radio>
             <el-radio :label="1">禁用</el-radio>
           </el-radio-group>
+          <div v-else>{{['启用', '禁用'][form.status]}}</div>
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -146,11 +150,11 @@ export default {
     },
     details (row) {
       this.getDetails(row)
-      this.state = 1
+      this.state = 2
     },
     editor (row) {
       this.getDetails(row)
-      this.state = 2
+      this.state = 1
     },
     del (row) {
       this.$api

+ 1 - 12
src/views/companyManage/videoManage.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 16:06:20
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-07-31 15:29:19
+ * @LastEditTime: 2020-08-02 16:32:18
 -->
 <template>
   <div class="indexPage">
@@ -177,20 +177,9 @@ export default {
         })
     },
     handleAvatarSuccess (res, file) {
-      // this.url = res
       this.$set(this.form, 'videoPath', res)
     },
     beforeAvatarUpload (file) {
-      console.log(file)
-      // const isJPG = true || file.type.includes('image')
-      // const isLt10M = file.size / 1024 / 1024 < 10
-      // if (!isJPG) {
-      //   this.$message.error('上传文件只能是图片!')
-      // }
-      // if (!isLt10M) {
-      //   this.$message.error('上传图片大小不能超过 10MB!')
-      // }
-      // return isLt10M && isJPG
       return file.type === 'video/mp4'
     },
     open () {