Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
feedback
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王华
feedback
Commits
bdbcddd0
Commit
bdbcddd0
authored
Apr 12, 2022
by
yzl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改添加界面bug
parent
7cf68e39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
add.html
add.html
+16
-7
No files found.
add.html
View file @
bdbcddd0
...
...
@@ -35,7 +35,7 @@
const
Upload
=
antd
.
Upload
;
const
Divider
=
antd
.
Divider
;
const
Modal
=
antd
.
Modal
;
const
message
=
antd
.
message
;
const
notification
=
antd
.
notification
;
let
num
=
0
;
const
arr
=
[];
...
...
@@ -139,7 +139,6 @@
url
:
ipAddress
+
'/CityInterface/Services/CityServer_CaseManage/REST/CaseManageREST.svc/GetTableGroupMeta'
,
data
:
obj
,
success
:
function
(
ret
)
{
console
.
log
(
ret
);
if
(
ret
.
say
.
statusCode
===
'0000'
)
{
const
groups
=
ret
.
getMe
[
0
].
Groups
;
...
...
@@ -209,8 +208,6 @@
},
[])
const
saveData
=
async
(
ipAddress
,
values
,
groups
)
=>
{
console
.
log
(
ipAddress
);
const
data
=
form
.
getFieldsValue
();
data
[
'发生时间'
]
=
data
[
'发生时间'
]
?
time
.
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
);
...
...
@@ -284,11 +281,23 @@
contentType
:
'application/json;charset=utf-8'
,
success
:
function
(
data
)
{
if
(
data
.
say
.
statusCode
===
'0000'
)
{
message
.
success
(
'保存成功'
);
notification
.
success
({
message
:
'问题反馈成功'
,
description
:
'我们将会对您的问题进行处理,页面会将在3秒后跳转到首页'
,
duration
:
3
});
setTimeout
(()
=>
{
window
.
location
.
href
=
'./?site_code='
+
code
;
},
3000
)
window
.
location
.
href
=
'./'
;
}
else
{
message
.
error
(
'保存失败'
);
notification
.
success
({
message
:
'问题反馈失败'
,
description
:
'请重新提交相关信息'
,
});
}
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment