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
a23d6f15
Commit
a23d6f15
authored
3 years ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网关问题修改,数据库管理,用户中心,应用中心,系统 日志模块新接口替换
parent
605e58ae
master
dev-database
dev-solution
dev-达梦
styleEditBranch
Pipeline
#31244
passed with stages
Changes
28
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
135 additions
and
130 deletions
+135
-130
InitDataBase.jsx
src/pages/database/InitDataBase.jsx
+4
-11
ManagementDataBase.jsx
src/pages/database/ManagementDataBase.jsx
+2
-5
addConfig.jsx
src/pages/mobileConfig/addConfig.jsx
+1
-1
miniMenu.jsx
src/pages/mobileConfig/menuconfig/miniMenu.jsx
+1
-3
AddModal.jsx
src/pages/userCenter/roleManage/AddModal.jsx
+2
-4
DelModal.jsx
src/pages/userCenter/roleManage/DelModal.jsx
+2
-4
EditGroup.jsx
src/pages/userCenter/roleManage/EditGroup.jsx
+2
-4
EditModal.jsx
src/pages/userCenter/roleManage/EditModal.jsx
+2
-4
RoleManage.jsx
src/pages/userCenter/roleManage/RoleManage.jsx
+1
-3
UserModal.jsx
src/pages/userCenter/roleManage/UserModal.jsx
+1
-1
AddModal.jsx
src/pages/userCenter/siteManage/AddModal.jsx
+1
-3
DelModal.jsx
src/pages/userCenter/siteManage/DelModal.jsx
+2
-4
EditModal.jsx
src/pages/userCenter/siteManage/EditModal.jsx
+2
-4
SiteManage.jsx
src/pages/userCenter/siteManage/SiteManage.jsx
+2
-4
siteManage.jsx
src/pages/userCenter/siteManageV2/siteManage.jsx
+1
-1
siteManage.less
src/pages/userCenter/siteManageV2/siteManage.less
+1
-0
DeleteOrgModal.jsx
src/pages/userCenter/userManage/DeleteOrgModal.jsx
+1
-1
UserManage.js
src/pages/userCenter/userManage/UserManage.js
+26
-10
UserManage.less
src/pages/userCenter/userManage/UserManage.less
+1
-0
api.js
src/services/appConfig/api.js
+1
-3
api.js
src/services/database/api.js
+25
-24
api.js
src/services/mobileConfig/api.js
+1
-1
api.js
src/services/orgnazation/api.js
+9
-2
api.js
src/services/userCenter/RoleManage/api.js
+19
-12
api.js
src/services/userCenter/siteManage/api.js
+11
-7
api.js
src/services/userCenter/userManage/api.js
+11
-11
api.js
src/services/webConfig/api.js
+2
-2
index.js
src/utils/request/index.js
+1
-1
No files found.
src/pages/database/InitDataBase.jsx
View file @
a23d6f15
...
@@ -163,12 +163,9 @@ const InitDataBase = props => {
...
@@ -163,12 +163,9 @@ const InitDataBase = props => {
},
[]);
},
[]);
// 获取日志
// 获取日志
const
doInitLog
=
()
=>
{
const
doInitLog
=
()
=>
{
getInitDBLog
({
getInitDBLogNew
()
_version
:
9999
,
_dc
:
Date
.
now
(),
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
code
==
0
)
{
if
(
res
.
content
)
{
if
(
res
.
content
)
{
let
arr
=
[];
let
arr
=
[];
arr
.
push
(
arr
.
push
(
...
@@ -408,11 +405,9 @@ const InitDataBase = props => {
...
@@ -408,11 +405,9 @@ const InitDataBase = props => {
const
handeleChangeSQLDirName
=
val
=>
{
const
handeleChangeSQLDirName
=
val
=>
{
setTableSQLDirName
({
setTableSQLDirName
({
dirName
:
val
,
dirName
:
val
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
code
==
0
)
{
notification
.
success
({
notification
.
success
({
message
:
'提示'
,
message
:
'提示'
,
duration
:
3
,
duration
:
3
,
...
@@ -491,10 +486,8 @@ const InitDataBase = props => {
...
@@ -491,10 +486,8 @@ const InitDataBase = props => {
const
delConfirm
=
value
=>
{
const
delConfirm
=
value
=>
{
const
{
key
=
''
}
=
value
;
const
{
key
=
''
}
=
value
;
setTableLoading
(
true
);
setTableLoading
(
true
);
deleteConn
({
deleteConn
New
({
rowIndex
:
key
,
rowIndex
:
key
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setTableLoading
(
false
);
setTableLoading
(
false
);
...
...
This diff is collapsed.
Click to expand it.
src/pages/database/ManagementDataBase.jsx
View file @
a23d6f15
...
@@ -133,15 +133,12 @@ const ManagementDataBase = () => {
...
@@ -133,15 +133,12 @@ const ManagementDataBase = () => {
// 升级功能
// 升级功能
const
handleUpdate
=
()
=>
{
const
handleUpdate
=
()
=>
{
setCheckLoading
(
true
);
setCheckLoading
(
true
);
updateDateBase
({
updateDateBase
()
_version
:
9999
,
_dc
:
Date
.
now
(),
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setCheckLoading
(
false
);
setCheckLoading
(
false
);
setCheckFlag
(
checkFlag
+
1
);
setCheckFlag
(
checkFlag
+
1
);
setUpFlag
(
upFlag
+
1
);
setUpFlag
(
upFlag
+
1
);
if
(
res
.
success
)
{
if
(
res
.
code
===
0
)
{
notification
.
success
({
notification
.
success
({
message
:
'通知'
,
message
:
'通知'
,
duration
:
3
,
duration
:
3
,
...
...
This diff is collapsed.
Click to expand it.
src/pages/mobileConfig/addConfig.jsx
View file @
a23d6f15
...
@@ -50,7 +50,7 @@ const AddConfig = props => {
...
@@ -50,7 +50,7 @@ const AddConfig = props => {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
code
===
0
)
{
addCallback
(
params
.
title
);
addCallback
(
params
.
title
);
notification
.
success
({
notification
.
success
({
message
:
'提示'
,
message
:
'提示'
,
...
...
This diff is collapsed.
Click to expand it.
src/pages/mobileConfig/menuconfig/miniMenu.jsx
View file @
a23d6f15
...
@@ -199,12 +199,10 @@ const MiniMenu = props => {
...
@@ -199,12 +199,10 @@ const MiniMenu = props => {
setLoading
(
true
);
setLoading
(
true
);
getMenuInfo
({
getMenuInfo
({
menuID
,
menuID
,
_version
:
9999
,
_dc
:
Date
.
now
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
code
===
0
)
{
setInfo
({
...
res
});
setInfo
({
...
res
});
}
else
{
}
else
{
notification
.
error
({
notification
.
error
({
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/roleManage/AddModal.jsx
View file @
a23d6f15
...
@@ -66,12 +66,10 @@ const AddModal = props => {
...
@@ -66,12 +66,10 @@ const AddModal = props => {
description
:
res
.
description
,
description
:
res
.
description
,
group
:
res
.
group
,
group
:
res
.
group
,
subSystemValue
:
res
.
subSystemValue
||
''
,
subSystemValue
:
res
.
subSystemValue
||
''
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
let
id
=
res
.
roleID
;
let
id
=
res
.
roleID
;
form
.
resetFields
();
form
.
resetFields
();
notification
.
success
({
notification
.
success
({
...
@@ -84,7 +82,7 @@ const AddModal = props => {
...
@@ -84,7 +82,7 @@ const AddModal = props => {
notification
.
error
({
notification
.
error
({
message
:
'提示'
,
message
:
'提示'
,
duration
:
15
,
duration
:
15
,
description
:
res
.
m
essage
,
description
:
res
.
m
sg
,
});
});
}
}
})
})
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/roleManage/DelModal.jsx
View file @
a23d6f15
...
@@ -9,12 +9,10 @@ const DelModal = props => {
...
@@ -9,12 +9,10 @@ const DelModal = props => {
setLoading
(
true
);
setLoading
(
true
);
deleteRole
({
deleteRole
({
roleID
:
itemObj
.
roleID
||
''
,
roleID
:
itemObj
.
roleID
||
''
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
notification
.
success
({
notification
.
success
({
message
:
'通知'
,
message
:
'通知'
,
duration
:
3
,
duration
:
3
,
...
@@ -25,7 +23,7 @@ const DelModal = props => {
...
@@ -25,7 +23,7 @@ const DelModal = props => {
notification
.
error
({
notification
.
error
({
message
:
'提示'
,
message
:
'提示'
,
duration
:
3
,
duration
:
3
,
description
:
res
.
m
essage
,
description
:
res
.
m
sg
,
});
});
}
}
})
})
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/roleManage/EditGroup.jsx
View file @
a23d6f15
...
@@ -20,12 +20,10 @@ const EditGroup = props => {
...
@@ -20,12 +20,10 @@ const EditGroup = props => {
subSystemValue
:
itemObj
.
visibleValue
||
itemObj
.
subSystemValue
,
subSystemValue
:
itemObj
.
visibleValue
||
itemObj
.
subSystemValue
,
oldName
:
itemObj
.
groupflag
,
oldName
:
itemObj
.
groupflag
,
newName
:
form
.
getFieldsValue
().
newName
,
newName
:
form
.
getFieldsValue
().
newName
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
form
.
resetFields
();
form
.
resetFields
();
notification
.
success
({
notification
.
success
({
message
:
'提示'
,
message
:
'提示'
,
...
@@ -37,7 +35,7 @@ const EditGroup = props => {
...
@@ -37,7 +35,7 @@ const EditGroup = props => {
notification
.
error
({
notification
.
error
({
message
:
'提示'
,
message
:
'提示'
,
duration
:
15
,
duration
:
15
,
description
:
res
.
m
essage
,
description
:
res
.
m
sg
,
});
});
}
}
})
})
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/roleManage/EditModal.jsx
View file @
a23d6f15
...
@@ -32,12 +32,10 @@ const AddModal = props => {
...
@@ -32,12 +32,10 @@ const AddModal = props => {
description
:
res
.
description
,
description
:
res
.
description
,
group
:
res
.
group
,
group
:
res
.
group
,
subSystemValue
:
itemObj
.
subSystemValue
||
itemObj
.
visibleValue
||
''
,
subSystemValue
:
itemObj
.
subSystemValue
||
itemObj
.
visibleValue
||
''
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
form
.
resetFields
();
form
.
resetFields
();
notification
.
success
({
notification
.
success
({
message
:
'提示'
,
message
:
'提示'
,
...
@@ -49,7 +47,7 @@ const AddModal = props => {
...
@@ -49,7 +47,7 @@ const AddModal = props => {
notification
.
error
({
notification
.
error
({
message
:
'提示'
,
message
:
'提示'
,
duration
:
3
,
duration
:
3
,
description
:
res
.
m
essage
,
description
:
res
.
m
sg
,
});
});
}
}
})
})
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/roleManage/RoleManage.jsx
View file @
a23d6f15
...
@@ -142,8 +142,6 @@ const SiteManage = () => {
...
@@ -142,8 +142,6 @@ const SiteManage = () => {
roleID
:
itemObj
.
roleID
,
roleID
:
itemObj
.
roleID
,
subSystemValue
:
itemObj
.
subSystemValue
,
subSystemValue
:
itemObj
.
subSystemValue
,
subSystemName
:
itemObj
.
subSystemValue
,
subSystemName
:
itemObj
.
subSystemValue
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
const
list
=
[];
const
list
=
[];
...
@@ -438,7 +436,7 @@ const SiteManage = () => {
...
@@ -438,7 +436,7 @@ const SiteManage = () => {
)
)
.
then
(
res
=>
{
.
then
(
res
=>
{
setBtnLoading
(
false
);
setBtnLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
'Ok'
)
{
setValueList
([...
results
.
flat
()]);
setValueList
([...
results
.
flat
()]);
notification
.
success
({
notification
.
success
({
message
:
'提示'
,
message
:
'提示'
,
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/roleManage/UserModal.jsx
View file @
a23d6f15
...
@@ -149,7 +149,7 @@ const UserModal = props => {
...
@@ -149,7 +149,7 @@ const UserModal = props => {
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
setSelectList
([]);
setSelectList
([]);
setUpdateCheck
(
updateCheck
+
1
);
setUpdateCheck
(
updateCheck
+
1
);
confirmModal
(
itemObj
.
roleID
)
confirmModal
(
itemObj
.
roleID
)
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManage/AddModal.jsx
View file @
a23d6f15
...
@@ -17,12 +17,10 @@ const AddModal = props => {
...
@@ -17,12 +17,10 @@ const AddModal = props => {
addStation
({
addStation
({
stationName
:
res
.
stationName
,
stationName
:
res
.
stationName
,
description
:
res
.
description
,
description
:
res
.
description
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
form
.
resetFields
();
form
.
resetFields
();
notification
.
success
({
notification
.
success
({
message
:
'通知'
,
message
:
'通知'
,
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManage/DelModal.jsx
View file @
a23d6f15
...
@@ -9,12 +9,10 @@ const DelModal = props => {
...
@@ -9,12 +9,10 @@ const DelModal = props => {
setLoading
(
true
);
setLoading
(
true
);
deleteStation
({
deleteStation
({
stationID
:
stationId
,
stationID
:
stationId
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
notification
.
success
({
notification
.
success
({
message
:
'通知'
,
message
:
'通知'
,
duration
:
3
,
duration
:
3
,
...
@@ -25,7 +23,7 @@ const DelModal = props => {
...
@@ -25,7 +23,7 @@ const DelModal = props => {
notification
.
error
({
notification
.
error
({
message
:
'提示'
,
message
:
'提示'
,
duration
:
3
,
duration
:
3
,
description
:
res
.
m
essage
,
description
:
res
.
m
sg
,
});
});
}
}
})
})
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManage/EditModal.jsx
View file @
a23d6f15
...
@@ -19,12 +19,10 @@ const EditModal = props => {
...
@@ -19,12 +19,10 @@ const EditModal = props => {
stationName
:
res
.
stationName
,
stationName
:
res
.
stationName
,
description
:
res
.
description
,
description
:
res
.
description
,
stationID
:
stationObj
,
stationID
:
stationObj
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
form
.
resetFields
();
form
.
resetFields
();
notification
.
success
({
notification
.
success
({
message
:
'通知'
,
message
:
'通知'
,
...
@@ -36,7 +34,7 @@ const EditModal = props => {
...
@@ -36,7 +34,7 @@ const EditModal = props => {
notification
.
error
({
notification
.
error
({
message
:
'提示'
,
message
:
'提示'
,
duration
:
3
,
duration
:
3
,
description
:
res
.
m
essage
,
description
:
res
.
m
sg
,
});
});
}
}
})
})
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManage/SiteManage.jsx
View file @
a23d6f15
...
@@ -73,14 +73,12 @@ const SiteManage = props => {
...
@@ -73,14 +73,12 @@ const SiteManage = props => {
getWebModuleTree
({
getWebModuleTree
({
userMode
:
userMode
||
'super'
,
userMode
:
userMode
||
'super'
,
select
:
''
,
select
:
''
,
_version
:
9999
,
_dc
:
Date
.
now
(),
node
:
-
2
,
node
:
-
2
,
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
handleShowModal
(
'spinLoading'
,
false
);
handleShowModal
(
'spinLoading'
,
false
);
let
arr
=
[];
let
arr
=
[];
if
(
res
)
{
if
(
code
===
0
)
{
arr
.
push
(
res
.
find
(
item
=>
item
.
id
===
'Web4StationRoot'
));
arr
.
push
(
res
.
find
(
item
=>
item
.
id
===
'Web4StationRoot'
));
}
}
if
(
arr
[
0
])
{
if
(
arr
[
0
])
{
...
@@ -350,7 +348,7 @@ const SiteManage = props => {
...
@@ -350,7 +348,7 @@ const SiteManage = props => {
.
then
(
res
=>
{
.
then
(
res
=>
{
handleShowModal
(
'btnLoading'
,
false
);
handleShowModal
(
'btnLoading'
,
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
setSelectList
([]);
setSelectList
([]);
setUpdate1
(
update1
+
1
);
setUpdate1
(
update1
+
1
);
notification
.
success
({
notification
.
success
({
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManageV2/siteManage.jsx
View file @
a23d6f15
...
@@ -435,7 +435,7 @@ const SiteManageV2 = () => {
...
@@ -435,7 +435,7 @@ const SiteManageV2 = () => {
.
then
(
res
=>
{
.
then
(
res
=>
{
handleShowModal
(
'btnLoading'
,
false
);
handleShowModal
(
'btnLoading'
,
false
);
if
(
res
.
success
)
{
if
(
res
.
msg
===
''
)
{
setSelectList
([]);
setSelectList
([]);
setUpdateCheck
(
updateCheck
+
1
);
setUpdateCheck
(
updateCheck
+
1
);
notification
.
success
({
notification
.
success
({
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManageV2/siteManage.less
View file @
a23d6f15
...
@@ -378,6 +378,7 @@
...
@@ -378,6 +378,7 @@
.ant-tree-list-holder {
.ant-tree-list-holder {
overflow: auto;
overflow: auto;
overflow-x: hidden;
height: 40vh;
height: 40vh;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/userManage/DeleteOrgModal.jsx
View file @
a23d6f15
...
@@ -20,7 +20,7 @@ const DeleteOrgModal = props => {
...
@@ -20,7 +20,7 @@ const DeleteOrgModal = props => {
}
else
{
}
else
{
notification
.
error
({
notification
.
error
({
message
:
'提交失败'
,
message
:
'提交失败'
,
description
:
res
.
m
essage
,
description
:
res
.
m
sg
,
});
});
}
}
})
})
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/userManage/UserManage.js
View file @
a23d6f15
...
@@ -45,7 +45,6 @@ import {
...
@@ -45,7 +45,6 @@ import {
addToOrg
,
addToOrg
,
addToOrgs
,
addToOrgs
,
getOneOUUserListNew
,
getOneOUUserListNew
,
getUserByKey
,
getUserRelationList
,
getUserRelationList
,
getUserTree
,
getUserTree
,
deleteUser
as
postDeleteUser
,
deleteUser
as
postDeleteUser
,
...
@@ -423,12 +422,12 @@ const UserManage = () => {
...
@@ -423,12 +422,12 @@ const UserManage = () => {
<
span
className
=
{
styles
.
tip
}
>
<
span
className
=
{
styles
.
tip
}
>
<
Tooltip
title
=
""
className
=
{
styles
.
fs
}
>
<
Tooltip
title
=
""
className
=
{
styles
.
fs
}
>
<
Dropdown
overlay
=
{
orgButtonMenu
}
disabled
=
{
currentOrgOperate
}
>
<
Dropdown
overlay
=
{
orgButtonMenu
}
disabled
=
{
currentOrgOperate
}
>
<
PlusOutlined
style
=
{{
marginLeft
:
20
}}
/
>
<
PlusOutlined
style
=
{{
marginLeft
:
20
}}
onClick
=
{
e
=>
e
.
stopPropagation
()}
/
>
<
/Dropdown
>
<
/Dropdown
>
<
/Tooltip
>
<
/Tooltip
>
<
Dropdown
overlay
=
{
orgButtonMenu1
}
disabled
=
{
currentOrgOperate
}
>
<
Dropdown
overlay
=
{
orgButtonMenu1
}
disabled
=
{
currentOrgOperate
}
>
<
EllipsisOutlined
style
=
{{
marginLeft
:
10
,
fontSize
:
'20px'
}}
/
>
<
EllipsisOutlined
style
=
{{
marginLeft
:
10
,
fontSize
:
'20px'
}}
onClick
=
{
e
=>
e
.
stopPropagation
()}
/
>
<
/Dropdown
>
<
/Dropdown
>
<
/span
>
<
/span
>
<
/div
>
<
/div
>
...
@@ -593,9 +592,6 @@ const UserManage = () => {
...
@@ -593,9 +592,6 @@ const UserManage = () => {
}
}
return
arr
;
return
arr
;
};
};
const
editorMenu
=
(
e
)
=>
{
e
.
stopPropagation
();
}
// 添加用户
// 添加用户
const
addUser
=
(
e
)
=>
{
const
addUser
=
(
e
)
=>
{
setUserVisible
(
true
);
setUserVisible
(
true
);
...
@@ -606,7 +602,7 @@ const UserManage = () => {
...
@@ -606,7 +602,7 @@ const UserManage = () => {
setOrgID
(
'-1'
);
setOrgID
(
'-1'
);
};
};
// 添加下级机构
// 添加下级机构
const
addSubOrg
=
()
=>
{
const
addSubOrg
=
(
e
)
=>
{
setAddOrgVisible
(
true
);
setAddOrgVisible
(
true
);
};
};
// 编辑机构
// 编辑机构
...
@@ -1114,9 +1110,29 @@ const onTypeChange = (value) => {
...
@@ -1114,9 +1110,29 @@ const onTypeChange = (value) => {
message
.
error
(
err
);
message
.
error
(
err
);
});
});
};
};
//重置默认第一个
const
handleReset
=
()
=>
{
const
handleReset
=
()
=>
{
setSearchWord
(
''
);
GetOUTreeNew
({
selectOU
:
-
1
})
.
then
(
newres
=>
{
if
(
newres
.
code
===
0
)
{
let
res
=
newres
.
data
;
setTreeLoading
(
false
);
setSearchWord
(
''
);
// 第一次加载,默认选择第一个组织
onSelect
([
res
[
0
].
id
],
false
);
}
else
{
setTreeLoading
(
false
);
notification
.
error
({
message
:
'获取失败'
,
// eslint-disable-next-line no-undef
description
:
res
.
message
,
});
}
})
.
catch
(
err
=>
{
setTreeLoading
(
false
);
message
.
error
(
err
);
});
}
}
// 更改机构范围
// 更改机构范围
const
submitExtent
=
(
extent
,
areaName
)
=>
{
const
submitExtent
=
(
extent
,
areaName
)
=>
{
...
@@ -1368,7 +1384,7 @@ const onTypeChange = (value) => {
...
@@ -1368,7 +1384,7 @@ const onTypeChange = (value) => {
}}
}}
okText
=
"确认"
okText
=
"确认"
cancelText
=
"取消"
cancelText
=
"取消"
width
=
"
33
0px"
width
=
"
50
0px"
>
>
<
span
>
请选择要更改的目标机构:
<
/span
>
<
span
>
请选择要更改的目标机构:
<
/span
>
{
changeOrgVisible
&&
treeDataCopy
.
length
>
0
&&
(
{
changeOrgVisible
&&
treeDataCopy
.
length
>
0
&&
(
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/userManage/UserManage.less
View file @
a23d6f15
...
@@ -245,6 +245,7 @@
...
@@ -245,6 +245,7 @@
}
}
.ant-tree-list-holder{
.ant-tree-list-holder{
overflow: auto;
overflow: auto;
overflow-x:hidden;
height: 40vh;
height: 40vh;
}
}
.ant-tabs-content-holder{
.ant-tabs-content-holder{
...
...
This diff is collapsed.
Click to expand it.
src/services/appConfig/api.js
View file @
a23d6f15
...
@@ -91,9 +91,7 @@ export const getRoleList = () =>
...
@@ -91,9 +91,7 @@ export const getRoleList = () =>
});
});
// 编辑-获取菜单
// 编辑-获取菜单
export
const
getMenuInfo
=
id
=>
export
const
getMenuInfo
=
id
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/Mini_GetMenuInfo`
,
{
get
(
`
${
PUBLISH_SERVICE
}
/PlatformCenter/Mini_GetMenuInfo`
,
{
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
menuID
:
id
,
menuID
:
id
,
});
});
// 编辑-提交菜单
// 编辑-提交菜单
...
...
This diff is collapsed.
Click to expand it.
src/services/database/api.js
View file @
a23d6f15
...
@@ -18,14 +18,11 @@ export const connectionTest = params =>
...
@@ -18,14 +18,11 @@ export const connectionTest = params =>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/ConnectionTest`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/ConnectionTest`
,
params
);
// 获取数据库配置信息
// 获取数据库配置信息
export
const
getDataBaseConfig
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_GetDataBaseConfig`
,
params
);
export
const
getDataBaseConfigNew
=
params
=>
export
const
getDataBaseConfigNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetDataBaseConfig`
,
params
)
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetDataBaseConfig`
,
params
)
// 获取数据库连接记录
// 获取数据库连接记录
export
const
getConnRecord
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_GetConnRecord`
,
params
);
export
const
getConnRecordNew
=
params
=>
export
const
getConnRecordNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetConnRecord`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetConnRecord`
,
params
);
...
@@ -34,8 +31,8 @@ export const getConnectionTest = params =>
...
@@ -34,8 +31,8 @@ export const getConnectionTest = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_GetConnectionTest`
,
params
);
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_GetConnectionTest`
,
params
);
// 保存数据库连接
// 保存数据库连接
export
const
saveConnection
=
params
=>
//
export const saveConnection = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_SaveConnection`
,
params
);
//
get(`${CITY_SERVICE}/OMS.svc/S_SaveConnection`, params);
export
const
saveConnectionNew
=
params
=>
export
const
saveConnectionNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/SaveConnection`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/SaveConnection`
,
params
);
...
@@ -45,20 +42,20 @@ export const getDataBaseList = params =>
...
@@ -45,20 +42,20 @@ export const getDataBaseList = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_GetDataBaseList`
,
params
);
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_GetDataBaseList`
,
params
);
// 数据库初始化
// 数据库初始化
export
const
initDBv4
=
params
=>
//
export const initDBv4 = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_InitDBv4`
,
params
);
//
get(`${CITY_SERVICE}/OMS.svc/S_InitDBv4`, params);
export
const
initDBv4new
=
params
=>
export
const
initDBv4new
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/InitDB`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/InitDB`
,
params
);
// 更新描述
// 更新描述
export
const
updateConnDesc
=
params
=>
//
export const updateConnDesc = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_UpdateConnDesc`
,
params
);
//
get(`${CITY_SERVICE}/OMS.svc/S_UpdateConnDesc`, params);
export
const
updateConnDescNew
=
params
=>
export
const
updateConnDescNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/UpdateConnDesc`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/UpdateConnDesc`
,
params
);
// 获取日志
// 获取日志
export
const
getInitDBLog
=
params
=>
//
export const getInitDBLog = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_GetInitDBLog`
,
params
);
//
get(`${CITY_SERVICE}/OMS.svc/S_GetInitDBLog`, params);
export
const
getInitDBLogNew
=
params
=>
export
const
getInitDBLogNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetInitDBLog`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetInitDBLog`
,
params
);
...
@@ -68,13 +65,13 @@ export const deleteInitDBLog = params =>
...
@@ -68,13 +65,13 @@ export const deleteInitDBLog = params =>
export
const
deleteInitDBLogNew
=
params
=>
export
const
deleteInitDBLogNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/DeleteInitDBLog`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/DeleteInitDBLog`
,
params
);
//
修改产品解决方案
//
设置数据库初始化类型
export
const
setTableSQLDirName
=
params
=>
export
const
setTableSQLDirName
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_
SetTableSQLDirName`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/
SetTableSQLDirName`
,
params
);
// 删除数据库连接记录
// 删除数据库连接记录
export
const
deleteConn
=
params
=>
//
export const deleteConn = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_DeleteConn`
,
params
);
//
get(`${CITY_SERVICE}/OMS.svc/S_DeleteConn`, params);
export
const
deleteConnNew
=
params
=>
export
const
deleteConnNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManage/DeleteConnection`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManage/DeleteConnection`
,
params
);
...
@@ -97,27 +94,27 @@ export const changeSolution = params =>
...
@@ -97,27 +94,27 @@ export const changeSolution = params =>
* @数据库标准化管理
* @数据库标准化管理
*/
*/
// 检查数据库表
// 检查数据库表
export
const
tableCheck
=
params
=>
//
export const tableCheck = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/TableCheck`
,
params
);
//
get(`${CITY_SERVICE}/OMS.svc/TableCheck`, params);
export
const
tableCheckNew
=
params
=>
export
const
tableCheckNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/TableCheck`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/TableCheck`
,
params
);
// 获取数据库升级记录
// 获取数据库升级记录
export
const
databaseStandardGetLog
=
params
=>
//
export const databaseStandardGetLog = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/DatabaseStandard_GetLog`
,
params
);
//
get(`${CITY_SERVICE}/OMS.svc/DatabaseStandard_GetLog`, params);
export
const
databaseStandardGetLogNew
=
params
=>
export
const
databaseStandardGetLogNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetUpdateDBLog`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetUpdateDBLog`
,
params
);
// 更新
// 更新
export
const
updateDateBase
=
params
=>
export
const
updateDateBase
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/DatabaseStandard_UpdateDate
Base`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/UpdateData
Base`
,
params
);
/**
/**
* @数据库连接配置
* @数据库连接配置
*/
*/
// 删除数据库连接
export
const
deleteConnString
=
params
=>
//
export const deleteConnString = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_DeleteConnString`
,
params
);
//
get(`${CITY_SERVICE}/OMS.svc/S_DeleteConnString`, params);
// SQL数据库连接
// SQL数据库连接
export
const
getSQLServerConnString
=
params
=>
export
const
getSQLServerConnString
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_GetSQLServerConnString`
,
params
);
get
(
`
${
CITY_SERVICE
}
/OMS.svc/S_GetSQLServerConnString`
,
params
);
...
@@ -185,12 +182,16 @@ export const editMySQLConnString = params =>
...
@@ -185,12 +182,16 @@ export const editMySQLConnString = params =>
timeout
:
300000
,
timeout
:
300000
,
});
});
//获取数据库链接字符串
export
const
GetConnString
=
params
=>
export
const
GetConnString
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetConnString`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/GetConnString`
,
params
);
//添加数据库链接字符串
export
const
AddConnString
=
params
=>
export
const
AddConnString
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/AddConnString`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/AddConnString`
,
params
);
//编辑数据库链接字符串
export
const
EditConnString
=
params
=>
export
const
EditConnString
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/EditConnString`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/EditConnString`
,
params
);
// 删除数据库连接
export
const
DeleteConnString
=
params
=>
export
const
DeleteConnString
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/DeleteConnString`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/DBManager/DeleteConnString`
,
params
);
export
const
GetConnTest
=
params
=>
export
const
GetConnTest
=
params
=>
...
...
This diff is collapsed.
Click to expand it.
src/services/mobileConfig/api.js
View file @
a23d6f15
...
@@ -74,7 +74,7 @@ export const addMenu = params =>
...
@@ -74,7 +74,7 @@ export const addMenu = params =>
* }
* }
*/
*/
export
const
getMenuInfo
=
params
=>
export
const
getMenuInfo
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc
/Mini_GetMenuInfo`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/PlatformCenter
/Mini_GetMenuInfo`
,
params
);
// 编辑菜单
// 编辑菜单
export
const
editMenu
=
params
=>
export
const
editMenu
=
params
=>
...
...
This diff is collapsed.
Click to expand it.
src/services/orgnazation/api.js
View file @
a23d6f15
import
{
get
,
post
,
CITY_SERVICE
}
from
'../index'
;
/*
* @Description:
* @Author: leizhe
* @Date: 2021-05-27 16:31:05
* @LastEditTime: 2021-07-07 16:10:30
* @LastEditors: leizhe
*/
import
{
get
,
post
,
CITY_SERVICE
,
PUBLISH_SERVICE
}
from
'../index'
;
export
const
orgTest
=
params
=>
export
const
orgTest
=
params
=>
get
(
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_
GetMenuByRoleWithLevel?roleID=6&subSystemValue=city&subSystemName=city&_version=9999&_dc=1604051878230`
,
`
${
PUBLISH_SERVICE
}
/UserCenter/
GetMenuByRoleWithLevel?roleID=6&subSystemValue=city&subSystemName=city&_version=9999&_dc=1604051878230`
,
params
,
params
,
);
);
...
...
This diff is collapsed.
Click to expand it.
src/services/userCenter/RoleManage/api.js
View file @
a23d6f15
/*
* @Description:
* @Author: leizhe
* @Date: 2021-05-27 16:31:05
* @LastEditTime: 2021-07-07 17:50:49
* @LastEditors: leizhe
*/
import
{
get
,
post
,
PUBLISH_SERVICE
,
CITY_SERVICE
}
from
'@/services/index'
;
import
{
get
,
post
,
PUBLISH_SERVICE
,
CITY_SERVICE
}
from
'@/services/index'
;
// 新增站点
// 新增站点
...
@@ -5,15 +12,15 @@ export const addStation = params =>
...
@@ -5,15 +12,15 @@ export const addStation = params =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_AddStation`
,
params
);
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_AddStation`
,
params
);
// 删除站点
// 删除站点
export
const
deleteStation
=
params
=>
export
const
deleteStation
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_
DeleteStation`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
DeleteStation`
,
params
);
// 编辑站点
// 编辑站点
export
const
editStation
=
params
=>
export
const
editStation
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_
EditStation`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
EditStation`
,
params
);
//
保存站点选择人员
//
角色关联用户
export
const
chooseUserToStation
=
(
params
,
options
)
=>
export
const
chooseUserToStation
=
(
params
,
options
)
=>
pos
t
(
ge
t
(
`
${
CITY_SERVICE
}
/OMS.svc/P_ChooseUserToStation?_version=9999
`
,
`
${
PUBLISH_SERVICE
}
/UserCenter/ChooseUserToStation?
`
,
params
,
params
,
options
,
options
,
);
);
...
@@ -25,7 +32,7 @@ export const getUserRelationList = params =>
...
@@ -25,7 +32,7 @@ export const getUserRelationList = params =>
// 角色管理保存选择
// 角色管理保存选择
export
const
setMenuToRole
=
(
params
,
options
)
=>
export
const
setMenuToRole
=
(
params
,
options
)
=>
post
(
post
(
`
${
CITY_SERVICE
}
/OMS.svc/P_SetMenuToRole?_version: 9999
`
,
`
${
PUBLISH_SERVICE
}
/UserCenter/SetMenuToRole?
`
,
params
,
params
,
options
,
options
,
);
);
...
@@ -39,24 +46,24 @@ export const getRoleGroupList = params =>
...
@@ -39,24 +46,24 @@ export const getRoleGroupList = params =>
// 新增角色
// 新增角色
export
const
addRole
=
params
=>
export
const
addRole
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_
AddRole`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
AddRole`
,
params
);
// 获取分组列表
// 获取分组列表
export
const
getRoleGroup
=
params
=>
export
const
getRoleGroup
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_GetRoleGroup`
,
params
);
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_GetRoleGroup`
,
params
);
// 编辑角色
// 编辑角色
export
const
editRole
=
params
=>
export
const
editRole
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_
EditRole`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
EditRole`
,
params
);
// 删除角色
// 删除角色
export
const
deleteRole
=
params
=>
export
const
deleteRole
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_
DeleteRole`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
DeleteRole`
,
params
);
// 编辑分组名称
// 编辑分组名称
export
const
setRoleGroupName
=
params
=>
export
const
setRoleGroupName
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_
SetRoleGroupName`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
SetRoleGroupName`
,
params
);
//
保存选择的功能
//
通过角色id获取组件菜单
export
const
getMenuByRoleWithLevel
=
params
=>
export
const
getMenuByRoleWithLevel
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_
GetMenuByRoleWithLevel`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
GetMenuByRoleWithLevel`
,
params
);
// 获取角色类别
// 获取角色类别
export
const
getWebConfigTypes
=
params
=>
export
const
getWebConfigTypes
=
params
=>
...
...
This diff is collapsed.
Click to expand it.
src/services/userCenter/siteManage/api.js
View file @
a23d6f15
...
@@ -7,22 +7,26 @@ import { get, post, CITY_SERVICE, PUBLISH_SERVICE } from '@/services/index';
...
@@ -7,22 +7,26 @@ import { get, post, CITY_SERVICE, PUBLISH_SERVICE } from '@/services/index';
export
const
getOUTree
=
params
=>
export
const
getOUTree
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/U_GetOUTree?_version=9999&node=-1`
,
params
);
get
(
`
${
CITY_SERVICE
}
/OMS.svc/U_GetOUTree?_version=9999&node=-1`
,
params
);
// 获取站点信息
// 获取站点信息
export
const
getWebModuleTree
=
params
=>
export
const
getWebModuleTree
=
userMode
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_GetWeb4ModuleTree`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/PlatformCenter/WebModuleTree?
${
qs
.
stringify
({
userMode
,
})}
`
,
);
// 新增站点
// 新增站点
export
const
addStation
=
params
=>
export
const
addStation
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_
AddStation`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
AddStation`
,
params
);
// 删除站点
// 删除站点
export
const
deleteStation
=
params
=>
export
const
deleteStation
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_
DeleteStation`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
DeleteStation`
,
params
);
// 编辑站点
// 编辑站点
export
const
editStation
=
params
=>
export
const
editStation
=
params
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_
EditStation`
,
params
);
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/
EditStation`
,
params
);
// 保存站点选择人员
// 保存站点选择人员
export
const
chooseUserToStation
=
(
params
,
options
)
=>
export
const
chooseUserToStation
=
(
params
,
options
)
=>
pos
t
(
ge
t
(
`
${
CITY_SERVICE
}
/OMS.svc/P_ChooseUserToStation?_version=9999
`
,
`
${
PUBLISH_SERVICE
}
/UserCenter/ChooseUserToStation?
`
,
params
,
params
,
options
,
options
,
);
);
...
...
This diff is collapsed.
Click to expand it.
src/services/userCenter/userManage/api.js
View file @
a23d6f15
...
@@ -24,12 +24,15 @@ export const getOneOUUserListNew = OUID =>
...
@@ -24,12 +24,15 @@ export const getOneOUUserListNew = OUID =>
* 查询用户
* 查询用户
* @param {*} key
* @param {*} key
*/
*/
export
const
getUserByKey
=
key
=>
// export const getUserByKey = key =>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/U_GetUserByKey`
,
{
// get(`${CITY_SERVICE}/OMS.svc/U_GetUserByKey`, {
_version
:
9999
,
// _version: 9999,
_dc
:
new
Date
().
getTime
(),
// _dc: new Date().getTime(),
key
,
// key,
});
// });
export
const
GetUserByKeyNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/GetUserByKey`
,
params
)
/**
/**
* 添加用户
* 添加用户
...
@@ -155,9 +158,6 @@ export const GetOUTreeNew = params =>
...
@@ -155,9 +158,6 @@ export const GetOUTreeNew = params =>
export
const
GetUserRelationListNew
=
params
=>
export
const
GetUserRelationListNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/GetUserRelationList`
,
params
)
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/GetUserRelationList`
,
params
)
export
const
GetUserByKeyNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/GetUserByKey`
,
params
)
export
const
AddUserNew
=
params
=>
export
const
AddUserNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/AddUser`
,
params
)
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/AddUser`
,
params
)
...
@@ -182,8 +182,8 @@ export const GetOUTreeNew = params =>
...
@@ -182,8 +182,8 @@ export const GetOUTreeNew = params =>
export
const
SetUserRelationListNew
=
params
=>
export
const
SetUserRelationListNew
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/SetUserRelationList`
,
params
)
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/SetUserRelationList`
,
params
)
export
const
DeleteOUNew
=
params
=>
//
export const DeleteOUNew = params =>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/DeleteOU`
,
params
)
//
get(`${PUBLISH_SERVICE}/UserCenter/DeleteOU`, params)
...
...
This diff is collapsed.
Click to expand it.
src/services/webConfig/api.js
View file @
a23d6f15
...
@@ -38,7 +38,7 @@ export const getMapCofigs = () =>
...
@@ -38,7 +38,7 @@ export const getMapCofigs = () =>
* @param {*} title 网站标题
* @param {*} title 网站标题
*/
*/
export
const
getWebconfig
=
title
=>
export
const
getWebconfig
=
title
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_
GetWebsite`
,
{
title
});
get
(
`
${
PUBLISH_SERVICE
}
/WebSite/
GetWebsite`
,
{
title
});
/**
/**
* 编辑或添加网站。默认编辑模式
* 编辑或添加网站。默认编辑模式
...
@@ -53,7 +53,7 @@ export const postEditWebConfig = (config, isAdd = false) => {
...
@@ -53,7 +53,7 @@ export const postEditWebConfig = (config, isAdd = false) => {
}
}
});
});
return
post
(
return
post
(
`
${
CITY_SERVICE
}
/OMS.svc/
${
isAdd
?
'W4_
AddWebsite'
:
'W4_EditWebsite'
`
${
PUBLISH_SERVICE
}
/WebSite/
${
isAdd
?
'
AddWebsite'
:
'W4_EditWebsite'
}
?_version=9999`
,
}
?_version=9999`
,
qs
.
stringify
({
config
:
JSON
.
stringify
(
obj
)
}),
qs
.
stringify
({
config
:
JSON
.
stringify
(
obj
)
}),
{
{
...
...
This diff is collapsed.
Click to expand it.
src/utils/request/index.js
View file @
a23d6f15
...
@@ -30,7 +30,7 @@ axios.defaults.withCredentials = true
...
@@ -30,7 +30,7 @@ axios.defaults.withCredentials = true
axios
.
interceptors
.
request
.
use
(
function
(
request
){
axios
.
interceptors
.
request
.
use
(
function
(
request
){
const
token
=
localStorage
.
getItem
(
'token'
)
const
token
=
localStorage
.
getItem
(
'token'
)
const
pandaPublish
=
localStorage
.
getItem
(
'panda-publish'
)
const
pandaPublish
=
localStorage
.
getItem
(
'panda-publish'
)
const
getWay
=
'/Panda
OMS
/GateWay'
const
getWay
=
'/Panda
Core
/GateWay'
if
(
token
){
if
(
token
){
request
.
headers
.
Authorization
=
'Bearer '
+
token
request
.
headers
.
Authorization
=
'Bearer '
+
token
}
}
...
...
This diff is collapsed.
Click to expand it.
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