|
|
|
@ -16,7 +16,7 @@ |
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> --> |
|
|
|
|
<div style="margin-top: 5px; margin-bottom: 10px"> |
|
|
|
|
<div style="margin-top: 5px; margin-bottom: 20px"> |
|
|
|
|
<el-button type="primary" icon="el-icon-plus" size="mini" @click="addsign">新增</el-button> |
|
|
|
|
<el-button type="warning" icon="el-icon-plus" size="mini" @click="handleImport">导入</el-button> |
|
|
|
|
</div> |
|
|
|
@ -28,6 +28,10 @@ |
|
|
|
|
<el-table-column label="证书编号" align="center" prop="certificateNo" /> |
|
|
|
|
<el-table-column label="学校" align="center" prop="university" /> |
|
|
|
|
<el-table-column label="二级学院" align="center" prop="college" /> |
|
|
|
|
<el-table-column label="年级" align="center" prop="college" /> |
|
|
|
|
<el-table-column label="专业" align="center" prop="college" /> |
|
|
|
|
<el-table-column label="水平" align="center" prop="college" /> |
|
|
|
|
<el-table-column label="是否雇用" align="center" prop="college" /> |
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" /> |
|
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -52,39 +56,43 @@ |
|
|
|
|
append-to-body |
|
|
|
|
@close="colsedia" |
|
|
|
|
> |
|
|
|
|
<el-form :model="form" :rules="rules" ref="form" label-width="70px"> |
|
|
|
|
<el-form-item label="姓名" prop="name"> |
|
|
|
|
<el-input v-model="form.name"></el-input> |
|
|
|
|
<el-form :model="form" :rules="rules" ref="form" label-width="100px" inline> |
|
|
|
|
<el-form-item label="姓名:" prop="name"> |
|
|
|
|
<el-input v-model="form.name" placeholder="请输入姓名"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="手机号" prop="phone"> |
|
|
|
|
<el-input v-model="form.phone"></el-input> |
|
|
|
|
<el-form-item label="手机号:" prop="phone"> |
|
|
|
|
<el-input v-model="form.phone" placeholder="请输入手机号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="证书编号" prop="certificateNo"> |
|
|
|
|
<el-input v-model="form.certificateNo"></el-input> |
|
|
|
|
<el-form-item label="证书编号:" prop="certificateNo"> |
|
|
|
|
<el-input v-model="form.certificateNo" placeholder="请输入证书编号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="学校" prop="university"> |
|
|
|
|
<el-input v-model="form.university"></el-input> |
|
|
|
|
<el-form-item label="学校:" prop="university"> |
|
|
|
|
<el-input v-model="form.university" placeholder="请输入学校"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="二级学院" prop="college"> |
|
|
|
|
<el-input v-model="form.college"></el-input> |
|
|
|
|
<el-form-item label="二级学院:" prop="college"> |
|
|
|
|
<el-input v-model="form.college" placeholder="请输入二级学院"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
|
<el-input v-model="form.remark"></el-input> |
|
|
|
|
<el-form-item label="年级:" prop="college"> |
|
|
|
|
<el-input v-model="form.college" placeholder="请输入年级"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item style="margin-top: 80px; text-align: center; margin-left: -150px"> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
style="width: 135px; font-size: 16px; height: 39px; line-height: 11px" |
|
|
|
|
@click="submitto('confirm')" |
|
|
|
|
>确认</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
style="width: 135px; font-size: 16px; height: 39px; line-height: 11px; margin-left: 30px" |
|
|
|
|
@click="colsedia" |
|
|
|
|
>取消</el-button |
|
|
|
|
> |
|
|
|
|
<el-form-item label="专业:" prop="college"> |
|
|
|
|
<el-input v-model="form.college" placeholder="请输入专业"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="水平:" prop="college"> |
|
|
|
|
<el-input v-model="form.college" placeholder="请输入水平"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="是否雇用:" prop="college"> |
|
|
|
|
<el-input v-model="form.college" placeholder="请输入是否雇用"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<br /> |
|
|
|
|
<el-form-item label="备注:" prop="remark"> |
|
|
|
|
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button type="primary" @click="submitto('confirm')">确认</el-button> |
|
|
|
|
<el-button @click="colsedia">取消</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<!-- 导入对话框 --> |
|
|
|
@ -143,7 +151,18 @@ export default { |
|
|
|
|
title: '新增人才', |
|
|
|
|
visibleopen: false, |
|
|
|
|
form: {}, |
|
|
|
|
rules: {}, |
|
|
|
|
rules: { |
|
|
|
|
name: [{ required: true, message: '请输入姓名', trigger: 'blur' }], |
|
|
|
|
phone: [{ required: true, message: '请输入手机号', trigger: 'blur' }], |
|
|
|
|
certificateNo: [{ required: true, message: '请输入证书编号', trigger: 'blur' }], |
|
|
|
|
university: [{ required: true, message: '请输入学校', trigger: 'blur' }], |
|
|
|
|
college: [{ required: true, message: '请输入二级学院', trigger: 'blur' }], |
|
|
|
|
|
|
|
|
|
name: [{ required: true, message: '请输入年级', trigger: 'blur' }], |
|
|
|
|
name: [{ required: true, message: '请输入专业', trigger: 'blur' }], |
|
|
|
|
name: [{ required: true, message: '请输入水平', trigger: 'blur' }], |
|
|
|
|
name: [{ required: true, message: '请输入是否雇用', trigger: 'blur' }], |
|
|
|
|
}, |
|
|
|
|
upload: { |
|
|
|
|
// 是否显示弹出层(用户导入) |
|
|
|
|
open: false, |
|
|
|
@ -195,21 +214,30 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 提交 |
|
|
|
|
async submitto() { |
|
|
|
|
submitto() { |
|
|
|
|
this.$refs['form'].validate((valid) => { |
|
|
|
|
if (valid) { |
|
|
|
|
if (this.form.talentId) { |
|
|
|
|
// 修改 |
|
|
|
|
await updateTalent(this.form) |
|
|
|
|
updateTalent(this.form).then((res) => { |
|
|
|
|
this.$message.success('修改成功') |
|
|
|
|
this.colsedia() |
|
|
|
|
this.getList() |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
// console.log(this.form); |
|
|
|
|
await addTalent(this.form) |
|
|
|
|
addTalent(this.form).then((res) => { |
|
|
|
|
this.$message.success('新增成功') |
|
|
|
|
} |
|
|
|
|
this.colsedia() |
|
|
|
|
this.getList() |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 关闭 |
|
|
|
|
colsedia() { |
|
|
|
|
this.$refs['form'].resetFields() |
|
|
|
|
this.visibleopen = false |
|
|
|
|
}, |
|
|
|
|
handleQuery() { |
|
|
|
@ -257,4 +285,7 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
::v-deep .el-textarea__inner { |
|
|
|
|
width: 500px; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|