|
@@ -58,7 +58,11 @@
|
|
:rules="[
|
|
:rules="[
|
|
{required: true, message:'请输入身份证号码', trigger:'blur'}
|
|
{required: true, message:'请输入身份证号码', trigger:'blur'}
|
|
]">
|
|
]">
|
|
- <el-input v-model="inputForm.idCard" @input="validID(null, inputForm.idCard)"></el-input>
|
|
|
|
|
|
+ <el-input v-model="inputForm.idCard"
|
|
|
|
+ onkeyup="value=value.replace(/[^\d]/g,'')"
|
|
|
|
+ oninput="if(value.length>18)value=value.slice(0,18)"
|
|
|
|
+ @input="validID(null, inputForm.idCard)">
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -71,6 +75,7 @@
|
|
<el-col :span="10">
|
|
<el-col :span="10">
|
|
<el-form-item label="出生日期" prop="birthday">
|
|
<el-form-item label="出生日期" prop="birthday">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
|
+ :disabled="true"
|
|
v-model="inputForm.birthday"
|
|
v-model="inputForm.birthday"
|
|
type="date"
|
|
type="date"
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
@@ -89,7 +94,11 @@
|
|
|
|
|
|
<el-col :span="10">
|
|
<el-col :span="10">
|
|
<el-form-item label="移动电话" prop="mobilePhone">
|
|
<el-form-item label="移动电话" prop="mobilePhone">
|
|
- <el-input v-model="inputForm.mobilePhone" placeholder="请填写移动电话"></el-input>
|
|
|
|
|
|
+ <el-input v-model="inputForm.mobilePhone"
|
|
|
|
+ placeholder="请填写移动电话"
|
|
|
|
+ onkeyup="value=value.replace(/[^\d]/g,'')"
|
|
|
|
+ oninput="if(value.length>11)value=value.slice(0,11)">
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -366,7 +375,8 @@
|
|
<el-input v-model="scope.row.major" ></el-input>
|
|
<el-input v-model="scope.row.major" ></el-input>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
- <vxe-table-column field="education" title="学历" :edit-render="{name: '$select'}">
|
|
|
|
|
|
+ <vxe-table-column field="education" title="学历"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_education')}">
|
|
<template v-slot:edit="scope" >
|
|
<template v-slot:edit="scope" >
|
|
<vxe-select v-model="scope.row.education">
|
|
<vxe-select v-model="scope.row.education">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -378,7 +388,8 @@
|
|
</vxe-select>
|
|
</vxe-select>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
- <vxe-table-column field="degree" title="学位" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="degree" title="学位"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_degree')}">
|
|
<template v-slot:edit="scope" >
|
|
<template v-slot:edit="scope" >
|
|
<vxe-select v-model="scope.row.degree">
|
|
<vxe-select v-model="scope.row.degree">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -390,7 +401,8 @@
|
|
</vxe-select>
|
|
</vxe-select>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
- <vxe-table-column field="educationType" title="学历性质" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="educationType" title="学历性质"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_education_type')}">
|
|
<template v-slot:edit="scope" >
|
|
<template v-slot:edit="scope" >
|
|
<vxe-select v-model="scope.row.educationType">
|
|
<vxe-select v-model="scope.row.educationType">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -467,9 +479,17 @@
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
>
|
|
>
|
|
|
|
|
|
- <vxe-table-column field="name" title="合同类型" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="contractType" title="合同类型"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_contract_type')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
-
|
|
|
|
|
|
+ <vxe-select v-model="scope.row.contractType">
|
|
|
|
+ <vxe-option
|
|
|
|
+ v-for="item in $dictUtils.getDictList('sys_user_contract_type')"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ :label="item.label">
|
|
|
|
+ </vxe-option>
|
|
|
|
+ </vxe-select>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
<vxe-table-column field="contractNumber" title="合同编号" :edit-render="{}">
|
|
<vxe-table-column field="contractNumber" title="合同编号" :edit-render="{}">
|
|
@@ -542,7 +562,8 @@
|
|
highlight-current-row
|
|
highlight-current-row
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
>
|
|
>
|
|
- <vxe-table-column field="languages" title="语种" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="languages" title="语种"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_languages')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
<vxe-select v-model="scope.row.languages">
|
|
<vxe-select v-model="scope.row.languages">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -554,7 +575,8 @@
|
|
</vxe-select>
|
|
</vxe-select>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
- <vxe-table-column field="level" title="熟练程度" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="level" title="熟练程度"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_proficiency')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
<vxe-select v-model="scope.row.level">
|
|
<vxe-select v-model="scope.row.level">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -678,7 +700,8 @@
|
|
highlight-current-row
|
|
highlight-current-row
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
>
|
|
>
|
|
- <vxe-table-column field="certificateName" title="证书名称" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="certificateName" title="证书名称"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_certificate_name')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
<vxe-select v-model="scope.row.certificateName">
|
|
<vxe-select v-model="scope.row.certificateName">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -710,7 +733,8 @@
|
|
<el-input v-model="scope.row.issuingAuthority" ></el-input>
|
|
<el-input v-model="scope.row.issuingAuthority" ></el-input>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
- <vxe-table-column field="major" title="专业" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="major" title="专业"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_major')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
<vxe-select v-model="scope.row.major">
|
|
<vxe-select v-model="scope.row.major">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -842,7 +866,8 @@
|
|
<el-input v-model="scope.row.idCard" ></el-input>
|
|
<el-input v-model="scope.row.idCard" ></el-input>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
- <vxe-table-column field="sex" title="成员性别" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="sex" title="成员性别"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sex')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
<vxe-select v-model="scope.row.sex">
|
|
<vxe-select v-model="scope.row.sex">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -911,7 +936,8 @@
|
|
<vxe-input v-model="scope.row.trainEndDate" placeholder="培训终止日期" type="date"></vxe-input>
|
|
<vxe-input v-model="scope.row.trainEndDate" placeholder="培训终止日期" type="date"></vxe-input>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
- <vxe-table-column field="trainLevel" title="培训类型" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="trainLevel" title="培训类型"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_training_type')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
<vxe-select v-model="scope.row.trainLevel">
|
|
<vxe-select v-model="scope.row.trainLevel">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -1025,7 +1051,8 @@
|
|
highlight-current-row
|
|
highlight-current-row
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
>
|
|
>
|
|
- <vxe-table-column field="rewardsType" title="奖惩类型" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="rewardsType" title="奖惩类型"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_rewards')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
<vxe-select v-model="scope.row.rewardsType">
|
|
<vxe-select v-model="scope.row.rewardsType">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -1109,7 +1136,8 @@
|
|
<el-input v-model="scope.row.number" ></el-input>
|
|
<el-input v-model="scope.row.number" ></el-input>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
- <vxe-table-column field="post" title="担任职务" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="post" title="担任职务"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_post')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
<vxe-select v-model="scope.row.post">
|
|
<vxe-select v-model="scope.row.post">
|
|
<vxe-option
|
|
<vxe-option
|
|
@@ -1153,9 +1181,10 @@
|
|
highlight-current-row
|
|
highlight-current-row
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
>
|
|
>
|
|
- <vxe-table-column field="projectName" title="项目名称" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-table-column field="archivesName" title="项目名称"
|
|
|
|
+ :edit-render="{name: '$select', options: $dictUtils.getDictList('sys_user_archives')}">
|
|
<template v-slot:edit="scope">
|
|
<template v-slot:edit="scope">
|
|
- <vxe-select v-model="scope.row.projectName">
|
|
|
|
|
|
+ <vxe-select v-model="scope.row.archivesName">
|
|
<vxe-option
|
|
<vxe-option
|
|
v-for="item in $dictUtils.getDictList('sys_user_archives')"
|
|
v-for="item in $dictUtils.getDictList('sys_user_archives')"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -1760,7 +1789,6 @@
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.loading = true
|
|
this.loading = true
|
|
-
|
|
|
|
this.inputForm.sysUserEducations = []
|
|
this.inputForm.sysUserEducations = []
|
|
this.sysUserEducations.forEach((item) => {
|
|
this.sysUserEducations.forEach((item) => {
|
|
this.inputForm.sysUserEducations.push(item)
|
|
this.inputForm.sysUserEducations.push(item)
|
|
@@ -2098,15 +2126,15 @@
|
|
},
|
|
},
|
|
|
|
|
|
// 身份证验证
|
|
// 身份证验证
|
|
- async validID(rule,value,callback)
|
|
|
|
|
|
+ async validID(rule, value, callback)
|
|
{
|
|
{
|
|
// 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
|
|
// 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
|
|
let reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
|
|
let reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
|
|
if (reg.test(value)) {
|
|
if (reg.test(value)) {
|
|
await this.go(value.length);
|
|
await this.go(value.length);
|
|
- // callback()
|
|
|
|
|
|
+ callback()
|
|
} else {
|
|
} else {
|
|
- // callback(new Error('身份证号码不正确'))
|
|
|
|
|
|
+ callback(new Error('身份证号码不正确'))
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|