diff --git a/src/assets/images/list_search.png b/src/assets/images/list_search.png new file mode 100644 index 0000000..01c2f97 --- /dev/null +++ b/src/assets/images/list_search.png Binary files differ diff --git a/src/assets/images/list_search.png b/src/assets/images/list_search.png new file mode 100644 index 0000000..01c2f97 --- /dev/null +++ b/src/assets/images/list_search.png Binary files differ diff --git a/src/components/QrDialog/qrcode.d.ts b/src/components/QrDialog/qrcode.d.ts new file mode 100644 index 0000000..3579e79 --- /dev/null +++ b/src/components/QrDialog/qrcode.d.ts @@ -0,0 +1 @@ +declare module 'qrcode' diff --git a/src/assets/images/list_search.png b/src/assets/images/list_search.png new file mode 100644 index 0000000..01c2f97 --- /dev/null +++ b/src/assets/images/list_search.png Binary files differ diff --git a/src/components/QrDialog/qrcode.d.ts b/src/components/QrDialog/qrcode.d.ts new file mode 100644 index 0000000..3579e79 --- /dev/null +++ b/src/components/QrDialog/qrcode.d.ts @@ -0,0 +1 @@ +declare module 'qrcode' diff --git a/src/layouts/components/Tools/index.vue b/src/layouts/components/Tools/index.vue index 7c1dfb7..93f7084 100644 --- a/src/layouts/components/Tools/index.vue +++ b/src/layouts/components/Tools/index.vue @@ -1,5 +1,6 @@ + + + + diff --git a/src/assets/images/list_search.png b/src/assets/images/list_search.png new file mode 100644 index 0000000..01c2f97 --- /dev/null +++ b/src/assets/images/list_search.png Binary files differ diff --git a/src/components/QrDialog/qrcode.d.ts b/src/components/QrDialog/qrcode.d.ts new file mode 100644 index 0000000..3579e79 --- /dev/null +++ b/src/components/QrDialog/qrcode.d.ts @@ -0,0 +1 @@ +declare module 'qrcode' diff --git a/src/layouts/components/Tools/index.vue b/src/layouts/components/Tools/index.vue index 7c1dfb7..93f7084 100644 --- a/src/layouts/components/Tools/index.vue +++ b/src/layouts/components/Tools/index.vue @@ -1,5 +1,6 @@ + + + + diff --git a/src/utils/validate.ts b/src/utils/validate.ts index 2959118..c59fdc6 100644 --- a/src/utils/validate.ts +++ b/src/utils/validate.ts @@ -114,3 +114,18 @@ const re = /(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$/ return re.test(value) } + +/** + * 强类型密码验证 + */ +export function validatePasswordStrong(value: string) { + const re = /^(?![0-9]+$)(?![a-zA-Z]+$)(?![0-9a-zA-Z]+$)(?![0-9\\W]+$)(?![a-zA-Z\\W]+$)[0-9A-Za-z\\W]{6,18}$/ + return re.test(value) +} +/** + * 弱类型密码验证 + */ +export function validatePasswordWeak(value: string) { + const re = /[0-9A-Za-z\\W]{6,18}$/ + return re.test(value) +} diff --git a/src/assets/images/list_search.png b/src/assets/images/list_search.png new file mode 100644 index 0000000..01c2f97 --- /dev/null +++ b/src/assets/images/list_search.png Binary files differ diff --git a/src/components/QrDialog/qrcode.d.ts b/src/components/QrDialog/qrcode.d.ts new file mode 100644 index 0000000..3579e79 --- /dev/null +++ b/src/components/QrDialog/qrcode.d.ts @@ -0,0 +1 @@ +declare module 'qrcode' diff --git a/src/layouts/components/Tools/index.vue b/src/layouts/components/Tools/index.vue index 7c1dfb7..93f7084 100644 --- a/src/layouts/components/Tools/index.vue +++ b/src/layouts/components/Tools/index.vue @@ -1,5 +1,6 @@ + + + + diff --git a/src/utils/validate.ts b/src/utils/validate.ts index 2959118..c59fdc6 100644 --- a/src/utils/validate.ts +++ b/src/utils/validate.ts @@ -114,3 +114,18 @@ const re = /(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$/ return re.test(value) } + +/** + * 强类型密码验证 + */ +export function validatePasswordStrong(value: string) { + const re = /^(?![0-9]+$)(?![a-zA-Z]+$)(?![0-9a-zA-Z]+$)(?![0-9\\W]+$)(?![a-zA-Z\\W]+$)[0-9A-Za-z\\W]{6,18}$/ + return re.test(value) +} +/** + * 弱类型密码验证 + */ +export function validatePasswordWeak(value: string) { + const re = /[0-9A-Za-z\\W]{6,18}$/ + return re.test(value) +} diff --git a/src/views/system/area/editArea.vue b/src/views/system/area/editArea.vue index e311c9f..8256924 100644 --- a/src/views/system/area/editArea.vue +++ b/src/views/system/area/editArea.vue @@ -13,7 +13,6 @@ const dialogStatus = ref('') // 对话框类型:create,update const isEditMode = ref(true) const areaForm: Ref = ref({ - id: '', // 编号 pid: '', // 父级编号 pName: '', // 父级名称 areaName: '', // 区域名