記錄下element日期控件修改時候顯示1970年的問題,新增時候正常。
因為DatePicker 日期選擇器不支持字符串,只支持時間格式
//修改
openEditDia(data) {
let yearDate = new Date();
yearDate.setYear(data.year);
this.addQuery.id = data.id,
this.addQuery.year = yearDate, //把年份處理下再賦給綁定的年份
this.addQuery.orgName = data.orgName,
this.addQuery.orgId = data.orgId;
this.addQuery.dockingPeople = data.dockingPeople
this.addQuery.dockingPeopleName = data.dockingPeopleName,
this.addQuery.conference = data.conference,
this.addQuery.participant = data.participant,
this.addQuery.organization = data.organization,
this.addQuery.contac = data.contac,
this.addQuery.remark = data.remark,
this.dialogTitle = '《高端對接清單》'
this.addDialogVisible = true
this.editFlag = true;
console.log(this.addQuery.year, '年份')
this.jsId = data.orgId;
this.getPerson()
},

