Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
ReactWeb5
CivManage
Commits
26510127
Commit
26510127
authored
Jan 08, 2021
by
tianfen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改bug
parent
9cc69699
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
26 deletions
+24
-26
InitDataBase.jsx
src/pages/database/InitDataBase.jsx
+21
-21
SiteManage.jsx
src/pages/userCenter/siteManage/SiteManage.jsx
+3
-5
No files found.
src/pages/database/InitDataBase.jsx
View file @
26510127
...
...
@@ -150,27 +150,27 @@ const InitDataBase = props => {
}
scroll
.
current
.
scrollTo
(
0
,
scroll
.
current
.
scrollHeight
-
570
);
},
1000
);
//
initDBv4({
//
_version: 9999,
//
_dc: Date.now(),
//
...obj,
//
})
//
.then(res => {
//
setCardLoading(false);
//
if (res.GetMe) {
//
console.log(res);
//
} else {
//
notification.error({
//
message: '提示',
//
duration: 15,
//
description: res.Say.Message || '初始化失败',
//
});
//
}
//
})
//
.catch(err => {
//
setCardLoading(false);
//
console.log(err);
//
});
initDBv4
({
_version
:
9999
,
_dc
:
Date
.
now
(),
...
obj
,
})
.
then
(
res
=>
{
setCardLoading
(
false
);
if
(
res
.
GetMe
)
{
console
.
log
(
res
);
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
15
,
description
:
res
.
Say
.
Message
||
'初始化失败'
,
});
}
})
.
catch
(
err
=>
{
setCardLoading
(
false
);
console
.
log
(
err
);
});
};
const
onValuesChange
=
(
value
,
b
)
=>
{
form
.
setFieldsValue
(
value
);
...
...
src/pages/userCenter/siteManage/SiteManage.jsx
View file @
26510127
...
...
@@ -11,16 +11,12 @@ import {
List
,
Space
,
Checkbox
,
Select
,
Pagination
,
message
,
}
from
'antd'
;
import
lodash
,
{
clone
}
from
'lodash'
;
import
{
DoubleLeftOutlined
,
DoubleRightOutlined
,
DownOutlined
,
UpOutlined
,
UserOutlined
,
}
from
'@ant-design/icons'
;
import
PageContainer
from
'@/components/BasePageContainer'
;
...
...
@@ -311,7 +307,7 @@ const SiteManage = props => {
});
result
=
Object
.
values
(
obj
);
// 数据处理成后台需要的格式
if
(
result
.
length
===
0
)
return
message
.
warning
(
'请先选择人员!'
);
if
(
result
.
length
===
0
)
return
notification
.
warning
(
'请先选择人员!'
);
chooseUserToStation
(
qs
.
stringify
({
userList
:
String
(
result
.
flat
()),
...
...
@@ -327,11 +323,13 @@ const SiteManage = props => {
handleShowModal
(
'btnLoading'
,
false
);
if
(
res
.
success
)
{
setSelectList
([]);
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'设置成功'
,
});
getList
();
}
else
{
notification
.
error
({
message
:
'提示'
,
...
...
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