Skip to content

Commit cd87244

Browse files
committed
fix: Style optimization
1 parent 88840be commit cd87244

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

frontend/src/views/system/member/index.vue

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const { t } = useI18n()
1919
const multipleSelectionAll = ref<any[]>([])
2020
const keywordsMember = ref('')
2121
const userStore = useUserStore()
22+
const searchLoading = ref(false)
2223
2324
const workspaceForm = reactive({
2425
name: '',
@@ -134,18 +135,19 @@ const handleToggleRowSelection = (check: boolean = true) => {
134135
}
135136
136137
const search = () => {
137-
workspaceUserList(
138-
{ keyword: keywordsMember.value },
139-
pageInfo.currentPage,
140-
pageInfo.pageSize
141-
).then((res) => {
142-
toggleRowLoading.value = true
143-
fieldList.value = res.items
144-
pageInfo.total = res.total
145-
nextTick(() => {
146-
handleToggleRowSelection()
138+
searchLoading.value = true
139+
workspaceUserList({ keyword: keywordsMember.value }, pageInfo.currentPage, pageInfo.pageSize)
140+
.then((res) => {
141+
toggleRowLoading.value = true
142+
fieldList.value = res.items
143+
pageInfo.total = res.total
144+
nextTick(() => {
145+
handleToggleRowSelection()
146+
})
147+
})
148+
.finally(() => {
149+
searchLoading.value = false
147150
})
148-
})
149151
}
150152
151153
const closeField = () => {
@@ -204,7 +206,7 @@ const handleCurrentChange = (val: number) => {
204206
</script>
205207

206208
<template>
207-
<div class="member">
209+
<div v-loading="searchLoading" class="member">
208210
<div class="tool-left">
209211
<span class="page-title">{{ $t('workspace.member_management') }}</span>
210212
<div class="search-bar">

frontend/src/views/system/professional/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ const deleteHandlerItem = (idx: number) => {
520520
</div>
521521
</template>
522522
<div class="synonyms-list">
523-
<el-scrollbar max-height="218px">
523+
<el-scrollbar>
524524
<div v-for="(_, index) in pageForm.other_words" :key="index" class="scrollbar-item">
525525
<el-input
526526
v-model="pageForm.other_words[index]"
@@ -798,6 +798,7 @@ const deleteHandlerItem = (idx: number) => {
798798
left: 0;
799799
top: 0;
800800
width: calc(100% + 4px);
801+
height: calc(100vh - 390px);
801802
}
802803
803804
.btn {

0 commit comments

Comments
 (0)