From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 09 十二月 2022 15:53:32 +0800 Subject: [PATCH] 2022-12-09 --- src/pc/components/login/normal-login/options.jsx | 249 +++++++++++++++++++++++++++++-------------------- 1 files changed, 146 insertions(+), 103 deletions(-) diff --git a/src/pc/components/login/normal-login/options.jsx b/src/pc/components/login/normal-login/options.jsx index bcdbea9..9731b8e 100644 --- a/src/pc/components/login/normal-login/options.jsx +++ b/src/pc/components/login/normal-login/options.jsx @@ -41,6 +41,70 @@ 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: '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,67 +121,15 @@ ] }, { - 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 }, - { - 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: 'radio', field: 'shortcut', @@ -131,56 +143,87 @@ {value: 'autologon', label: '鑷姩鐧诲綍'}, ] }, - // { - // 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, - // span: 24, - // columns: [ - // { - // title: '鏂囨湰', - // dataIndex: 'label', - // inputType: 'input', - // editable: true, - // unique: true, - // required: true, - // width: '35%' - // }, - // { - // title: '閾炬帴', - // dataIndex: 'link', - // inputType: 'input', - // editable: true, - // unique: true, - // required: true, - // width: '40%' - // }, - // ] - // } + { + 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, + span: 24, + columns: [ + { + title: '鏂囨湰', + dataIndex: 'label', + inputType: 'input', + editable: true, + unique: true, + required: true, + width: '35%' + }, + { + title: '閾炬帴', + dataIndex: 'link', + inputType: 'input', + editable: true, + unique: true, + required: true, + width: '40%' + }, + ] + } ] return wrapForm -- Gitblit v1.8.0