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; + // } + // } }