Commit 6210d2d0 authored by 邓超's avatar 邓超

fix: 修改用户管理参数

parent 5a487c7b
Pipeline #69955 passed with stages
......@@ -55,21 +55,19 @@ const CurrentSolution = () => {
setLoading(true);
changeSolution({
solution: currentData,
_version: 9999,
_dc: new Date().getTime(),
})
.then(res => {
setLoading(false);
if (res.success) {
if (res.code === 0) {
notification.success({
message: '提示',
description: res.message || '切换成功',
description: '切换成功',
duration: 3,
});
} else {
notification.error({
message: '提示',
description: res.message || '切换失败',
description: res.msg || '切换失败',
duration: 15,
});
}
......
......@@ -162,7 +162,7 @@ const SiteManageV2 = () => {
// 重新渲染树
const updateTrees = value => {
setTreeLoading(true);
getSiteTree({ selectNode: -1, keyword: value }).then(res => {
getSiteTree({ node: -1, keyword: value }).then(res => {
if (res.code === 0) {
setTreeLoading(false);
setTreeData(res.data.list);
......@@ -418,7 +418,7 @@ const SiteManageV2 = () => {
};
const getValue = () => {
getSiteTree({ selectNode: -1 }).then(res => {
getSiteTree({ node: -1 }).then(res => {
getData1(res.data);
});
};
......
......@@ -716,7 +716,7 @@ const UserManage = () => {
// setTreeLoading(false);
// message.error(err);
// });
GetOUTreeNew({ selectOU: -1, keyword: e })
GetOUTreeNew({ groupId: -1, keyword: e })
.then(newres => {
setTreeLoading(false);
if (newres.code === 0) {
......@@ -755,7 +755,7 @@ const UserManage = () => {
const updateTrees1 = e => {
console.log(e);
setTreeLoading(true);
GetOUTreeNew({ selectOU: -1 })
GetOUTreeNew({ groupId: -1 })
.then(newres => {
if (newres.code === 0) {
let res = newres.data.list;
......@@ -1462,7 +1462,7 @@ const UserManage = () => {
};
// 重置默认第一个
const handleReset = () => {
GetOUTreeNew({ selectOU: -1 })
GetOUTreeNew({ groupId: -1 })
.then(newres => {
if (newres.code === 0) {
let res = newres.data.list;
......
......@@ -78,7 +78,9 @@ export const getSolutionList = params => get(`${CITY_SERVICE}/OMS.svc/W4_GetSolu
export const publishGetSolutionList = params =>
get(`${PUBLISH_SERVICE}/PlatformCenter/GetSolutionList`, params);
// 切换解决方案
export const changeSolution = params => get(`${CITY_SERVICE}/OMS.svc/W4_ChangeSolution`, params);
// export const changeSolution = params => get(`${CITY_SERVICE}/OMS.svc/W4_ChangeSolution`, params);
export const changeSolution = params =>
get(`${PUBLISH_SERVICE}/PlatformCenter/ChangeSolution`, params);
/**
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment