添加地图依赖
parent
f785a175a4
commit
a468c3d8ec
|
|
@ -10,6 +10,7 @@
|
||||||
<meta name="renderer" content="webkit"/>
|
<meta name="renderer" content="webkit"/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
|
<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 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) { %>
|
<% for (const item of $links) { %>
|
||||||
<link type="text/css" rel="stylesheet" href="<%= item %>"></link>
|
<link type="text/css" rel="stylesheet" href="<%= item %>"></link>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@ function Add(props) {
|
||||||
|
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const userInfo = await getUserInfo();
|
const userInfo = await getUserInfo();
|
||||||
|
console.log(userInfo);
|
||||||
setUserInfo(userInfo);
|
setUserInfo(userInfo);
|
||||||
if (query.id) {
|
if (query.id) {
|
||||||
const situationList = [];
|
const situationList = [];
|
||||||
|
|
@ -72,6 +73,7 @@ function Add(props) {
|
||||||
situationList[i].files = files;
|
situationList[i].files = files;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log( data.inspectorVerificationList)
|
||||||
const currentInspectorUser = data.inspectorVerificationList.filter(item => item.userId === userInfo.id)[0];
|
const currentInspectorUser = data.inspectorVerificationList.filter(item => item.userId === userInfo.id)[0];
|
||||||
setSignatureFilePath(currentInspectorUser?.signature ? getFileUrl() + currentInspectorUser.signature : "");
|
setSignatureFilePath(currentInspectorUser?.signature ? getFileUrl() + currentInspectorUser.signature : "");
|
||||||
form.setFieldsValue({
|
form.setFieldsValue({
|
||||||
|
|
@ -95,7 +97,7 @@ function Add(props) {
|
||||||
else {
|
else {
|
||||||
form.setFieldsValue({
|
form.setFieldsValue({
|
||||||
inspectorList: [{
|
inspectorList: [{
|
||||||
departmentId: userInfo.departmentId,
|
departmentId: userInfo.departmentId,
|
||||||
userId: userInfo.id,
|
userId: userInfo.id,
|
||||||
departmentName: userInfo.departmentName,
|
departmentName: userInfo.departmentName,
|
||||||
userName: userInfo.name,
|
userName: userInfo.name,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue