From cbeffcc0902631909c0373f274752a97ddaf2d4e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 06 八月 2022 01:41:54 +0800 Subject: [PATCH] 2022-08-06 --- src/menu/components/card/data-card/options.jsx | 33 +++++++++++++++++++++++++-------- 1 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/menu/components/card/data-card/options.jsx b/src/menu/components/card/data-card/options.jsx index 9e8f1b5..ba3b1f6 100644 --- a/src/menu/components/card/data-card/options.jsx +++ b/src/menu/components/card/data-card/options.jsx @@ -4,10 +4,11 @@ /** * @description Wrap琛ㄥ崟閰嶇疆淇℃伅 */ -export default function (wrap, subtype, columns = [], id = '', supNodes = []) { +export default function (wrap, subtype, columns = [], id = '', supNodes = [], setting) { let appType = sessionStorage.getItem('appType') let MenuType = '' let menu = fromJS(window.GLOB.customMenu).toJS() + let laypage = setting && setting.laypage !== 'false' if (menu.parentId === 'BillPrintTemp') { MenuType = 'billPrint' @@ -104,7 +105,8 @@ ], controlFields: subtype !== 'propcard' ? [ {field: 'printHeight', values: ['flex']}, - ] : [], + {field: 'cardFloat', values: ['grid']}, + ] : [{field: 'cardFloat', values: ['grid']}], forbid: subtype === 'tablecard' }, { @@ -114,10 +116,14 @@ initval: wrap.pagestyle || 'page', tooltip: '鏁版嵁婧愰�夋嫨鍒嗛〉鏃舵湁鏁堛�傛敞锛氭粦鍔ㄥ姞杞藉彧鏈夌涓�涓湁鏁�', required: false, + disabled: !laypage, options: [ {value: 'page', label: '椤电爜'}, {value: 'switch', label: '宸﹀彸鍒囨崲', forbid: appType === 'mob'}, {value: 'slide', label: '婊戝姩鍔犺浇', forbid: appType !== 'mob'}, + ], + controlFields: [ + {field: 'slidetip', values: ['slide']}, ], forbid: !(subtype === 'datacard' || (subtype === 'tablecard' && appType === 'mob')) }, @@ -167,7 +173,8 @@ {value: 'false', label: '鏃�'}, {value: 'init', label: '鍒濆鍖�'}, {value: 'always', label: '鏁版嵁鍔犺浇'}, - ] + ], + forbid: subtype === 'tablecard' }, { type: 'select', @@ -181,9 +188,10 @@ {value: 'active', label: '澶栭槾褰�'}, {value: 'backFont', label: '鑳屾櫙+鏂囧瓧'}, {value: 'font', label: '鏂囧瓧'}, + {value: 'tabs', label: '鏍囩椤�'}, ...(subtype === 'datacard' && appType === 'mob' ? [{value: 'check', label: '鍕鹃��'}] : []) - ] - // forbid: subtype !== 'propcard' + ], + forbid: subtype === 'tablecard' }, // { // type: 'radio', @@ -202,7 +210,7 @@ field: 'cardFloat', label: '瀵归綈鏂瑰紡', initval: wrap.cardFloat || 'left', - tooltip: '璁剧疆涓哄眳涓榻愭垨鍙冲榻愶紝鍙湪鍗$墖涓�1琛屾椂鏈夋晥銆�', + tooltip: '璁剧疆鍗$墖鐨勫榻愭柟寮忋��', required: false, options: [ {value: 'left', label: '宸﹀榻�'}, @@ -386,9 +394,9 @@ { type: 'text', field: 'controlVal', - label: '鎺у埗鍊�', + label: '绂佺敤鍊�', initval: wrap.controlVal || '', - tooltip: '褰撳瓧娈靛�间笌鎺у埗鍊肩浉绛夋椂锛岃鏁版嵁浼氱鐢紝澶氫釜鍊肩敤閫楀彿鍒嗛殧銆�', + tooltip: '褰撳瓧娈靛�间笌绂佺敤鍊肩浉绛夋椂锛岃鏁版嵁浼氱鐢紝澶氫釜鍊肩敤閫楀彿鍒嗛殧銆�', required: false, forbid: subtype !== 'datacard' }, @@ -430,6 +438,15 @@ forbid: !!appType }, { + type: 'text', + field: 'slidetip', + label: '搴曢儴鎻愮ず', + initval: wrap.slidetip || wrap.slidetip === '' ? wrap.slidetip : '娌℃湁鏇村浜�', + tooltip: '婊戝姩鍔犺浇鑷冲簳閮ㄦ椂鐨勬彁绀轰俊鎭��', + required: false, + forbid: !laypage || appType !== 'mob' || subtype === 'propcard' + }, + { type: 'table', field: 'supNodes', label: '涓婄骇缁勪欢', -- Gitblit v1.8.0