From 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 12 十二月 2023 21:05:37 +0800
Subject: [PATCH] 2023-12-12

---
 src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx |   30 ++++++++----------------------
 1 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx
index 81114ce..d6bb257 100644
--- a/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx
@@ -6,6 +6,8 @@
   let appType = sessionStorage.getItem('appType')
   let isApp = appType === 'pc' || appType === 'mob'
   let menulist = null
+  let isprint = sessionStorage.getItem('MenuType') === 'billPrint'
+  let ispop = sessionStorage.getItem('editMenuType') === 'popview'
 
   if (isApp) {
     menulist = sessionStorage.getItem('appMenus')
@@ -119,19 +121,19 @@
         {value: 'true', text: '鍚敤'},
         {value: 'false', text: '绂佺敤'},
       ],
-      forbid: !appType || sessionStorage.getItem('editMenuType') === 'popview'
+      forbid: !appType || ispop || isprint
     },
     {
       type: 'radio',
       key: 'cacheLocal',
       label: '鏈湴缂撳瓨',
-      initval: card.cacheLocal || 'true',
+      initVal: card.cacheLocal || 'true',
       required: false,
       options: [
-        {value: 'true', label: '缁ф壙鑿滃崟'},
-        {value: 'false', label: '绂佺敤'},
+        {value: 'true', text: '缁ф壙鑿滃崟'},
+        {value: 'false', text: '绂佺敤'},
       ],
-      forbid: sessionStorage.getItem('editMenuType') === 'popview'
+      forbid: ispop || isprint
     },
     {
       type: 'select',
@@ -141,7 +143,7 @@
       multi: true,
       required: false,
       options: roleList,
-      forbid: !!appType
+      forbid: !!appType || isprint
     }
   ]
 }
@@ -288,22 +290,6 @@
         value: 'normal',
         text: '甯歌'
       }],
-    }, {
-      type: 'radio',
-      key: 'repeat',
-      label: '閲嶅鏁版嵁',
-      initVal: card.repeat || 'unrepeat',
-      required: false,
-      options: [{
-        value: 'unrepeat',
-        text: '鍘婚噸'
-      }, {
-        value: 'average',
-        text: '骞冲潎'
-      }, {
-        value: 'cumsum',
-        text: '绱姞'
-      }]
     }, {
       type: 'radio',
       key: 'download',

--
Gitblit v1.8.0