From 99e21def1c4a25152440483eae1a64577a554668 Mon Sep 17 00:00:00 2001 From: chaorenluo <1243357953@qq.com> Date: Fri, 28 Jun 2024 18:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=97=AE=E5=8D=B7=E6=97=B6?= =?UTF-8?q?=E5=8F=88=E7=99=BD=E5=90=8D=E5=8D=95=E6=96=B0=E5=A2=9EverifyId?= =?UTF-8?q?=E5=8F=82=E6=95=B0=20(#316)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * --story=1059873 --user=T8罗佳明 【ALL】2024年06月日常优化 https://www.tapd.cn/23402991/s/2202857 * feat:答卷白名单功能 * fix:修复lint问题 * fix:提交问卷时添加verifyId参数 --- .../settingModule/config/baseFormConfig.js | 5 ++-- .../setters/widgets/InputWordLimit.vue | 5 ++-- .../materials/setters/widgets/SwitchInput.vue | 28 ++++++++++++------- .../render/components/VerifyWhiteDialog.vue | 16 ++++++----- web/src/render/pages/RenderPage.vue | 7 ++++- web/src/render/store/mutations.js | 3 ++ web/src/render/store/state.js | 3 +- 7 files changed, 43 insertions(+), 24 deletions(-) diff --git a/web/src/management/pages/edit/modules/settingModule/config/baseFormConfig.js b/web/src/management/pages/edit/modules/settingModule/config/baseFormConfig.js index f52405d1..42d41e48 100644 --- a/web/src/management/pages/edit/modules/settingModule/config/baseFormConfig.js +++ b/web/src/management/pages/edit/modules/settingModule/config/baseFormConfig.js @@ -26,7 +26,8 @@ export default { keys: ['baseConf.passwordSwitch', 'baseConf.password'], label: '访问密码', type: 'SwitchInput', - placeholder: '请输入访问密码' + placeholder: '请输入6位字符串类型访问密码 ', + maxLength: 6, }, answer_type: { key: 'baseConf.whitelistType', @@ -38,7 +39,7 @@ export default { label: '名单登录提示语', placeholder:'请输入名单提示语', type: 'InputWordLimit', - maxlength: 40, + maxLength: 40, relyFunc: (data) => { return ['CUSTOM','MEMBER'].includes(data.whitelistType) } diff --git a/web/src/materials/setters/widgets/InputWordLimit.vue b/web/src/materials/setters/widgets/InputWordLimit.vue index 2c1ab57a..fd08461e 100644 --- a/web/src/materials/setters/widgets/InputWordLimit.vue +++ b/web/src/materials/setters/widgets/InputWordLimit.vue @@ -1,6 +1,6 @@