From 9596cd07a1e7b5d505e0e1f0abb778b750337080 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?=E5=89=8D=E7=AB=AF=E6=96=B0=E5=A2=9E=E7=99=BD?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E5=8A=9F=E8=83=BD=20(#356)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 | 14 +- .../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 | 4 +- web/src/render/store/mutations.js | 3 + web/src/render/store/state.js | 5 +- 21 files changed, 635 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/components.d.ts b/web/components.d.ts index 95a5e97a..02b54173 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 @@