From cb59703536b8fe29117ea1de415361395f4820e6 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 15 八月 2024 12:09:10 +0800 Subject: [PATCH] 2024-08-15 --- src/menu/components/carousel/data-card/options.jsx | 25 +++++++++++++++++++------ 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/menu/components/carousel/data-card/options.jsx b/src/menu/components/carousel/data-card/options.jsx index e6ac38e..cf5156a 100644 --- a/src/menu/components/carousel/data-card/options.jsx +++ b/src/menu/components/carousel/data-card/options.jsx @@ -4,6 +4,7 @@ export default function (wrap, subtype) { let appType = sessionStorage.getItem('appType') let roleList = sessionStorage.getItem('sysRoles') + let ispop = sessionStorage.getItem('editMenuType') === 'popview' if (roleList) { try { @@ -53,9 +54,9 @@ {value: 'dynamic', label: '鍔ㄦ��'}, {value: 'static', label: '闈欐��'}, ], - controlFields: [ + controlFields: subtype === 'propcard' ? [ {field: 'empty', values: ['dynamic']}, - ], + ] : null, forbid: subtype !== 'propcard' }, { @@ -79,6 +80,7 @@ field: 'modalContent', label: '寮圭獥鍐呭', initval: wrap.modalContent || 'message', + tooltip: '浣跨敤绯荤粺鏇存柊鏃讹紝濡傛灉杩斿洖鍊肩殑ErrCode涓�-1锛屽彧浼氬仛绯荤粺閰嶇疆鏇存柊涓嶄細鏄剧ず寮圭獥銆傛敞锛氭暟鎹簮浣跨敤鍚屾鏌ヨ鏃舵棤鏁堛��', required: false, options: [ {value: 'message', label: '娑堟伅鎻愰啋'}, @@ -195,7 +197,6 @@ initval: wrap.empty || 'show', tooltip: '褰撴煡璇㈡暟鎹负绌烘椂锛岄殣钘忚缁勪欢銆�', required: false, - skip: true, options: [ {value: 'show', label: '鍚�'}, {value: 'hidden', label: '鏄�'}, @@ -205,13 +206,25 @@ type: 'radio', field: 'permission', label: '鏉冮檺楠岃瘉', - initval: wrap.permission || 'false', + initval: wrap.permission || (!appType ? 'true' : 'false'), required: false, options: [ - {value: 'true', label: '鍚敤'}, + {value: 'true', label: !appType ? '缁ф壙鑿滃崟' : '鍚敤'}, {value: 'false', label: '绂佺敤'}, ], - forbid: !appType || sessionStorage.getItem('editMenuType') === 'popview' + forbid: ispop + }, + { + type: 'radio', + field: 'cacheLocal', + label: '鏈湴缂撳瓨', + initval: wrap.cacheLocal || 'true', + required: false, + options: [ + {value: 'true', label: '缁ф壙鑿滃崟'}, + {value: 'false', label: '绂佺敤'}, + ], + forbid: ispop }, { type: 'multiselect', -- Gitblit v1.8.0