From f497f734966504bd8a7e98bf602da582a53d91e5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 12 九月 2021 02:55:59 +0800
Subject: [PATCH] 2021-09-12

---
 src/views/menudesign/menuform/index.jsx |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/views/menudesign/menuform/index.jsx b/src/views/menudesign/menuform/index.jsx
index b1bab0a..09643fe 100644
--- a/src/views/menudesign/menuform/index.jsx
+++ b/src/views/menudesign/menuform/index.jsx
@@ -31,6 +31,7 @@
     Api.getSystemConfig(_param).then(result => {
       if (result.status) {
         let thdMenu = null
+        let thdMenuList = []
         let menulist = result.fst_menu.map(fst => {
           let fstItem = {
             MenuID: fst.MenuID,
@@ -63,12 +64,25 @@
                     EasyCode: trd.EasyCode,
                     value: trd.MenuID,
                     label: trd.MenuName,
+                    type: 'CommonTable',
                     disabled: trd.MenuID === MenuId
                   }
 
                   if (MenuId === trd.MenuID) {
                     thdMenu = trdItem
                   }
+
+                  if (trd.PageParam) {
+                    try {
+                      trd.PageParam = JSON.parse(trd.PageParam)
+                      trdItem.type = trd.PageParam.Template || 'CommonTable'
+                    } catch (e) {
+
+                    }
+                  }
+
+                  thdMenuList.push(trdItem)
+
                   return trdItem
                 })
               }
@@ -85,6 +99,7 @@
           }
         })
         sessionStorage.setItem('fstMenuList', JSON.stringify(menulist))
+        sessionStorage.setItem('thdMenuList', JSON.stringify(thdMenuList))
         this.props.updateConfig({...config, fstMenuId: thdMenu ? thdMenu.FstId : ''})
 
         this.setState({

--
Gitblit v1.8.0