|
@@ -22,7 +22,9 @@
|
|
<el-form-item label-width="0">
|
|
<el-form-item label-width="0">
|
|
<div class="title">通知群发列表</div>
|
|
<div class="title">通知群发列表</div>
|
|
<div class="content">
|
|
<div class="content">
|
|
- <el-tag v-for="(item, index) in copyPickList" :key="item" closable @close="copyPickList.splice(index, 1)" type="success">{{tableList.some(i => i.id === item) ? tableList.find(i => i.id === item).delivererName : ''}}</el-tag>
|
|
|
|
|
|
+ <el-tag v-for="(item, index) in copyPickList" :key="item" closable @close="copyPickList.splice(index, 1)" :type="errorlist.includes(item)?'danger':'success'">
|
|
|
|
+ {{tableList.some(i => i.id === item) ? tableList.find(i => i.id === item).delivererName + (tableList.find(i => i.id === item).delivererMail || '(无邮箱)') : ''}}
|
|
|
|
+ </el-tag>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="选择群发模板" prop="templateId">
|
|
<el-form-item label="选择群发模板" prop="templateId">
|
|
@@ -61,9 +63,9 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="简历投递职位" prop="positionApplied">
|
|
|
|
|
|
+ <!-- <el-form-item label="简历投递职位" prop="positionApplied">
|
|
<el-input placeholder="请输入投递职位" v-model="uform.positionApplied"></el-input>
|
|
<el-input placeholder="请输入投递职位" v-model="uform.positionApplied"></el-input>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<el-form-item label="工作年限" prop="delivererWorkExp">
|
|
<el-form-item label="工作年限" prop="delivererWorkExp">
|
|
<el-input placeholder="请输入工作年限" v-model="uform.delivererWorkExp"></el-input>
|
|
<el-input placeholder="请输入工作年限" v-model="uform.delivererWorkExp"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -122,6 +124,7 @@ export default {
|
|
copyPickList: [],
|
|
copyPickList: [],
|
|
downList: [],
|
|
downList: [],
|
|
positionList: [],
|
|
positionList: [],
|
|
|
|
+ errorlist: [],
|
|
searchForm: {},
|
|
searchForm: {},
|
|
form: {},
|
|
form: {},
|
|
uform: {},
|
|
uform: {},
|
|
@@ -314,10 +317,10 @@ export default {
|
|
props: 'recruitType',
|
|
props: 'recruitType',
|
|
options: ['社招', '校招', '直接校招']
|
|
options: ['社招', '校招', '直接校招']
|
|
},
|
|
},
|
|
- {
|
|
|
|
- label: '简历投递职位',
|
|
|
|
- props: 'positionApplied'
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // label: '简历投递职位',
|
|
|
|
+ // props: 'positionApplied'
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
label: '面试应聘职位',
|
|
label: '面试应聘职位',
|
|
props: 'positionName'
|
|
props: 'positionName'
|
|
@@ -400,10 +403,10 @@ export default {
|
|
props: 'resumeFrom',
|
|
props: 'resumeFrom',
|
|
options: ['51job', '智联招聘', '58同城', '平台']
|
|
options: ['51job', '智联招聘', '58同城', '平台']
|
|
},
|
|
},
|
|
- {
|
|
|
|
- label: '简历投递职位',
|
|
|
|
- props: 'positionApplied'
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // label: '简历投递职位',
|
|
|
|
+ // props: 'positionApplied'
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
label: '面试应聘职位',
|
|
label: '面试应聘职位',
|
|
props: 'positionName'
|
|
props: 'positionName'
|
|
@@ -435,7 +438,7 @@ export default {
|
|
],
|
|
],
|
|
width: 360,
|
|
width: 360,
|
|
handle: [{
|
|
handle: [{
|
|
- title: '查看简历',
|
|
|
|
|
|
+ title: '查看',
|
|
method: 'details',
|
|
method: 'details',
|
|
type: 'info'
|
|
type: 'info'
|
|
},
|
|
},
|
|
@@ -476,10 +479,10 @@ export default {
|
|
props: 'resumeFrom',
|
|
props: 'resumeFrom',
|
|
options: ['51job', '智联招聘', '58同城', '平台']
|
|
options: ['51job', '智联招聘', '58同城', '平台']
|
|
},
|
|
},
|
|
- {
|
|
|
|
- label: '简历投递职位',
|
|
|
|
- props: 'positionApplied'
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // label: '简历投递职位',
|
|
|
|
+ // props: 'positionApplied'
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
label: '面试应聘职位',
|
|
label: '面试应聘职位',
|
|
props: 'positionName'
|
|
props: 'positionName'
|
|
@@ -619,16 +622,18 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- this.$message({
|
|
|
|
- message: '通知成功',
|
|
|
|
- type: 'success'
|
|
|
|
|
|
+ this.$alert(`${res.object.successTotal}条发送成功,${res.object.failTotal}条发送失败!`, '发送结果', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ callback: action => {
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.errorlist = res.object.sendMailFailList.map(item => {
|
|
|
|
+ return item.id
|
|
})
|
|
})
|
|
- this.close()
|
|
|
|
- this.queryData(this.searchForm)
|
|
|
|
})
|
|
})
|
|
: this.$message({
|
|
: this.$message({
|
|
type: 'info',
|
|
type: 'info',
|
|
- message: '请添加需要通知的对象'
|
|
|
|
|
|
+ message: '请添加需要通知的对象!'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
notice (row) {
|
|
notice (row) {
|
|
@@ -640,7 +645,7 @@ export default {
|
|
? this.open()
|
|
? this.open()
|
|
: this.$message({
|
|
: this.$message({
|
|
type: 'info',
|
|
type: 'info',
|
|
- message: '请选择需要通知的对象'
|
|
|
|
|
|
+ message: '请选择需要通知的对象!'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
through (row, type = false) {
|
|
through (row, type = false) {
|
|
@@ -664,7 +669,7 @@ export default {
|
|
? this.through(this.pickList, true)
|
|
? this.through(this.pickList, true)
|
|
: this.$message({
|
|
: this.$message({
|
|
type: 'info',
|
|
type: 'info',
|
|
- message: '请选择通过的应聘者'
|
|
|
|
|
|
+ message: '请选择通过的应聘者!'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
eliminate (row, type = false) {
|
|
eliminate (row, type = false) {
|
|
@@ -688,7 +693,7 @@ export default {
|
|
? this.eliminate(this.pickList, true)
|
|
? this.eliminate(this.pickList, true)
|
|
: this.$message({
|
|
: this.$message({
|
|
type: 'info',
|
|
type: 'info',
|
|
- message: '请选择被淘汰的应聘者'
|
|
|
|
|
|
+ message: '请选择被淘汰的应聘者!'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
del (row, type = false) {
|
|
del (row, type = false) {
|
|
@@ -794,6 +799,7 @@ export default {
|
|
close () {
|
|
close () {
|
|
this.dialogFormVisible = false
|
|
this.dialogFormVisible = false
|
|
this.form = {}
|
|
this.form = {}
|
|
|
|
+ this.queryData(this.searchForm)
|
|
this.copyPickList = Array.from(this.pickList)
|
|
this.copyPickList = Array.from(this.pickList)
|
|
},
|
|
},
|
|
closeDia () {
|
|
closeDia () {
|
|
@@ -926,4 +932,12 @@ export default {
|
|
margin-top: 7px;
|
|
margin-top: 7px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.content {
|
|
|
|
+ min-height: 50px;
|
|
|
|
+
|
|
|
|
+ >span {
|
|
|
|
+ margin: 5px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|