From df6e14c585b48edb7b922c45bf60f1540018c25e Mon Sep 17 00:00:00 2001 From: chaorenluo <1243357953@qq.com> Date: Fri, 19 Jul 2024 22:45:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=99=BD=E5=90=8D=E5=8D=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/.gitignore | 2 +- web/components.d.ts | 1 + web/src/common/regexpMap.ts | 11 ++ web/src/management/api/space.ts | 4 + .../pages/edit/components/CommonTemplate.vue | 10 +- .../pages/edit/components/SetterField.vue | 2 +- .../modules/contentModule/PublishPanel.vue | 17 ++ .../edit/modules/contentModule/SavePanel.vue | 17 ++ .../modules/settingModule/SettingPanel.vue | 17 +- .../settingModule/config/baseConfig.js | 5 + .../settingModule/config/baseFormConfig.js | 39 +++++ .../materials/setters/widgets/AnswerRadio.vue | 41 +++++ .../setters/widgets/InputWordLimit.vue | 33 ++++ .../materials/setters/widgets/SwitchInput.vue | 52 +++++++ .../setters/widgets/teamMemberList.vue | 96 ++++++++++++ .../materials/setters/widgets/whiteList.vue | 145 ++++++++++++++++++ web/src/render/adapter/rules.js | 13 +- web/src/render/api/survey.js | 7 + .../render/components/VerifyWhiteDialog.vue | 138 +++++++++++++++++ web/src/render/pages/RenderPage.vue | 3 +- web/src/render/store/mutations.js | 3 + web/src/render/store/state.js | 5 +- 22 files changed, 639 insertions(+), 22 deletions(-) create mode 100644 web/src/common/regexpMap.ts create mode 100644 web/src/materials/setters/widgets/AnswerRadio.vue create mode 100644 web/src/materials/setters/widgets/InputWordLimit.vue create mode 100644 web/src/materials/setters/widgets/SwitchInput.vue create mode 100644 web/src/materials/setters/widgets/teamMemberList.vue create mode 100644 web/src/materials/setters/widgets/whiteList.vue create mode 100644 web/src/render/components/VerifyWhiteDialog.vue diff --git a/web/.gitignore b/web/.gitignore index 94556503..e0a576ec 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -26,4 +26,4 @@ yarn.lock *.sln *.sw? -.history \ No newline at end of file +.history diff --git a/web/components.d.ts b/web/components.d.ts index 5e2914cc..fa277a42 100644 --- a/web/components.d.ts +++ b/web/components.d.ts @@ -41,6 +41,7 @@ declare module 'vue' { ElTag: (typeof import('element-plus/es'))['ElTag'] ElTimePicker: (typeof import('element-plus/es'))['ElTimePicker'] ElTooltip: (typeof import('element-plus/es'))['ElTooltip'] + ElTree: (typeof import('element-plus/es'))['ElTree'] IEpBottom: (typeof import('~icons/ep/bottom'))['default'] IEpCheck: (typeof import('~icons/ep/check'))['default'] IEpCirclePlus: (typeof import('~icons/ep/circle-plus'))['default'] diff --git a/web/src/common/regexpMap.ts b/web/src/common/regexpMap.ts new file mode 100644 index 00000000..1de548a6 --- /dev/null +++ b/web/src/common/regexpMap.ts @@ -0,0 +1,11 @@ +export const regexpMap = { + nd: /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/, + m: /^[1]([3-9])[0-9]{9}$/, + idcard: /^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$/, + strictIdcard: + /(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/, + n: /^[0-9]+([.]{1}[0-9]+){0,1}$/, + e: /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/, + licensePlate: + /^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[a-zA-Z](([DFAG]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}[A-Z0-9挂学警港澳]{1})$/ +} \ No newline at end of file diff --git a/web/src/management/api/space.ts b/web/src/management/api/space.ts index 83f76ff8..41eb4382 100644 --- a/web/src/management/api/space.ts +++ b/web/src/management/api/space.ts @@ -18,6 +18,10 @@ export const getSpaceDetail = (workspaceId: string) => { return axios.get(`/workspace/${workspaceId}`) } +export const getMemberList = () => { + return axios.get('/workspace/member/list') +} + export const deleteSpace = (workspaceId: string) => { return axios.delete(`/workspace/${workspaceId}`) } diff --git a/web/src/management/pages/edit/components/CommonTemplate.vue b/web/src/management/pages/edit/components/CommonTemplate.vue index 23c742c0..494e249f 100644 --- a/web/src/management/pages/edit/components/CommonTemplate.vue +++ b/web/src/management/pages/edit/components/CommonTemplate.vue @@ -1,18 +1,18 @@