fix:修改BUG
This commit is contained in:
parent
bfda6c9df2
commit
0f4372aede
@ -1253,7 +1253,7 @@ export const ZHZRFMenu: Array<any> = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
moduleName: "绿色施工",
|
moduleName: "绿色施工",
|
||||||
modulePath: "/elevatorMonitoring",
|
modulePath: "/headNoise",
|
||||||
menuList: [
|
menuList: [
|
||||||
{
|
{
|
||||||
menuName: "环境监测",
|
menuName: "环境监测",
|
||||||
|
|||||||
@ -387,8 +387,22 @@ const getDriverInfoList = async () => {
|
|||||||
});
|
});
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
console.log("获取司机信息", res.result);
|
console.log("获取司机信息", res.result);
|
||||||
|
if(res.result.devWorker.workerList[0]){
|
||||||
driverInfo.value = res.result.devWorker.workerList[0];
|
driverInfo.value = res.result.devWorker.workerList[0];
|
||||||
|
}else{
|
||||||
|
driverInfo.value = {
|
||||||
|
addTime: '',
|
||||||
|
age: '',
|
||||||
|
continuousWorkingTime: '',
|
||||||
|
continuousWorkingTimeName: '',
|
||||||
|
idCard: '',
|
||||||
|
imageUrl: '',
|
||||||
|
phoneNumber: '',
|
||||||
|
sex: '',
|
||||||
|
specialCertificateNumber: '',
|
||||||
|
workerName: '',
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user