From 4eae7af1ce6cd0ea8ac6485e26528625e83c3c70 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 12 十月 2021 15:18:57 +0800
Subject: [PATCH] 2021-10-12

---
 src/views/pcdesign/index.jsx |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx
index f27c627..84fd928 100644
--- a/src/views/pcdesign/index.jsx
+++ b/src/views/pcdesign/index.jsx
@@ -652,6 +652,7 @@
         }
       } else {
         config.components = MenuUtils.resetConfig(config.components)
+        config.enabled = false
         message.success('澶嶅埗鎴愬姛锛屼繚瀛樺悗鐢熸晥銆�')
       }
       
@@ -1243,7 +1244,9 @@
 
                 Api.getSystemConfig({
                   func: 'sPC_Get_LongParam',
-                  MenuID: item.$originUuid
+                  MenuID: item.$originUuid,
+                  TypeCharOne: sessionStorage.getItem('kei_no'),
+                  typename: 'pc',
                 }).then(result => {
                   if (result.status) {
                     let _conf = ''
@@ -1260,6 +1263,7 @@
                       _conf.uuid = item.uuid
                       _conf.MenuID = item.uuid
                       _conf.Template = 'webPage'
+                      _conf.enabled = false
                     } else {
                       resolve({
                         status: true
@@ -1275,7 +1279,9 @@
                       Template: 'webPage',
                       MenuName: item.label,
                       PageParam: JSON.stringify({Template: 'webPage'}),
-                      LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(_conf)))
+                      LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(_conf))),
+                      TypeCharOne: sessionStorage.getItem('kei_no'),
+                      Typename: 'pc',
                     }
             
                     Api.getSystemConfig(_param).then(response => {
@@ -1401,6 +1407,8 @@
             error = `缁勪欢銆�${item.name}銆嬫湭璁剧疆鏁版嵁婧愶紒`
           } else if (!item.setting.primaryKey) {
             error = `缁勪欢銆�${item.name}銆嬫湭璁剧疆涓婚敭锛乣
+          } else if (!item.setting.supModule) {
+            error = `缁勪欢銆�${item.name}銆嬫湭璁剧疆涓婄骇缁勪欢锛乣
           }
         }
         if (item.type === 'bar' || item.type === 'line' || item.type === 'pie') {

--
Gitblit v1.8.0