From 7d90bc570f3010ae924563c72a8e81212bee6f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A6=86=E9=92=B1=E8=90=BD=E5=B0=BD=E6=A7=BF=E8=8A=B1?= =?UTF-8?q?=E7=A8=80?= <2675540038@qq.com> Date: Sat, 15 Jun 2024 11:05:34 +0800 Subject: [PATCH] 1 --- package.json | 2 +- src/pages/association/person.vue | 12 ++--- src/pages/association/system.vue | 75 ++++++++++++++------------------ src/pages/user/user_info.vue | 4 +- 4 files changed, 42 insertions(+), 51 deletions(-) diff --git a/package.json b/package.json index 6bf7af2..8c568e1 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "tdesign-icons-vue": "^0.1.11", "tdesign-vue": "^1.9.0", "tvision-color": "~1.6.0", - "typescript": "^5.1.6", "vue": "~2.6.14", "vue-clipboard2": "^0.3.1", "vue-cropper": "^0.6.5", @@ -59,6 +58,7 @@ "stylelint-config-prettier": "~9.0.3", "stylelint-less": "1.0.5", "stylelint-order": "~4.1.0", + "typescript": "^5.4.5", "vite": "^4.1.4", "vite-plugin-mock": "^3.0.0", "vite-plugin-theme": "^0.8.1", diff --git a/src/pages/association/person.vue b/src/pages/association/person.vue index 2eb8284..9442d77 100644 --- a/src/pages/association/person.vue +++ b/src/pages/association/person.vue @@ -27,7 +27,7 @@ - + @@ -51,6 +51,10 @@ +
+ 取消 + 确定 +
@@ -171,7 +175,7 @@ export default { } const regex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&#_-])[A-Za-z\d@$!%*?&#_-]{8,}$/; var pwd_check=regex.test(this.modData.password); - if(!pwd_check){ + if(!pwd_check && !this.isEdit){ this.$message.error('密码不符合要求!'); return; } @@ -186,10 +190,8 @@ export default { .then((res) => { if(res.code==1){ this.$message.success(res.msg); - this.addMode=false; - }else { - this.$message.error(res.msg); } + this.addMode=false; this.getList(); }) .catch((e) => { diff --git a/src/pages/association/system.vue b/src/pages/association/system.vue index bae30f3..6a6eb33 100644 --- a/src/pages/association/system.vue +++ b/src/pages/association/system.vue @@ -2,12 +2,14 @@
- +
+
空间总量:{{info.totalSpaceInMB}} MB
+
已使用:{{info.usedSpaceInMB}} MB
@@ -15,8 +17,10 @@
+
流量总量:{{info.totalSpaceInMB}} MB
+
已使用:{{info.usedSpaceInMB}} MB
@@ -48,18 +52,16 @@