添加地图依赖
parent
f785a175a4
commit
a468c3d8ec
|
|
@ -10,6 +10,7 @@
|
|||
<meta name="renderer" content="webkit"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover">
|
||||
<meta charset="UTF-8" name="referrer" content="strict-origin-when-cross-origin"/>
|
||||
<% for (const item of $links) { %>
|
||||
<link type="text/css" rel="stylesheet" href="<%= item %>"></link>
|
||||
<% } %>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue