From 20f01768cf2cecd5b8e2ee1d5a3e98863353a743 Mon Sep 17 00:00:00 2001 From: Jiangchunfu Date: Thu, 31 Oct 2024 18:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E9=97=B4=E7=AE=A1=E7=90=86=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4=20(#441)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 空间编辑保存名字同步 * feat: 团队空间空数据隐藏分页器 * feat: 问卷列表添加协作者输入为空时不发接口请求 * feat: 管理团队文字对齐向左 * feat: 团队空间编辑保存名字同步 * feat: 隐藏校验框border * feat: 问卷列表添加协作者为空时不触发请求 * feat: 隐藏协作管理搜索框校验边框样式 --------- Co-authored-by: jiangchunfu --- .../components/CooperModify/MemberSelect.vue | 4 +- .../components/CooperModify/ModifyDialog.vue | 15 ++- .../CooperModify/OperationSelect.vue | 15 ++- .../pages/list/components/SpaceList.vue | 120 +++++++++--------- .../pages/list/components/SpaceModify.vue | 3 +- web/src/management/pages/list/index.vue | 19 +++ 6 files changed, 110 insertions(+), 66 deletions(-) diff --git a/web/src/management/components/CooperModify/MemberSelect.vue b/web/src/management/components/CooperModify/MemberSelect.vue index c6a543cb..ab47c520 100644 --- a/web/src/management/components/CooperModify/MemberSelect.vue +++ b/web/src/management/components/CooperModify/MemberSelect.vue @@ -3,6 +3,7 @@ ([]) const loading = ref(false) -const remoteMethod = async (query: string) => { +const remoteMethod = async (q: string) => { + const query = q.trim() if (query !== '') { loading.value = true const res: any = await getUserList(query) diff --git a/web/src/management/components/CooperModify/ModifyDialog.vue b/web/src/management/components/CooperModify/ModifyDialog.vue index 2b05f108..b2bb07c6 100644 --- a/web/src/management/components/CooperModify/ModifyDialog.vue +++ b/web/src/management/components/CooperModify/ModifyDialog.vue @@ -115,6 +115,9 @@ const rules = { { trigger: 'change', validator: (rule: any, value: IMember[], callback: Function) => { + if (value.length === 0) { + callback('请添加协作者') + } if (value.filter((item: IMember) => !item.role.length).length) { callback('请设置协作者对应权限') } @@ -186,8 +189,18 @@ const handleMembersChange = (val: IMember[]) => { } - diff --git a/web/src/management/components/CooperModify/OperationSelect.vue b/web/src/management/components/CooperModify/OperationSelect.vue index 03cde5a5..dbc6dc9c 100644 --- a/web/src/management/components/CooperModify/OperationSelect.vue +++ b/web/src/management/components/CooperModify/OperationSelect.vue @@ -125,6 +125,11 @@ const handleCheckAll = (val: CheckboxValueType) => { :deep(.el-select__wrapper) { border: none; box-shadow: none; + &:hover, + &:focus { + border: none; + box-shadow: none; + } } :deep(.ishovering) { border: none; @@ -134,11 +139,11 @@ const handleCheckAll = (val: CheckboxValueType) => { display: flex; justify-content: flex-end; } - .operation-select { - :deep(.el-select__placeholder) { - text-align: right; - } - } + // .operation-select { + // :deep(.el-select__placeholder) { + // text-align: right; + // } + // } }