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

fix: 修改用户管理参数

parent 5a487c7b
Pipeline #69955 passed with stages
...@@ -55,21 +55,19 @@ const CurrentSolution = () => { ...@@ -55,21 +55,19 @@ const CurrentSolution = () => {
setLoading(true); setLoading(true);
changeSolution({ changeSolution({
solution: currentData, solution: currentData,
_version: 9999,
_dc: new Date().getTime(),
}) })
.then(res => { .then(res => {
setLoading(false); setLoading(false);
if (res.success) { if (res.code === 0) {
notification.success({ notification.success({
message: '提示', message: '提示',
description: res.message || '切换成功', description: '切换成功',
duration: 3, duration: 3,
}); });
} else { } else {
notification.error({ notification.error({
message: '提示', message: '提示',
description: res.message || '切换失败', description: res.msg || '切换失败',
duration: 15, duration: 15,
}); });
} }
......
...@@ -162,7 +162,7 @@ const SiteManageV2 = () => { ...@@ -162,7 +162,7 @@ const SiteManageV2 = () => {
// 重新渲染树 // 重新渲染树
const updateTrees = value => { const updateTrees = value => {
setTreeLoading(true); setTreeLoading(true);
getSiteTree({ selectNode: -1, keyword: value }).then(res => { getSiteTree({ node: -1, keyword: value }).then(res => {
if (res.code === 0) { if (res.code === 0) {
setTreeLoading(false); setTreeLoading(false);
setTreeData(res.data.list); setTreeData(res.data.list);
...@@ -418,7 +418,7 @@ const SiteManageV2 = () => { ...@@ -418,7 +418,7 @@ const SiteManageV2 = () => {
}; };
const getValue = () => { const getValue = () => {
getSiteTree({ selectNode: -1 }).then(res => { getSiteTree({ node: -1 }).then(res => {
getData1(res.data); getData1(res.data);
}); });
}; };
......
...@@ -716,7 +716,7 @@ const UserManage = () => { ...@@ -716,7 +716,7 @@ const UserManage = () => {
// setTreeLoading(false); // setTreeLoading(false);
// message.error(err); // message.error(err);
// }); // });
GetOUTreeNew({ selectOU: -1, keyword: e }) GetOUTreeNew({ groupId: -1, keyword: e })
.then(newres => { .then(newres => {
setTreeLoading(false); setTreeLoading(false);
if (newres.code === 0) { if (newres.code === 0) {
...@@ -755,7 +755,7 @@ const UserManage = () => { ...@@ -755,7 +755,7 @@ const UserManage = () => {
const updateTrees1 = e => { const updateTrees1 = e => {
console.log(e); console.log(e);
setTreeLoading(true); setTreeLoading(true);
GetOUTreeNew({ selectOU: -1 }) GetOUTreeNew({ groupId: -1 })
.then(newres => { .then(newres => {
if (newres.code === 0) { if (newres.code === 0) {
let res = newres.data.list; let res = newres.data.list;
...@@ -1462,7 +1462,7 @@ const UserManage = () => { ...@@ -1462,7 +1462,7 @@ const UserManage = () => {
}; };
// 重置默认第一个 // 重置默认第一个
const handleReset = () => { const handleReset = () => {
GetOUTreeNew({ selectOU: -1 }) GetOUTreeNew({ groupId: -1 })
.then(newres => { .then(newres => {
if (newres.code === 0) { if (newres.code === 0) {
let res = newres.data.list; let res = newres.data.list;
......
...@@ -78,7 +78,9 @@ export const getSolutionList = params => get(`${CITY_SERVICE}/OMS.svc/W4_GetSolu ...@@ -78,7 +78,9 @@ export const getSolutionList = params => get(`${CITY_SERVICE}/OMS.svc/W4_GetSolu
export const publishGetSolutionList = params => export const publishGetSolutionList = params =>
get(`${PUBLISH_SERVICE}/PlatformCenter/GetSolutionList`, 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