Commit 57b76f44 authored by 涂伟's avatar 涂伟

fix: '运维app消息跳转默认配置添加'

parent 0037f120
......@@ -114,6 +114,78 @@ const EditModal = props => {
const [type, setType] = useState('');
const [hidden, setHidden] = useState(false);
const messageObj = {
id: "menu-99999",
text: "消息跳转配置",
visible: null,
iconCls: "",
children: [
{
id: "menu-9999",
text: "工单跳转",
visible: null,
iconCls: "civ-application",
children: [],
expanded: false,
leaf: true,
description: null,
allowDrag: true,
allowDrop: true,
draggable: true,
isTarget: true,
dragAttribute: "MiniAppMenu",
stationID: null,
roleID: null,
menuID: "9999",
offlineHead: null,
headType: null,
group: null,
groupName: null,
menuType: "MiniAppMenu",
clickType: "MiniAppMenu",
product: "civ_mobile",
hideInMenu: null,
mapComponent: 0,
existMapComponent: 0,
pageUrl: "civ_mobile/product/workflow/caseDetails?box=doing",
config: null,
offlineIconUrl: "",
onlineIconUrl: "",
funParam: "",
tipFrom: "",
isTop: true
}
],
expanded: false,
leaf: false,
description: null,
allowDrag: true,
allowDrop: true,
draggable: true,
isTarget: true,
dragAttribute: "MiniAppMenuGroup",
stationID: null,
roleID: null,
menuID: "99999",
offlineHead: null,
headType: null,
group: null,
groupName: null,
menuType: "MiniAppMenuGroup",
clickType: "MiniAppMenuGroup",
product: "",
hideInMenu: null,
mapComponent: 0,
existMapComponent: 0,
pageUrl: null,
config: null,
offlineIconUrl: "",
onlineIconUrl: "",
funParam: "",
tipFrom: null,
isTop: false
}
useEffect(() => {
getMessageIcon();
getTreeWeb();
......@@ -293,6 +365,9 @@ const EditModal = props => {
list.push(a);
});
console.log(list);
// 消息跳转默认配置
list[0].children.push(messageObj)
console.log(list, 'listttttttttttttttttttt');
setMenuMoblieList(list);
} else {
notification.error({
......@@ -580,7 +655,13 @@ const EditModal = props => {
});
};
const treeSelectOnchangeMoblie = e => {
const treeSelectOnchangeMoblie = (e) => {
if (e.includes('999')) {
let value = messageObj.children.filter(item => item.menuID === e)[0]?.pageUrl
form.setFieldsValue({ app_path: value });
setTreeSelectValueMoblie(value);
return
}
form.setFieldsValue({ app_path: '' });
getMenuInfo({
menuID: e,
......
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