|
|
@@ -1,9 +1,17 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class="count-list" v-if="auditData">
|
|
|
- <div class="count-item">全部:{{count.countAuditAgencyPost}}</div>
|
|
|
- <div class="count-item">开放中:{{count.countOpen}}</div>
|
|
|
- <div class="count-item">累计新增下载量:{{count.countDownload}}</div>
|
|
|
+ <div class="count-item">全部:{{count.all.total || 0}}</div>
|
|
|
+ <div class="count-item">邮箱:{{count.all.email || 0}}</div>
|
|
|
+ <div>短信:{{count.all.phone || 0}}</div>
|
|
|
+ <el-divider direction="vertical"></el-divider>
|
|
|
+ <div class="count-item">开放中:{{count.open.total || 0}}</div>
|
|
|
+ <div class="count-item">邮箱:{{count.open.email || 0}}</div>
|
|
|
+ <div>短信:{{count.open.phone || 0}}</div>
|
|
|
+ <el-divider direction="vertical"></el-divider>
|
|
|
+ <div class="count-item">累计新增下载量:{{count.add.total || 0}}</div>
|
|
|
+ <div class="count-item">邮箱:{{count.add.email || 0}}</div>
|
|
|
+ <div class="count-item">短信:{{count.add.phone || 0}}</div>
|
|
|
<div>
|
|
|
<el-button size="small" @click="onAdd">新建岗位</el-button>
|
|
|
</div>
|
|
|
@@ -11,6 +19,13 @@
|
|
|
<div>
|
|
|
<el-table :data="auditData" @row-click="clickRow" border style="width: 100%">
|
|
|
<el-table-column prop="id" label="岗位ID" width="70"></el-table-column>
|
|
|
+ <el-table-column prop="id" label="代发类型">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.issuedType == '1'">邮箱代发</span>
|
|
|
+ <span v-else-if="scope.row.issuedType == '2'">短信代发</span>
|
|
|
+ <span v-else>-</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="occupationName" label="职位类型"></el-table-column>
|
|
|
<el-table-column prop="workTypeName" label="工作方式"></el-table-column>
|
|
|
<el-table-column label="工作周期">
|
|
|
@@ -63,9 +78,20 @@
|
|
|
</div>
|
|
|
<el-dialog title="新建岗位" :visible.sync="agencyPost" :closeOnClickModal="false" :closeOnPressEscape="false">
|
|
|
<el-form :model="agencyPostForm" :rules="rules" ref="agencyPostForm" label-width="100px" class="demo-ruleForm">
|
|
|
- <el-form-item label="目标邮箱" prop="email">
|
|
|
+ <el-form-item label="代发类型" prop="workType">
|
|
|
+ <el-radio-group v-model="agencyPostForm.issuedType">
|
|
|
+ <el-radio :label="1">邮箱代发</el-radio>
|
|
|
+ <el-radio :label="2">短信代发</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="目标邮箱" :prop="agencyPostForm.issuedType == 1?'email':''"
|
|
|
+ v-if="agencyPostForm.issuedType == 1">
|
|
|
<el-input v-model="agencyPostForm.email"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="手机号码" :prop="agencyPostForm.issuedType == 2?'phone':''"
|
|
|
+ v-if="agencyPostForm.issuedType == 2">
|
|
|
+ <el-input type="number" v-model="agencyPostForm.phone"></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="企业名称" prop="name">
|
|
|
<el-input v-model="agencyPostForm.name"></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -177,13 +203,18 @@
|
|
|
agencyPost: false,
|
|
|
loading: false,
|
|
|
agencyPostForm: {
|
|
|
- workType: 2, skills: []
|
|
|
+ // workType: 2, skills: [11815],issuedType:1
|
|
|
+ workType: 2, skills: [], issuedType: 1
|
|
|
},
|
|
|
rules: {
|
|
|
email: [
|
|
|
{required: true, message: '请输入目标邮箱', trigger: 'blur'},
|
|
|
{type: 'email', message: '邮箱格式不正确', trigger: 'blur'}
|
|
|
],
|
|
|
+ phone: [
|
|
|
+ {required: true, message: '请输入手机号码', trigger: 'blur'},
|
|
|
+ // {type: 'phone', message: '手机号码格式不正确', trigger: 'blur'}
|
|
|
+ ],
|
|
|
name: [
|
|
|
{required: true, message: '请输入企业名称', trigger: 'blur'},
|
|
|
{min: 3, max: 50, message: '长度在 3 到 50 个字符', trigger: 'blur'}
|
|
|
@@ -366,10 +397,10 @@
|
|
|
areas: [], //工作地点
|
|
|
positionType: [], //职位类型
|
|
|
skillsData: [], //技能类型
|
|
|
- count:{
|
|
|
- countAuditAgencyPost:0,
|
|
|
- countOpen:0,
|
|
|
- countDownload:0,
|
|
|
+ count: {
|
|
|
+ all:{},
|
|
|
+ open:{},
|
|
|
+ add:{}
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
@@ -388,9 +419,11 @@
|
|
|
let res = await this.$post("/api/admin/recruit/getAuditAgencyPostList", data);
|
|
|
if (res && res.status === 1) {
|
|
|
this.auditData = res.data.list || [];
|
|
|
- this.count.countOpen = res.data.countOpen || 0;
|
|
|
- this.count.countAuditAgencyPost = res.data.countAuditAgencyPost || 0;
|
|
|
- this.count.countDownload = res.data.countDownload || 0;
|
|
|
+ this.count = res.data.countData || {
|
|
|
+ all:{},
|
|
|
+ open:{},
|
|
|
+ add:{}
|
|
|
+ };
|
|
|
this.total = res.data.total * 1;
|
|
|
}
|
|
|
},
|
|
|
@@ -548,6 +581,8 @@
|
|
|
async submitForm() {
|
|
|
let formData = this.agencyPostForm;
|
|
|
let data = {
|
|
|
+ issuedType: formData.issuedType,
|
|
|
+ phone: formData.phone,
|
|
|
email: formData.email,
|
|
|
name: formData.name,
|
|
|
occupationId: formData.occupationId,
|
|
|
@@ -566,7 +601,7 @@
|
|
|
if (res && res.status === 1) {
|
|
|
this.agencyPost = false;
|
|
|
this.agencyPostForm = {
|
|
|
- workType: 2, skills: []
|
|
|
+ workType: 2, skills: [], issuedType: 1
|
|
|
};
|
|
|
this.getAuditList();
|
|
|
this.$message({
|