diff --git a/public/index.html b/public/index.html index 9bfa85d..a43118e 100644 --- a/public/index.html +++ b/public/index.html @@ -10,6 +10,7 @@ + <% for (const item of $links) { %> <% } %> diff --git a/src/pages/Container/BranchCompany/Inspection/Inspection/Add/index.js b/src/pages/Container/BranchCompany/Inspection/Inspection/Add/index.js index 4084aa7..b54b867 100644 --- a/src/pages/Container/BranchCompany/Inspection/Inspection/Add/index.js +++ b/src/pages/Container/BranchCompany/Inspection/Inspection/Add/index.js @@ -58,6 +58,7 @@ function Add(props) { const getData = async () => { const userInfo = await getUserInfo(); + console.log(userInfo); setUserInfo(userInfo); if (query.id) { const situationList = []; @@ -72,6 +73,7 @@ function Add(props) { situationList[i].files = files; } } + console.log( data.inspectorVerificationList) const currentInspectorUser = data.inspectorVerificationList.filter(item => item.userId === userInfo.id)[0]; setSignatureFilePath(currentInspectorUser?.signature ? getFileUrl() + currentInspectorUser.signature : ""); form.setFieldsValue({ @@ -95,7 +97,7 @@ function Add(props) { else { form.setFieldsValue({ inspectorList: [{ - departmentId: userInfo.departmentId, + departmentId: userInfo.departmentId, userId: userInfo.id, departmentName: userInfo.departmentName, userName: userInfo.name,