修改花名册的性别显示
parent
fd1d8c3f27
commit
cfca6bb5c1
|
@ -215,7 +215,7 @@
|
||||||
<el-select v-model="form.certificateType">
|
<el-select v-model="form.certificateType">
|
||||||
<el-option v-for="dict in certificate_type" :key="dict.value" :label="dict.label" :value="dict.value" />
|
<el-option v-for="dict in certificate_type" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input v-model="form.certificateCode" placeholder="请输入证件号码" />
|
<el-input v-model="form.certificateCode" placeholder="请输入证件号码" maxlength="18"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<div style="width: 100%;">
|
<div style="width: 100%;">
|
||||||
|
@ -471,7 +471,7 @@ function doImageUpload(type) {
|
||||||
}
|
}
|
||||||
let sex = d.data.sex || '';
|
let sex = d.data.sex || '';
|
||||||
if (sex) {
|
if (sex) {
|
||||||
form.value.sex = (sex == '男' ? 0 : 1) || form.value.sex ;
|
form.value.sex = sex?(sex == '男' ? "0" : "1") : form.value.sex ;
|
||||||
}
|
}
|
||||||
let birthDay = d.data.birthDay;
|
let birthDay = d.data.birthDay;
|
||||||
if (birthDay && birthDay.length == 8) {
|
if (birthDay && birthDay.length == 8) {
|
||||||
|
@ -558,7 +558,7 @@ function reset() {
|
||||||
subDeptName: null,//所属单位名称
|
subDeptName: null,//所属单位名称
|
||||||
userName: null,//姓名
|
userName: null,//姓名
|
||||||
userPhone: "",//联系电话
|
userPhone: "",//联系电话
|
||||||
certificateType: '',//证件号码
|
certificateType: '1',//证件号码
|
||||||
certificateCode: '',//证件号码
|
certificateCode: '',//证件号码
|
||||||
subDeptGroup: '',//班组ID
|
subDeptGroup: '',//班组ID
|
||||||
groupName: '',//班组名称
|
groupName: '',//班组名称
|
||||||
|
@ -568,7 +568,7 @@ function reset() {
|
||||||
craftPost: '',//工种编号
|
craftPost: '',//工种编号
|
||||||
nation: '',//民族
|
nation: '',//民族
|
||||||
age: 20,//年龄
|
age: 20,//年龄
|
||||||
sex: '',//性别
|
sex: '0',//性别
|
||||||
educationalType: '',//文件程度
|
educationalType: '',//文件程度
|
||||||
birthDay: '',//出生日期
|
birthDay: '',//出生日期
|
||||||
nativePlace: '',//籍贯
|
nativePlace: '',//籍贯
|
||||||
|
@ -717,7 +717,7 @@ function handleAdd() {
|
||||||
loadSubDepts(() => {
|
loadSubDepts(() => {
|
||||||
data.editData = null;
|
data.editData = null;
|
||||||
data.mode = 'add';
|
data.mode = 'add';
|
||||||
form.value.certificateType = "";
|
form.value.certificateType = "1";
|
||||||
form.value.projectId = userStore.currentPrjId;
|
form.value.projectId = userStore.currentPrjId;
|
||||||
form.value.comId = userStore.currentComId;
|
form.value.comId = userStore.currentComId;
|
||||||
form.value.projectName = userStore.currentProName;
|
form.value.projectName = userStore.currentProName;
|
||||||
|
|
Loading…
Reference in New Issue