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