Browse Source

日期回显,搜索姓名绑定其手机号

master
laishajiang 2 years ago
parent
commit
4494a50ffd
  1. 6
      src/views/duty/edit.vue

6
src/views/duty/edit.vue

@ -252,23 +252,17 @@ const setFormData = async (data: Record<string, any>) => {
if (data[key] != null && data[key] != undefined) {
//@ts-ignore
if(key=='departId'){
console.log("key"+key);
formData[key]= parseInt( data[key])
}else{
console.log("key"+key);
console.log("data[key]"+data[key]);
formData[key] = data[key]
}
}
if(key=='reportDate'){
let tmpArr = []
console.log("key"+key);
tmpArr.push(data["startTime"])
tmpArr.push(data["endTime"])
console.log('转成啥', tmpArr)
formData[key] = tmpArr
console.log("formData[key]"+formData[key])
}

Loading…
Cancel
Save