Commit 06d4ffdd authored by Maofei94's avatar Maofei94

perf: 修改web配置

parent 7f719899
Pipeline #23260 passed with stages
in 20 minutes 19 seconds
......@@ -23,7 +23,6 @@ const PictureWallProvider = props => {
if (item.baseUrl && item.moduleName !== 'CityTemp') {
if (!localStorage.getItem('pd2-baseUrl')) {
localStorage.setItem('pd2-baseUrl', item.baseUrl);
console.log(1, item.moduleName);
}
}
});
......
......@@ -56,7 +56,7 @@
.imgBox {
display: flex;
flex-wrap: wrap;
max-height: calc(100% - 40px);
max-height: calc(100% - 10px);
overflow: auto;
.ant-collapse-content-box{
display: flex;
......@@ -99,7 +99,8 @@
max-height: 100%;
}
.svgGray{
background-color: rgba(238,238,238,1);
// background-color: rgba(238,238,238,1);
background-color:#2881a1;
}
&:hover,
&>.seleted {
......
......@@ -409,9 +409,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
>
<Tabs defaultActiveKey={imgBed[0]?.moduleName} tabPosition="left" style={{ height: 520 }}>
{imgBed.map((item, i) => {
if(item.moduleName==picType || item.moduleName=='CityTemp'){
if(item.moduleName==picType || item.moduleName=='CityTemp'){
const child = [...item.child] || [];
if(item.fileUrls.length > 0){
child.push({
......
......@@ -21,6 +21,7 @@ import {
dragMenu, // 菜单拖拽
getProductList,
getWebModuleTree,
pEditWebMenu,
} from '@/services/webConfig/api';
const MiniMenu = props => {
......@@ -304,37 +305,68 @@ const MiniMenu = props => {
let obj = { ...prop, baseUrl };
if (nodeType === 1) {
obj.relatedRoleList = String(roleList) || '';
}
editWebMenu({
_dc: Date.now(),
menuID,
subSystemValue,
...obj,
})
.then(res => {
setLoading(false);
editWebMenu({
_dc: Date.now(),
menuID,
// subSystemValue,
...obj,
})
.then(res => {
setLoading(false);
if (res.success) {
setFlag(flag + 1);
// updateMenuTree('edit');
notification.success({
message: '提示',
duration: 3,
description: '编辑成功',
});
} else {
notification.error({
message: '提示',
duration: 3,
description: res.message || '编辑失败',
});
}
if (res.success) {
setFlag(flag + 1);
// updateMenuTree('edit');
notification.success({
message: '提示',
duration: 3,
description: '编辑成功',
});
} else {
notification.error({
message: '提示',
duration: 3,
description: res.message || '编辑失败',
});
}
})
.catch(err => {
// eslint-disable-next-line no-console
console.error(err);
setLoading(false);
});
} else {
pEditWebMenu({
_dc: Date.now(),
menuID,
// subSystemValue,
...obj,
})
.catch(err => {
// eslint-disable-next-line no-console
console.error(err);
setLoading(false);
});
.then(res => {
setLoading(false);
if (res.success) {
setFlag(flag + 1);
// updateMenuTree('edit');
notification.success({
message: '提示',
duration: 3,
description: '编辑成功',
});
} else {
notification.error({
message: '提示',
duration: 3,
description: res.message || '编辑失败',
});
}
})
.catch(err => {
// eslint-disable-next-line no-console
console.error(err);
setLoading(false);
});
}
};
const valueCallback = val => {
let arr = [...val];
......
......@@ -86,6 +86,9 @@ export const addWebMenu = param => {
export const editWebMenu = param =>
get(`${CITY_SERVICE}/OMS.svc/W4_EditMenu?_version=9999`, param);
export const pEditWebMenu = param =>
get(`${CITY_SERVICE}/OMS.svc/P_EditMenu?_version=9999`, param);
export const deleteWebMenu = param =>
get(`${CITY_SERVICE}/OMS.svc/W4_DeleteMenu?_version=9999`, param);
......
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