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 @@