mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: Style optimization
This commit is contained in:
@@ -19,6 +19,7 @@ const { t } = useI18n()
|
||||
const multipleSelectionAll = ref<any[]>([])
|
||||
const keywordsMember = ref('')
|
||||
const userStore = useUserStore()
|
||||
const searchLoading = ref(false)
|
||||
|
||||
const workspaceForm = reactive({
|
||||
name: '',
|
||||
@@ -134,18 +135,19 @@ const handleToggleRowSelection = (check: boolean = true) => {
|
||||
}
|
||||
|
||||
const search = () => {
|
||||
workspaceUserList(
|
||||
{ keyword: keywordsMember.value },
|
||||
pageInfo.currentPage,
|
||||
pageInfo.pageSize
|
||||
).then((res) => {
|
||||
toggleRowLoading.value = true
|
||||
fieldList.value = res.items
|
||||
pageInfo.total = res.total
|
||||
nextTick(() => {
|
||||
handleToggleRowSelection()
|
||||
searchLoading.value = true
|
||||
workspaceUserList({ keyword: keywordsMember.value }, pageInfo.currentPage, pageInfo.pageSize)
|
||||
.then((res) => {
|
||||
toggleRowLoading.value = true
|
||||
fieldList.value = res.items
|
||||
pageInfo.total = res.total
|
||||
nextTick(() => {
|
||||
handleToggleRowSelection()
|
||||
})
|
||||
})
|
||||
.finally(() => {
|
||||
searchLoading.value = false
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
const closeField = () => {
|
||||
@@ -204,7 +206,7 @@ const handleCurrentChange = (val: number) => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="member">
|
||||
<div v-loading="searchLoading" class="member">
|
||||
<div class="tool-left">
|
||||
<span class="page-title">{{ $t('workspace.member_management') }}</span>
|
||||
<div class="search-bar">
|
||||
|
||||
@@ -520,7 +520,7 @@ const deleteHandlerItem = (idx: number) => {
|
||||
</div>
|
||||
</template>
|
||||
<div class="synonyms-list">
|
||||
<el-scrollbar max-height="218px">
|
||||
<el-scrollbar>
|
||||
<div v-for="(_, index) in pageForm.other_words" :key="index" class="scrollbar-item">
|
||||
<el-input
|
||||
v-model="pageForm.other_words[index]"
|
||||
@@ -798,6 +798,7 @@ const deleteHandlerItem = (idx: number) => {
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: calc(100% + 4px);
|
||||
height: calc(100vh - 390px);
|
||||
}
|
||||
|
||||
.btn {
|
||||
|
||||
Reference in New Issue
Block a user