Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
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
zhaochengxiang
szse
Commits
e0e0c4fe
Commit
e0e0c4fe
authored
Apr 02, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式调整
parent
6b3d874f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
230 additions
and
196 deletions
+230
-196
index.less
src/index.less
+4
-4
index.js
src/layout/index.js
+3
-3
axios.js
src/util/axios.js
+3
-1
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+29
-16
ModelTable.less
src/view/Manage/Model/Component/ModelTable.less
+7
-0
ModelTree.jsx
src/view/Manage/Model/Component/ModelTree.jsx
+141
-142
ModelTree.less
src/view/Manage/Model/Component/ModelTree.less
+7
-0
index.jsx
src/view/Manage/Model/index.jsx
+34
-28
index.jsx
src/view/Signin/index.jsx
+2
-2
No files found.
src/index.less
View file @
e0e0c4fe
...
@@ -10,7 +10,7 @@ body {
...
@@ -10,7 +10,7 @@ body {
sans-serif;
sans-serif;
-webkit-font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-moz-osx-font-smoothing: grayscale;
background-color: #
fff
;
background-color: #
ECEEF3
;
}
}
code {
code {
...
@@ -67,15 +67,15 @@ div[id^='__qiankun_microapp_wrapper_'] {
...
@@ -67,15 +67,15 @@ div[id^='__qiankun_microapp_wrapper_'] {
}
}
//ant design
//ant design
.
ant
-layout {
.
yy
-layout {
background-color: #
eee
!important;
background-color: #
ECEEF3
!important;
}
}
.yy-tabs-content-holder {
.yy-tabs-content-holder {
height: 100% !important;
height: 100% !important;
}
}
.yy-tabs-content {
.yy-tabs-content
, .yy-table
{
height: 100% !important;
height: 100% !important;
overflow: auto !important;
overflow: auto !important;
}
}
...
...
src/layout/index.js
View file @
e0e0c4fe
...
@@ -5,7 +5,7 @@ import { connect } from 'react-redux';
...
@@ -5,7 +5,7 @@ import { connect } from 'react-redux';
import
classnames
from
'classnames'
;
import
classnames
from
'classnames'
;
import
{
UserOutlined
,
LogoutOutlined
,
MenuFoldOutlined
,
MenuUnfoldOutlined
,
HomeOutlined
,
FileOutlined
,
AppstoreOutlined
}
from
"@ant-design/icons"
;
import
{
UserOutlined
,
LogoutOutlined
,
MenuFoldOutlined
,
MenuUnfoldOutlined
,
HomeOutlined
,
FileOutlined
,
AppstoreOutlined
}
from
"@ant-design/icons"
;
import
{
ContextPath
,
Open
}
from
'../util'
;
import
{
ContextPath
,
Open
,
showMessage
}
from
'../util'
;
import
{
routes
,
routeMap
}
from
'../routes'
;
import
{
routes
,
routeMap
}
from
'../routes'
;
...
@@ -30,7 +30,7 @@ const _Logout = ({session, isHome, location}) => session ?
...
@@ -30,7 +30,7 @@ const _Logout = ({session, isHome, location}) => session ?
>
>
<
Menu
.
Item
key
=
"SignOut"
<
Menu
.
Item
key
=
"SignOut"
onClick
=
{
e
=>
dispatchLatest
({
type
:
'user.signout'
,
callback
:
e
=>
{
onClick
=
{
e
=>
dispatchLatest
({
type
:
'user.signout'
,
callback
:
e
=>
{
message
.
success
(
'退出成功!'
)
showMessage
(
'success'
,
'退出成功!'
);
window
.
setTimeout
(
e
=>
Open
(
`
${
ContextPath
}
/login`
,
{
target
:
'_self'
}),
1000
);
window
.
setTimeout
(
e
=>
Open
(
`
${
ContextPath
}
/login`
,
{
target
:
'_self'
}),
1000
);
}})}
>
}})}
>
<
LogoutOutlined
/>
<
LogoutOutlined
/>
...
@@ -105,7 +105,7 @@ export const ManageLayout = function ({ content, location }) {
...
@@ -105,7 +105,7 @@ export const ManageLayout = function ({ content, location }) {
<
/Menu
>
<
/Menu
>
<
/Sider
>
<
/Sider
>
<
Content
className
=
"m-3"
style
=
{{
backgroundColor
:
'#
eee
'
}}
>
<
Content
className
=
"m-3"
style
=
{{
backgroundColor
:
'#
ECEEF3'
,
height
:
'100%
'
}}
>
{
content
}
{
content
}
<
/Content
>
<
/Content
>
...
...
src/util/axios.js
View file @
e0e0c4fe
import
axios
from
'axios'
;
import
axios
from
'axios'
;
import
{
message
}
from
'antd'
;
import
{
message
}
from
'antd'
;
import
{
IsArr
}
from
'./index'
;
import
{
IsArr
}
from
'./index'
;
import
{
showMessage
}
from
'./index'
;
const
CancelToken
=
axios
.
CancelToken
;
const
CancelToken
=
axios
.
CancelToken
;
const
baseURL
=
'/api/'
;
const
baseURL
=
'/api/'
;
...
@@ -85,7 +87,7 @@ export const SetSource = function (source) {
...
@@ -85,7 +87,7 @@ export const SetSource = function (source) {
const
callback
=
resp
=>
{
const
callback
=
resp
=>
{
if
(
resp
.
status
===
401
)
{
if
(
resp
.
status
===
401
)
{
message
.
warning
(
"session过期,请重新登录!"
);
showMessage
(
'warn'
,
"session过期,请重新登录!"
);
//外网
//外网
window
.
location
.
href
=
"/center-home/view/login"
window
.
location
.
href
=
"/center-home/view/login"
//内网
//内网
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
e0e0c4fe
import
React
,
{
useState
}
from
"react"
;
import
React
,
{
useState
}
from
"react"
;
import
{
Table
,
Space
,
Button
,
Tooltip
,
message
}
from
'antd'
;
import
{
Table
,
Space
,
Button
,
Tooltip
,
Modal
}
from
'antd'
;
import
{
EditOutlined
,
CheckOutlined
,
ReconciliationOutlined
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
{
EditOutlined
,
CheckOutlined
,
ReconciliationOutlined
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
{
dispatchLatest
}
from
'../../../../model'
;
import
{
dispatchLatest
}
from
'../../../../model'
;
import
{
showMessage
}
from
'../../../../util'
;
import
'./ModelTable.less'
;
const
ModelTable
=
(
props
)
=>
{
const
ModelTable
=
(
props
)
=>
{
const
{
data
,
onChange
}
=
props
;
const
{
data
,
onChange
,
loading
}
=
props
;
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
([]);
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
([]);
const
[
modal
,
contextHolder
]
=
Modal
.
useModal
();
const
columns
=
[
const
columns
=
[
{
{
title
:
'模型名称'
,
title
:
'模型名称'
,
...
@@ -47,18 +51,25 @@ const ModelTable = (props) => {
...
@@ -47,18 +51,25 @@ const ModelTable = (props) => {
];
];
const
deleteItem
=
(
record
)
=>
{
const
deleteItem
=
(
record
)
=>
{
dispatchLatest
({
type
:
'datamodel.deleteDataModel'
,
modal
.
confirm
({
payload
:
{
title
:
'提示!'
,
params
:
{
content
:
'您确定要删除该模型吗?'
,
id
:
record
.
id
onOk
:
()
=>
{
}
dispatchLatest
({
},
type
:
'datamodel.deleteDataModel'
,
callback
:
()
=>
{
payload
:
{
message
.
success
(
'模型删除成功'
);
params
:
{
onChange
&&
onChange
();
id
:
record
.
id
}
},
callback
:
()
=>
{
showMessage
(
'success'
,
'模型删除成功'
);
onChange
&&
onChange
();
}
})
}
}
})
})
;
}
}
const
onSelectChange
=
keys
=>
{
const
onSelectChange
=
keys
=>
{
...
@@ -71,15 +82,17 @@ const ModelTable = (props) => {
...
@@ -71,15 +82,17 @@ const ModelTable = (props) => {
};
};
return
(
return
(
<>
<
div
className=
'model-table'
>
<
Table
<
Table
loading=
{
loading
}
rowSelection=
{
rowSelection
}
rowSelection=
{
rowSelection
}
columns=
{
columns
}
columns=
{
columns
}
rowKey=
{
'id'
}
rowKey=
{
'id'
}
dataSource=
{
data
}
dataSource=
{
data
}
pagination=
{
false
}
pagination=
{
false
}
/>
/>
</>
{
contextHolder
}
</
div
>
);
);
}
}
...
...
src/view/Manage/Model/Component/ModelTable.less
0 → 100644
View file @
e0e0c4fe
.model-table {
.yy-table {
height: calc(100vh - 64px - 20px - 53px - 20px) !important;
overflow: auto !important;
}
}
\ No newline at end of file
src/view/Manage/Model/Component/ModelTree.jsx
View file @
e0e0c4fe
import
React
from
"react"
;
import
React
,
{
useState
,
useEffect
}
from
"react"
;
import
{
Tooltip
,
Tree
,
message
,
Butto
n
}
from
"antd"
;
import
{
Tooltip
,
Tree
,
Button
,
Modal
,
Spi
n
}
from
"antd"
;
import
{
PlusOutlined
,
EditOutlined
,
SyncOutlined
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
,
EditOutlined
,
SyncOutlined
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
UpdateTreeItemModal
from
'./UpdateTreeItemModal'
;
import
UpdateTreeItemModal
from
'./UpdateTreeItemModal'
;
import
{
dispatchLatest
}
from
'../../../../model'
;
import
{
dispatchLatest
}
from
'../../../../model'
;
import
{
showMessage
}
from
'../../../../util'
;
import
'./ModelTree.less'
;
class
ModelTree
extends
React
.
Component
{
const
ModelTree
=
(
props
)
=>
{
constructor
()
{
super
();
this
.
state
=
{
loading
:
false
,
treeData
:
null
,
item
:
null
,
visible
:
false
,
type
:
null
};
}
componentDidMount
()
{
this
.
getTreeData
();
}
getTreeData
=
()
=>
{
const
{
onSelect
}
=
this
.
props
;
this
.
setState
({
loading
:
true
},
()
=>
{
dispatchLatest
({
type
:
'datamodel.loadDataModelCatalog'
,
callback
:
data
=>
{
data
.
key
=
data
.
id
||
''
;
const
{
onSelect
}
=
props
;
data
.
title
=
data
.
name
||
''
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
data
.
children
=
data
.
subCatalogs
||
[];
const
[
treeData
,
setTreeData
]
=
useState
(
null
);
const
[
item
,
setItem
]
=
useState
(
null
);
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
type
,
setType
]
=
useState
(
null
);
function
recursion
(
subCatalogs
)
{
const
[
modal
,
contextHolder
]
=
Modal
.
useModal
();
if
((
subCatalogs
||
[]).
length
===
0
)
return
;
useEffect
(()
=>
{
getTreeData
();
},
[])
(
subCatalogs
||
[]).
forEach
(
catalog
=>
{
const
getTreeData
=
()
=>
{
catalog
.
key
=
catalog
.
id
||
''
;
catalog
.
title
=
catalog
.
name
||
''
;
catalog
.
children
=
catalog
.
subCatalogs
||
[];
recursion
(
catalog
.
subCatalogs
);
})
}
recursion
(
data
.
subCatalogs
);
this
.
setState
({
loading
:
false
,
treeData
:
[
data
],
item
:
data
},
()
=>
{
if
(
onSelect
)
{
onSelect
(
data
.
key
);
}
});
}
})
setLoading
(
true
);
dispatchLatest
({
type
:
'datamodel.loadDataModelCatalog'
,
callback
:
data
=>
{
data
.
key
=
data
.
id
||
''
;
data
.
title
=
data
.
name
||
''
;
data
.
children
=
data
.
subCatalogs
||
[];
function
recursion
(
subCatalogs
)
{
if
((
subCatalogs
||
[]).
length
===
0
)
return
;
(
subCatalogs
||
[]).
forEach
(
catalog
=>
{
catalog
.
key
=
catalog
.
id
||
''
;
catalog
.
title
=
catalog
.
name
||
''
;
catalog
.
children
=
catalog
.
subCatalogs
||
[];
recursion
(
catalog
.
subCatalogs
);
})
}
recursion
(
data
.
subCatalogs
);
setLoading
(
false
);
setTreeData
([
data
||
{}
]);
setItem
(
data
);
onSelect
&&
onSelect
(
data
.
key
||
''
);
}
})
})
}
}
onTreeSelect
=
(
keys
,
data
)
=>
{
const
onTreeSelect
=
(
keys
,
data
)
=>
{
const
{
onSelect
}
=
this
.
props
;
const
_item
=
{...
data
.
selectedNodes
[
0
]
||
[]};
const
_item
=
{...
data
.
selectedNodes
[
0
]
||
[]};
this
.
setState
({
item
:
_item
},
()
=>
{
setItem
(
_item
);
if
(
onSelect
)
{
onSelect
&&
onSelect
(
_item
.
key
);
onSelect
(
_item
.
key
);
}
});
}
}
add
=
()
=>
{
const
add
=
()
=>
{
this
.
setState
({
visible
:
true
,
type
:
'add'
});
setVisible
(
true
);
setType
(
'add'
);
}
}
update
=
()
=>
{
const
update
=
()
=>
{
const
{
item
}
=
this
.
state
;
if
(
!
item
)
{
if
(
!
item
)
{
message
.
info
(
'请先选择目录'
);
showMessage
(
'info'
,
'请先选择目录'
);
return
;
return
;
}
}
this
.
setState
({
visible
:
true
,
type
:
'update'
});
setVisible
(
true
);
setType
(
'update'
);
}
}
refresh
=
()
=>
{
const
refresh
=
()
=>
{
this
.
getTreeData
();
getTreeData
();
}
}
delete
=
()
=>
{
const
deleteNode
=
()
=>
{
const
{
item
}
=
this
.
state
;
if
(
!
item
)
{
if
(
!
item
)
{
message
.
info
(
'请先选择目录'
);
showMessage
(
'info'
,
'请先选择目录'
);
return
;
return
;
}
}
dispatchLatest
({
modal
.
confirm
({
type
:
'datamodel.deleteDataModelCatalog'
,
title
:
'提示!'
,
payload
:
{
content
:
'删除目录会删除相关的模型,您确定删除吗?'
,
params
:
{
onOk
:
()
=>
{
easyDataModelerCatalogId
:
item
.
id
dispatchLatest
({
}
type
:
'datamodel.deleteDataModelCatalog'
,
},
payload
:
{
callback
:
()
=>
{
params
:
{
message
.
success
(
'删除目录成功'
);
easyDataModelerCatalogId
:
item
.
id
this
.
getTreeData
();
}
},
callback
:
()
=>
{
showMessage
(
'success'
,
'删除目录成功'
);
getTreeData
();
}
});
}
}
});
});
}
}
onUpdateTreeItemModalOk
=
()
=>
{
const
onUpdateTreeItemModalOk
=
()
=>
{
this
.
setState
({
visible
:
false
},
()
=>
{
setVisible
(
false
);
this
.
getTreeData
();
getTreeData
();
})
}
}
onUpdateTreeItemModalCancel
=
()
=>
{
const
onUpdateTreeItemModalCancel
=
()
=>
{
this
.
setState
({
visible
:
false
}
);
setVisible
(
false
);
}
}
render
()
{
return
(
const
{
loading
,
treeData
,
visible
,
type
,
item
}
=
this
.
state
;
<
div
className=
'model-tree'
>
<
div
return
(
className=
'p-3'
<>
style=
{
{
<
div
display
:
'flex'
,
className=
'p-3'
borderBottom
:
"1px solid #EFEFEF"
,
style=
{
{
}
}
display
:
'flex'
,
>
borderBottom
:
"1px solid #EFEFEF"
,
<
Tooltip
title=
"新增目录"
>
}
}
<
Button
>
shape=
"circle"
<
Tooltip
title=
"新增目录"
>
icon=
{
<
PlusOutlined
/>
}
<
Button
onClick=
{
add
}
type=
"primary"
shape=
"circle"
icon=
{
<
PlusOutlined
/>
}
onClick=
{
this
.
add
}
/>
</
Tooltip
>
<
Tooltip
title=
"修改"
className=
'ml-3'
>
<
Button
type=
"primary"
shape=
"circle"
icon=
{
<
EditOutlined
/>
}
onClick=
{
this
.
update
}
/>
</
Tooltip
>
<
Tooltip
title=
"刷新"
className=
'ml-3'
>
<
Button
type=
"primary"
shape=
"circle"
icon=
{
<
SyncOutlined
/>
}
onClick=
{
this
.
refresh
}
/>
</
Tooltip
>
<
Tooltip
title=
"删除"
className=
'ml-3'
>
<
Button
type=
"primary"
shape=
"circle"
icon=
{
<
DeleteOutlined
/>
}
onClick=
{
this
.
delete
}
/>
</
Tooltip
>
</
div
>
<
div
className=
'overflow-auto p-3'
>
<
Tree
loading=
{
loading
}
showLine
showIcon=
{
false
}
onSelect=
{
this
.
onTreeSelect
}
treeData=
{
treeData
}
selectedKeys=
{
[
item
?
item
.
key
:
''
]
}
/>
</
div
>
<
UpdateTreeItemModal
visible=
{
visible
}
type=
{
type
}
item=
{
item
}
onOk=
{
this
.
onUpdateTreeItemModalOk
}
onCancel=
{
this
.
onUpdateTreeItemModalCancel
}
/>
/>
</>
</
Tooltip
>
);
<
Tooltip
title=
"修改"
className=
'ml-3'
>
}
<
Button
shape=
"circle"
icon=
{
<
EditOutlined
/>
}
onClick=
{
update
}
/>
</
Tooltip
>
<
Tooltip
title=
"刷新"
className=
'ml-3'
>
<
Button
shape=
"circle"
icon=
{
<
SyncOutlined
/>
}
onClick=
{
refresh
}
/>
</
Tooltip
>
<
Tooltip
title=
"删除"
className=
'ml-3'
>
<
Button
shape=
"circle"
icon=
{
<
DeleteOutlined
/>
}
onClick=
{
deleteNode
}
/>
</
Tooltip
>
</
div
>
<
div
className=
'p-3'
>
{
loading
?
<
Spin
/>
:
(
<
Tree
showLine
showIcon=
{
false
}
onSelect=
{
onTreeSelect
}
treeData=
{
treeData
}
selectedKeys=
{
[
item
?
item
.
key
:
''
]
}
/>
)
}
</
div
>
<
UpdateTreeItemModal
visible=
{
visible
}
type=
{
type
}
item=
{
item
}
onOk=
{
onUpdateTreeItemModalOk
}
onCancel=
{
onUpdateTreeItemModalCancel
}
/>
{
contextHolder
}
</
div
>
);
}
}
export
default
ModelTree
;
export
default
ModelTree
;
\ No newline at end of file
src/view/Manage/Model/Component/ModelTree.less
0 → 100644
View file @
e0e0c4fe
.model-tree {
.yy-tree-list {
height: calc(100vh - 64px - 20px - 53px - 20px) !important;
overflow: auto !important;
}
}
\ No newline at end of file
src/view/Manage/Model/index.jsx
View file @
e0e0c4fe
...
@@ -17,7 +17,8 @@ class Model extends React.Component {
...
@@ -17,7 +17,8 @@ class Model extends React.Component {
exportModalVisible
:
false
,
exportModalVisible
:
false
,
catalogId
:
''
,
catalogId
:
''
,
importModalAction
:
''
,
importModalAction
:
''
,
tableData
:
[]
tableData
:
[],
loadingTableData
:
false
,
}
}
}
}
...
@@ -30,14 +31,16 @@ class Model extends React.Component {
...
@@ -30,14 +31,16 @@ class Model extends React.Component {
onTableChange
=
()
=>
{
onTableChange
=
()
=>
{
const
{
catalogId
}
=
this
.
state
;
const
{
catalogId
}
=
this
.
state
;
dispatchLatest
({
this
.
setState
({
loadingTableData
:
true
},
()
=>
{
type
:
'datamodel.getCurrentDataModelCatalog'
,
dispatchLatest
({
payload
:
{
type
:
'datamodel.getCurrentDataModelCatalog'
,
easyDataModelerCatalogId
:
catalogId
payload
:
{
},
easyDataModelerCatalogId
:
catalogId
callback
:
data
=>
{
},
this
.
setState
({
tableData
:
data
.
easyDataModelerDataModels
||
[]
});
callback
:
data
=>
{
}
this
.
setState
({
loadingTableData
:
false
,
tableData
:
data
.
easyDataModelerDataModels
||
[]
});
}
})
})
})
}
}
...
@@ -59,29 +62,32 @@ class Model extends React.Component {
...
@@ -59,29 +62,32 @@ class Model extends React.Component {
}
}
render
()
{
render
()
{
const
{
importModalVisible
,
exportModalVisible
,
catalogId
,
importModalAction
,
tableData
}
=
this
.
state
;
const
{
importModalVisible
,
exportModalVisible
,
catalogId
,
importModalAction
,
tableData
,
loadingTableData
}
=
this
.
state
;
return
(
return
(
<
div
style=
{
{
backgroundColor
:
'#fff'
,
height
:
'100%'
}
}
>
<
div
style=
{
{
backgroundColor
:
'#ECEEF3'
,
height
:
'100%'
}
}
>
<
Row
gutter=
{
10
}
style=
{
{
height
:
'100%'
}
}
>
<
Row
style=
{
{
height
:
'100%'
}
}
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
style=
{
{
height
:
'100%'
}
}
>
<
ModelTree
onSelect=
{
this
.
onTreeSelect
}
/>
<
div
className=
'mr-3'
style=
{
{
backgroundColor
:
'#fff'
}
}
>
<
ModelTree
onSelect=
{
this
.
onTreeSelect
}
/>
</
div
>
</
Col
>
</
Col
>
<
Col
span=
{
18
}
>
<
Col
span=
{
18
}
>
<
div
<
div
style=
{
{
backgroundColor
:
'#fff'
}
}
>
className=
'p-3'
<
div
style=
{
{
className=
'p-3'
display
:
'flex'
,
style=
{
{
borderBottom
:
"1px solid #EFEFEF"
,
display
:
'flex'
,
}
}
borderBottom
:
"1px solid #EFEFEF"
,
>
}
}
<
Button
type=
"primary"
style=
{
{
marginLeft
:
'auto'
}
}
>
全选
</
Button
>
>
<
Button
type=
"primary"
className=
'ml-3'
>
提交审核
</
Button
>
<
Button
type=
"primary"
style=
{
{
marginLeft
:
'auto'
}
}
>
提交审核
</
Button
>
<
Button
type=
"primary"
className=
'ml-3'
onClick=
{
this
.
onImportBtnClick
}
>
模型创建
</
Button
>
<
Button
type=
"primary"
className=
'ml-3'
onClick=
{
this
.
onImportBtnClick
}
>
模型创建
</
Button
>
<
Button
type=
"primary"
className=
'ml-3'
onClick=
{
this
.
onExportBtnClick
}
>
模型导出
</
Button
>
<
Button
type=
"primary"
className=
'ml-3'
onClick=
{
this
.
onExportBtnClick
}
>
模型导出
</
Button
>
</
div
>
</
div
>
<
div
className=
'p-3'
>
<
div
className=
'p-3'
>
<
ModelTable
data=
{
tableData
}
onChange=
{
this
.
onTableChange
}
/>
<
ModelTable
loading=
{
loadingTableData
}
data=
{
tableData
}
onChange=
{
this
.
onTableChange
}
/>
</
div
>
</
div
>
</
div
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
...
src/view/Signin/index.jsx
View file @
e0e0c4fe
...
@@ -4,7 +4,7 @@ import { connect } from 'react-redux';
...
@@ -4,7 +4,7 @@ import { connect } from 'react-redux';
import
CryptoJS
from
"crypto-js"
;
import
CryptoJS
from
"crypto-js"
;
import
{
UserOutlined
,
LockOutlined
}
from
"@ant-design/icons"
;
import
{
UserOutlined
,
LockOutlined
}
from
"@ant-design/icons"
;
import
{
Open
,
Assert
,
ContextPath
}
from
'../../util'
;
import
{
Open
,
Assert
,
ContextPath
,
showMessage
}
from
'../../util'
;
import
{
dispatchLatest
}
from
'../../model'
;
import
{
dispatchLatest
}
from
'../../model'
;
import
loginBG
from
"../../assets/login_bg.png"
;
import
loginBG
from
"../../assets/login_bg.png"
;
...
@@ -26,7 +26,7 @@ class Signin extends Component {
...
@@ -26,7 +26,7 @@ class Signin extends Component {
return
;
return
;
}
}
Assert
(
sess
===
"ok"
,
"用户名或密码不正确"
);
Assert
(
sess
===
"ok"
,
"用户名或密码不正确"
);
message
.
success
(
'登录成功'
);
showMessage
(
'success'
,
'登录成功'
);
history
.
push
(
referer
||
`
${
ContextPath
}
/home`
);
history
.
push
(
referer
||
`
${
ContextPath
}
/home`
);
}
}
});
});
...
...
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