|
|
@@ -218,6 +218,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import { deptTreeList } from "@/api/system/public";
|
|
|
|
|
|
import { extendUserInformation } from "@/api/system/information";
|
|
|
+import dayjs from 'dayjs';
|
|
|
export default {
|
|
|
dicts: ['administrative_level','sys_yes_no','sys_yes_no_num','sys_highest_education', "sys_work_type", "sys_duties", "sys_education_type", 'sys_department_type', 'post_no_pass', 'current_position','department_name'],
|
|
|
fillter: {},
|
|
|
@@ -427,6 +428,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ dayjs,
|
|
|
changeDuties(val){
|
|
|
console.log(val);
|
|
|
// this.formData.aloneDept = 'N'
|
|
|
@@ -637,13 +639,18 @@ verifyBirthday(year,month,day,birthday)
|
|
|
this.formData.userId = this.$route.params.userId;
|
|
|
// let imgs = JSON.parse(JSON.stringify(this.imgs));
|
|
|
// let qualificationCertificateUrl = imgs.toString(',');
|
|
|
+
|
|
|
this.$refs['form'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- let data = {
|
|
|
+ let requestObj = {
|
|
|
...this.formData,
|
|
|
// qualificationCertificateUrl
|
|
|
}
|
|
|
- extendUserInformation(data).then(res => {
|
|
|
+ requestObj.entryTime=dayjs(this.formData.entryTime).format("YYYY-MM-DD");
|
|
|
+ requestObj.bornTime=dayjs(this.formData.bornTime).format("YYYY-MM-DD");
|
|
|
+ requestObj.workTime=dayjs(this.formData.workTime).format("YYYY-MM-DD");
|
|
|
+ // console.log("requestObj",requestObj);
|
|
|
+ extendUserInformation(requestObj).then(res => {
|
|
|
this.$message.success('保存成功!')
|
|
|
this.$router.go(-1)
|
|
|
})
|