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
585aa752
Commit
585aa752
authored
Dec 08, 2020
by
陈前坚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: CITY_SERVICE
parent
db78c080
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
AppDic.js
src/pages/dataCenter/dictionary/AppDic.js
+6
-6
WebDic.js
src/pages/dataCenter/dictionary/WebDic.js
+5
-5
DefaultComponent.jsx
src/pages/orgnazation/DefaultComponent.jsx
+2
-2
ListCard.jsx
src/pages/orgnazation/ListCard.jsx
+3
-3
No files found.
src/pages/dataCenter/dictionary/AppDic.js
View file @
585aa752
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
notification
,
notification
,
message
,
message
,
}
from
'antd'
;
}
from
'antd'
;
import
{
get
}
from
'@/services'
;
import
{
get
,
CITY_SERVICE
}
from
'@/services'
;
import
{
EditTwoTone
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
{
EditTwoTone
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
styles
from
'./AppDic.less'
;
import
styles
from
'./AppDic.less'
;
...
@@ -100,7 +100,7 @@ const AppDic = () => {
...
@@ -100,7 +100,7 @@ const AppDic = () => {
},
[]);
},
[]);
const
getData
=
()
=>
{
const
getData
=
()
=>
{
setLoading
(
true
);
setLoading
(
true
);
get
(
`
/Cityinterface/rest/services
/OMS.svc/M_GetKeyValue`
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/M_GetKeyValue`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
})
})
...
@@ -133,7 +133,7 @@ const AppDic = () => {
...
@@ -133,7 +133,7 @@ const AppDic = () => {
const
value
=
addForm
.
getFieldValue
(
'value'
);
const
value
=
addForm
.
getFieldValue
(
'value'
);
const
description
=
addForm
.
getFieldValue
(
'description'
);
const
description
=
addForm
.
getFieldValue
(
'description'
);
if
(
label
&&
key
&&
value
)
{
if
(
label
&&
key
&&
value
)
{
get
(
`
/Cityinterface/rest/services
/OMS.svc/M_AddKeyValue`
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/M_AddKeyValue`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
label
,
label
,
...
@@ -167,7 +167,7 @@ const AppDic = () => {
...
@@ -167,7 +167,7 @@ const AppDic = () => {
};
};
// 提交-重置
// 提交-重置
const
submitReset
=
()
=>
{
const
submitReset
=
()
=>
{
get
(
`
/Cityinterface/rest/services
/OMS.svc/M_ResetKeyValue`
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/M_ResetKeyValue`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
})
})
...
@@ -195,7 +195,7 @@ const AppDic = () => {
...
@@ -195,7 +195,7 @@ const AppDic = () => {
const
value
=
editForm
.
getFieldValue
(
'value'
);
const
value
=
editForm
.
getFieldValue
(
'value'
);
const
description
=
editForm
.
getFieldValue
(
'description'
);
const
description
=
editForm
.
getFieldValue
(
'description'
);
if
(
label
&&
key
&&
value
)
{
if
(
label
&&
key
&&
value
)
{
get
(
`
/Cityinterface/rest/services
/OMS.svc/M_EditKeyValue`
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/M_EditKeyValue`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
id
:
select
.
id
,
id
:
select
.
id
,
...
@@ -230,7 +230,7 @@ const AppDic = () => {
...
@@ -230,7 +230,7 @@ const AppDic = () => {
};
};
const
submitDelete
=
()
=>
{
const
submitDelete
=
()
=>
{
get
(
`
/Cityinterface/rest/services
/OMS.svc/M_DeleteKeyValue`
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/M_DeleteKeyValue`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
key
:
select
.
Key
,
key
:
select
.
Key
,
...
...
src/pages/dataCenter/dictionary/WebDic.js
View file @
585aa752
...
@@ -15,7 +15,7 @@ import {
...
@@ -15,7 +15,7 @@ import {
Col
,
Col
,
}
from
'antd'
;
}
from
'antd'
;
import
{
EditTwoTone
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
{
EditTwoTone
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
{
get
}
from
'@/services'
;
import
{
get
,
CITY_SERVICE
}
from
'@/services'
;
import
styles
from
'./WebDic.less'
;
import
styles
from
'./WebDic.less'
;
const
WebDic
=
()
=>
{
const
WebDic
=
()
=>
{
...
@@ -105,7 +105,7 @@ const WebDic = () => {
...
@@ -105,7 +105,7 @@ const WebDic = () => {
// 根据父节点nodeID(即parentID)获取数据,一级条目parentID = -1
// 根据父节点nodeID(即parentID)获取数据,一级条目parentID = -1
const
getData
=
value
=>
{
const
getData
=
value
=>
{
setLoading
(
true
);
setLoading
(
true
);
get
(
`
/Cityinterface/rest/services
/OMS.svc/D_GetDataDictionaryList`
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/D_GetDataDictionaryList`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
nodeID
:
value
,
nodeID
:
value
,
...
@@ -156,7 +156,7 @@ const WebDic = () => {
...
@@ -156,7 +156,7 @@ const WebDic = () => {
const
nodeName1
=
addForm
.
getFieldValue
(
'nodeName1'
);
const
nodeName1
=
addForm
.
getFieldValue
(
'nodeName1'
);
const
nodeValue
=
addForm
.
getFieldValue
(
'nodeValue'
);
const
nodeValue
=
addForm
.
getFieldValue
(
'nodeValue'
);
if
(
nodeName1
)
{
if
(
nodeName1
)
{
get
(
`
/Cityinterface/rest/services
/OMS.svc/D_AddDataDictionary`
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/D_AddDataDictionary`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
nodeID
:
value
,
nodeID
:
value
,
...
@@ -201,7 +201,7 @@ const WebDic = () => {
...
@@ -201,7 +201,7 @@ const WebDic = () => {
const
nodeName1
=
editForm
.
getFieldValue
(
'nodeName1'
);
const
nodeName1
=
editForm
.
getFieldValue
(
'nodeName1'
);
const
nodeValue
=
editForm
.
getFieldValue
(
'nodeValue'
);
const
nodeValue
=
editForm
.
getFieldValue
(
'nodeValue'
);
if
(
nodeName1
)
{
if
(
nodeName1
)
{
get
(
`
/Cityinterface/rest/services
/OMS.svc/D_EditDataDictionary`
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/D_EditDataDictionary`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
nodeID
:
select
.
nodeID
,
nodeID
:
select
.
nodeID
,
...
@@ -234,7 +234,7 @@ const WebDic = () => {
...
@@ -234,7 +234,7 @@ const WebDic = () => {
};
};
// 提交-删除
// 提交-删除
const
submitDelete
=
()
=>
{
const
submitDelete
=
()
=>
{
get
(
`
/Cityinterface/rest/services
/OMS.svc/D_DeleteDataDictionary`
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/D_DeleteDataDictionary`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
nodeID
:
select
.
nodeID
,
nodeID
:
select
.
nodeID
,
...
...
src/pages/orgnazation/DefaultComponent.jsx
View file @
585aa752
...
@@ -4,7 +4,7 @@ import PageContainer from '@/components/BasePageContainer';
...
@@ -4,7 +4,7 @@ import PageContainer from '@/components/BasePageContainer';
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
TestModal
from
'./ModalComponent'
;
import
TestModal
from
'./ModalComponent'
;
import
ListCard
from
'./ListCard'
;
import
ListCard
from
'./ListCard'
;
import
{
get
,
post
}
from
'../../services'
;
import
{
get
,
post
,
CITY_SERVICE
}
from
'../../services'
;
import
{
orgGet
,
orgTest
}
from
'../../services/orgnazation/api'
;
import
{
orgGet
,
orgTest
}
from
'../../services/orgnazation/api'
;
import
styles
from
'./DefaultComponent.less'
;
import
styles
from
'./DefaultComponent.less'
;
const
{
Search
}
=
Input
;
const
{
Search
}
=
Input
;
...
@@ -121,7 +121,7 @@ const DefaultComponent = () => {
...
@@ -121,7 +121,7 @@ const DefaultComponent = () => {
});
});
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
get
(
'
/Cityinterface/rest/services
/OMS.svc/U_GetOneOUUserListNew'
,
{
get
(
'
${CITY_SERVICE}
/OMS.svc/U_GetOneOUUserListNew'
,
{
OUID
:
24
,
OUID
:
24
,
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
...
...
src/pages/orgnazation/ListCard.jsx
View file @
585aa752
import
React
,
{
useState
,
useEffect
,
useCallback
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
useCallback
}
from
'react'
;
import
{
Spin
,
Button
}
from
'antd'
;
import
{
Spin
,
Button
}
from
'antd'
;
import
ListCardItem
from
'./listCardItem'
;
import
ListCardItem
from
'./listCardItem'
;
import
{
get
,
post
}
from
'../../services'
;
import
{
get
,
post
,
CITY_SERVICE
}
from
'../../services'
;
import
styles
from
'./listCardItem.less'
;
import
styles
from
'./listCardItem.less'
;
const
tip
=
'loading...'
;
const
tip
=
'loading...'
;
...
@@ -30,8 +30,8 @@ const ListCard = props => {
...
@@ -30,8 +30,8 @@ const ListCard = props => {
title
:
'默认组'
,
title
:
'默认组'
,
id
:
''
,
id
:
''
,
};
};
//
/Cityinterface/rest/services
/OMS.svc/U_GetUserListForBatchOper
//
${CITY_SERVICE}
/OMS.svc/U_GetUserListForBatchOper
get
(
'/Cityinterface/rest/services/OMS.svc/P_GetUserByStation'
,
{
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_GetUserByStation`
,
{
// OUID:ouid||'',
// OUID:ouid||'',
stationID
:
ouid
||
''
,
stationID
:
ouid
||
''
,
_version
:
9999
,
_version
:
9999
,
...
...
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