//为日期附上初始值
const now = new Date();
let yearDate = now.getFullYear()
const monthDate = (now.getMonth() + 1).toString().padStart(2, '0');
const dayDate = now.getDate().toString().padStart(2, '0');
this.recordData.calibrateOrVerifyDate = `${yearDate}-${monthDate}-${dayDate}`
由于在vue中,定义变量的时候,默认是字符串,在往后台传值的时候,也是需要字段串,因此需要转成字符串,防止后端解析报错