Commit 70b7ce8a authored by 姬鋆屾's avatar 姬鋆屾

推修改弹窗内回显数据显示数字的问题

parent dc4a9d7a
...@@ -357,8 +357,9 @@ export default { ...@@ -357,8 +357,9 @@ export default {
item.offWorkDateAfter = transFormTime(item.offWorkDateAfter); item.offWorkDateAfter = transFormTime(item.offWorkDateAfter);
}); });
this.currentIndex = this.attendanceClassDetailList.length - 1; this.currentIndex = this.attendanceClassDetailList.length - 1;
this.form.classResponsiblePersonId = this.form.classResponsiblePersonId.toString(); // this.form.classResponsiblePersonId = this.form.classResponsiblePersonId.toString();
} }
console.log(this.form.classResponsiblePersonId);
this.open = true; this.open = true;
}, },
......
...@@ -10,11 +10,7 @@ ...@@ -10,11 +10,7 @@
<el-row> <el-row>
<el-col :span="20"> <el-col :span="20">
<el-form-item label="分类:"> <el-form-item label="分类:">
<el-select <el-select v-model="form.categoryId" style="width: 100%;">
v-model="form.categoryId"
style="width: 100%;"
@change="cateChange"
>
<el-option <el-option
v-for="item in kaoqinCateArr" v-for="item in kaoqinCateArr"
:key="item.id" :key="item.id"
...@@ -142,7 +138,7 @@ export default { ...@@ -142,7 +138,7 @@ export default {
? JSON.stringify(this.form.assoOwner) ? JSON.stringify(this.form.assoOwner)
: ""; : "";
this.form.subAddType = this.form.subAddType this.form.subAddType = this.form.subAddType
? JSON.stringify(this.form.subAddType) ? Number(this.form.subAddType)
: ""; : "";
this.open = true; this.open = true;
console.log(this.form); console.log(this.form);
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
<form-buttons <form-buttons
@submit="submitForm" @submit="submitForm"
noCancelBtn noCancelBtn
v-if="(title == '修改员工离职信息')" v-if="title == '修改员工离职信息'"
/> />
</el-form> </el-form>
</el-drawer> </el-drawer>
...@@ -199,6 +199,11 @@ export default { ...@@ -199,6 +199,11 @@ export default {
}, },
/**获取数据后弹框 */ /**获取数据后弹框 */
afterRender(data) { afterRender(data) {
this.form.staffType = Number(this.form.staffType);
this.form.auditStatus = Number(this.form.auditStatus);
this.form.gender = Number(this.form.gender);
this.form.politicalstatus = Number(this.form.politicalstatus);
this.form.status = Number(this.form.status);
this.open = true; this.open = true;
}, },
......
...@@ -384,6 +384,11 @@ export default { ...@@ -384,6 +384,11 @@ export default {
}); });
this.deptId = deptId; this.deptId = deptId;
} }
this.form.assessmentType = Number(this.form.assessmentType);
this.form.compareScope = Number(this.form.compareScope);
this.form.periodType = Number(this.form.periodType);
this.form.halfYear = Number(this.form.halfYear);
console.log(this.form);
}, },
afterSubmit(data) { afterSubmit(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment