From b30f937a881fcdab016b9b026ab7a2c02a8d1c4c Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Tue, 8 Oct 2024 09:54:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=A6=85=E9=81=93bug=E5=A4=84=E7=90=86938?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/violation/portrait/detail.vue | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/SafeCampus.WEB/src/views/violation/portrait/detail.vue b/SafeCampus.WEB/src/views/violation/portrait/detail.vue index 957fb53..2f8906e 100644 --- a/SafeCampus.WEB/src/views/violation/portrait/detail.vue +++ b/SafeCampus.WEB/src/views/violation/portrait/detail.vue @@ -6,7 +6,7 @@
- +
- 编号:{{ formData.personId }} +
- +
- + 姓名拼音:{{ pinyin(formData.name, { toneType: "none", type: "array" }).flat().join(" ") }} - 编号:{{ formData.personId }}编号:{{ formData.personId }} 联系方式:{{ formData.phone }} + >联系方式:{{ formData.phone }} 所属院系:{{ formData.depName }} + >所属院系:{{ formData.depName }} 所属专业:{{ formData.majorName }} + >所属专业:{{ formData.majorName }} 所属班级:{{ formData.personSetName }} + >所属班级:{{ formData.personSetName }} 寝室名称:{{ formData.dormitoryName }} + >寝室名称:{{ formData.dormitoryName }}
{ } } .personId { + display: block; + max-width: 90%; margin-bottom: 10px; + overflow: hidden; font-size: 14px; - display: block; text-overflow: ellipsis; - overflow: hidden; white-space: nowrap; - max-width: 90%; } } .right { @@ -647,6 +643,13 @@ onMounted(() => { .el-col { height: 50px; line-height: 50px; + .ellipsis { + display: block; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } } } } From b6386e988df3743fdf0468cab082ba7621877692 Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Tue, 8 Oct 2024 11:40:13 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=A6=85=E9=81=93bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/userManage/keyPersonnel/components/form/index.vue | 3 +-- .../src/views/userManage/personnel/components/form/index.vue | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/index.vue b/SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/index.vue index 1c9cb8f..f328e6f 100644 --- a/SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/index.vue +++ b/SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/index.vue @@ -43,8 +43,7 @@ const sysUserProps = reactive>({ disabled: false }); const checkAgeNumber = (rule: any, value: any, callback: any) => { - if (value === "") callback("请输入年龄"); - if (value > 100 || value < 0) { + if (value && (value > 100 || value <= 0)) { callback(new Error("请输入正确的年龄(年龄范围1-100岁)")); } else { return callback(); diff --git a/SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue b/SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue index 8271add..7fbd31e 100644 --- a/SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue +++ b/SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue @@ -44,8 +44,7 @@ const sysUserProps = reactive>({ disabled: false }); const checkAgeNumber = (rule: any, value: any, callback: any) => { - if (value === "") callback("请输入年龄"); - if (value > 100 || value < 0) { + if (value && (value > 100 || value <= 0)) { callback(new Error("请输入正确的年龄(年龄范围1-100岁)")); } else { return callback(); From 193d48c395bfc68f722cb2e84494b3a537b1fb46 Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Tue, 8 Oct 2024 15:57:13 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=A6=85=E9=81=93bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SafeCampus.WEB/src/api/modules/usermanage/classManage.ts | 3 +++ .../src/views/userManage/classManage/index.vue | 9 +-------- SafeCampus.WEB/src/views/userManage/personnel/index.vue | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts b/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts index 7c233af..1194b81 100644 --- a/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts +++ b/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts @@ -26,6 +26,9 @@ const userManageClassManageApi = { page(params: SysUserPersonnel.ClassPage) { return http.get("queryAll", params); }, + getPageList(params: SysUserPersonnel.ClassPage) { + return http.get("getPageList", params); + }, /** 删除底库 */ delete(params: ReqId) { return http.delete("deleteDfieldD", params); diff --git a/SafeCampus.WEB/src/views/userManage/classManage/index.vue b/SafeCampus.WEB/src/views/userManage/classManage/index.vue index 88940d4..6db656d 100644 --- a/SafeCampus.WEB/src/views/userManage/classManage/index.vue +++ b/SafeCampus.WEB/src/views/userManage/classManage/index.vue @@ -6,14 +6,7 @@