From c06e58c80240afd703d289bb1c584e08b9783383 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 13 六月 2025 20:24:25 +0800 Subject: [PATCH] 2025-06-13 --- src/pc/components/login/normal-login/options.jsx | 244 ++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 191 insertions(+), 53 deletions(-) diff --git a/src/pc/components/login/normal-login/options.jsx b/src/pc/components/login/normal-login/options.jsx index bfb426f..80628c0 100644 --- a/src/pc/components/login/normal-login/options.jsx +++ b/src/pc/components/login/normal-login/options.jsx @@ -41,6 +41,100 @@ required: true }, { + type: 'select', + field: 'linkmenu', + label: '鍏宠仈鑿滃崟', + initval: wrap.linkmenu || '', + required: true, + options: menulist + }, + { + type: 'number', + field: 'width', + label: '瀹藉害', + initval: wrap.width || 24, + tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��', + min: 1, + max: 24, + precision: 0, + required: true + }, + // { + // type: 'number', + // field: 'maxWidth', + // label: '鏈�澶у搴�', + // initval: wrap.maxWidth || '', + // tooltip: '鐧诲綍妗嗙殑鏈�澶у搴﹀�笺��', + // min: 100, + // max: 2000, + // precision: 0, + // required: false + // }, + // { + // type: 'styleInput', + // field: 'height', + // label: '鏈�灏忛珮搴�', + // initval: wrap.height || '', + // tooltip: '缁勪欢鍗犵敤鐨勬渶灏忛珮搴︼紝鐢ㄤ簬椤甸潰甯冨眬銆�', + // required: false, + // options: ['px', 'vh', 'vw', '%'] + // }, + // { + // type: 'styleInput', + // field: 'maxWidth', + // label: '鏈�澶у搴�', + // initval: wrap.maxWidth || '', + // tooltip: '缁勪欢鍗犵敤鐨勬渶澶у搴︼紝鐢ㄤ簬椤甸潰甯冨眬銆�', + // required: false, + // options: ['px', 'vh', 'vw', '%'] + // }, + { + type: 'radio', + field: 'topTip', + label: '椤堕儴鎻愮ず', + initval: wrap.topTip || 'show', + tooltip: '鐧诲綍鎴栨敞鍐屾柟寮忔彁绀轰俊鎭��', + required: false, + options: [ + {value: 'show', label: '鏄剧ず'}, + {value: 'hidden', label: '闅愯棌'} + ] + }, + { + type: 'styleInput', + field: 'borderRadius', + label: '鍦嗚', + initval: wrap.borderRadius || '', + tooltip: '鐧诲綍鎴栨敞鍐屾椂锛岀‘瀹氭寜閽殑鍦嗚銆�', + required: false, + options: ['px', 'vh', 'vw', '%'] + }, + { + type: 'radio', + field: 'classify', + label: '缁勪欢绫诲瀷', + initval: wrap.classify || 'login', + tooltip: '娉ㄥ唽鐧诲綍閮藉瓨鍦ㄦ椂锛屽湪鍏紬鍙蜂笌灏忕▼搴忎腑浼樺厛鏄剧ず娉ㄥ唽锛孉PP涓嶩5涓紭鍏堟樉绀虹櫥褰曘��', + required: true, + options: [ + { label: '鐧诲綍', value: 'login' }, + { label: '娉ㄥ唽', value: 'signin' }, + { label: '娉ㄥ唽/鐧诲綍', value: 'all' }, + ], + controlFields: [ + {field: 'loginWays', values: ['login', 'all']}, + {field: 'logintip', values: ['login', 'all']}, + {field: 'signWays', values: ['signin', 'all']}, + {field: 'protocol', values: ['signin', 'all']}, + {field: 'signtip', values: ['signin', 'all']}, + ] + }, + { + type: 'hint', + field: 'logintip', + label: '鐧诲綍閰嶇疆' + }, + { type: 'checkbox', field: 'loginWays', label: '鐧诲綍鏂瑰紡', @@ -57,65 +151,13 @@ ] }, { - type: 'number', - field: 'width', - label: '瀹藉害', - initval: wrap.width || 24, - tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��', - min: 1, - max: 24, - precision: 0, - required: true - }, - { - type: 'number', - field: 'maxWidth', - label: '鏈�澶у搴�', - initval: wrap.maxWidth || '', - tooltip: '鐧诲綍妗嗙殑鏈�澶у搴﹀�笺��', - min: 100, - max: 2000, - precision: 0, - required: false - }, - { - type: 'styleInput', - field: 'height', - label: '楂樺害', - initval: wrap.height || '', - tooltip: '缁勪欢鍗犵敤鐨勬渶灏忛珮搴︼紝鐢ㄤ簬椤甸潰甯冨眬銆�', - required: false, - options: ['px', 'vh', 'vw', '%'] - }, - { - type: 'radio', - field: 'link', - label: '閾炬帴', - initval: wrap.link || 'menu', - required: false, - options: [ - {value: 'menu', label: '鑿滃崟'}, - {value: 'linkmenu', label: '鍏宠仈鑿滃崟'}, - ], - controlFields: [ - {field: 'linkmenu', values: ['linkmenu']} - ] - }, - { - type: 'select', - field: 'linkmenu', - label: '鍏宠仈鑿滃崟', - initval: wrap.linkmenu || '', - required: true, - options: menulist - }, - { type: 'select', // $楠岃瘉鐮�$ $mob$ $send_type$ field: 'tempId', label: '鐭俊妯℃澘', initval: wrap.tempId || '', tooltip: '鐭俊妯℃澘鍙湪 浜戠郴缁�->搴旂敤鏈嶅姟->寮�鍙戣�呬腑蹇�->鐭俊妯℃澘 澶勬坊鍔犮��', required: true, + dropdown: 'false', options: msgTemps }, { @@ -129,8 +171,104 @@ {value: 'none', label: '鏃�'}, {value: 'remember', label: '璁颁綇瀵嗙爜'}, {value: 'autologon', label: '鑷姩鐧诲綍'}, + ], + controlFields: [ + {field: 'vispwd', values: ['remember', 'autologon']}, ] }, + { + type: 'radio', + field: 'vispwd', + label: '鏌ョ湅瀵嗙爜', + initval: wrap.vispwd || 'true', + tooltip: '瀵嗙爜鏄惁鍙煡鐪嬶紙瀵嗙爜妗嗗彸渚у浘鏍囨槸鍚︽樉绀猴級銆�', + required: false, + options: [ + {value: 'true', label: '鍚敤'}, + {value: 'false', label: '绂佺敤'}, + ] + }, + { + type: 'hint', + field: 'signtip', + label: '娉ㄥ唽閰嶇疆' + }, + { + type: 'checkbox', + field: 'signWays', + label: '娉ㄥ唽鏂瑰紡', + initval: wrap.signWays || [], + tooltip: '寰俊鎺堟潈鍙湪灏忕▼搴忎腑鏈夋晥銆�', + required: true, + options: [ + { label: '璐﹀彿', value: 'uname_pwd' }, + { label: '鐭俊', value: 'sms_vcode' }, + { label: '寰俊', value: 'weixin', disabled: appType !== 'mob' }, + ], + controlFields: [ + {field: 'signTempId', values: ['sms_vcode']} + ] + }, + { + type: 'select', // $楠岃瘉鐮�$ $mob$ $send_type$ + field: 'signTempId', + label: '鐭俊妯℃澘', + initval: wrap.signTempId || '', + tooltip: '鐭俊妯℃澘鍙湪 浜戠郴缁�->搴旂敤鏈嶅姟->寮�鍙戣�呬腑蹇�->鐭俊妯℃澘 澶勬坊鍔犮��', + required: true, + dropdown: 'false', + options: msgTemps + }, + { + type: 'radio', + field: 'protocol', + label: '鍗忚', + initval: wrap.protocol || 'false', + required: false, + options: [ + {value: 'false', label: '鏃�'}, + {value: 'true', label: '鏈�'}, + ], + controlFields: [ + {field: 'tip', values: ['true']}, + {field: 'groups', values: ['true']}, + ] + }, + { + type: 'text', + field: 'tip', + label: '鎻愮ず鏂囧瓧', + initval: wrap.tip || '鎴戝凡闃呰骞跺悓鎰�', + required: true + }, + { + type: 'table', + field: 'groups', + label: '鍗忚缁�', + initval: wrap.groups || [], + required: true, + actions: ['edit', 'del', 'add', 'move'], + span: 24, + columns: [ + { + title: '鏂囨湰', + dataIndex: 'label', + inputType: 'input', + editable: true, + unique: true, + required: true, + width: '35%' + }, + { + title: '閾炬帴', + dataIndex: 'link', + inputType: 'input', + editable: true, + required: true, + width: '40%' + }, + ] + } ] return wrapForm -- Gitblit v1.8.0