fix: style
This commit is contained in:
parent
1c364c22cf
commit
4143d1f2c5
@ -15,8 +15,12 @@
|
|||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-button type="primary" @click="submitHandle" :disabled="loading">{{$t('common.create')}}</el-button>
|
<el-button type="primary" @click="submitHandle" :disabled="loading">{{
|
||||||
<el-button @click="showInput = false" :disabled="loading">{{$t('common.cancel')}}</el-button>
|
$t('common.create')
|
||||||
|
}}</el-button>
|
||||||
|
<el-button @click="showInput = false" :disabled="loading">{{
|
||||||
|
$t('common.cancel')
|
||||||
|
}}</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div v-else @click="quickCreateHandle" class="w-full">
|
<div v-else @click="quickCreateHandle" class="w-full">
|
||||||
<el-button type="primary" link class="quich-button">
|
<el-button type="primary" link class="quich-button">
|
||||||
@ -54,25 +58,29 @@ const { common } = useStore()
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
paginationConfig: {
|
paginationConfig: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {}
|
default: () => {},
|
||||||
},
|
},
|
||||||
quickCreate: {
|
quickCreate: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false,
|
||||||
},
|
},
|
||||||
quickCreateName: {
|
quickCreateName: {
|
||||||
type: String,
|
type: String,
|
||||||
default: t('components.quickCreateName')
|
default: t('components.quickCreateName'),
|
||||||
},
|
},
|
||||||
quickCreatePlaceholder: {
|
quickCreatePlaceholder: {
|
||||||
type: String,
|
type: String,
|
||||||
default: t('components.quickCreatePlaceholder')
|
default: t('components.quickCreatePlaceholder'),
|
||||||
},
|
},
|
||||||
quickCreateMaxlength: {
|
quickCreateMaxlength: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: () => 0
|
default: () => 0,
|
||||||
|
},
|
||||||
|
storeKey: String,
|
||||||
|
maxTableHeight: {
|
||||||
|
type: Number,
|
||||||
|
default: 300,
|
||||||
},
|
},
|
||||||
storeKey: String
|
|
||||||
})
|
})
|
||||||
const emit = defineEmits(['changePage', 'sizeChange', 'creatQuick'])
|
const emit = defineEmits(['changePage', 'sizeChange', 'creatQuick'])
|
||||||
|
|
||||||
@ -131,15 +139,14 @@ function clearSelection() {
|
|||||||
appTableRef.value?.clearSelection()
|
appTableRef.value?.clearSelection()
|
||||||
}
|
}
|
||||||
defineExpose({
|
defineExpose({
|
||||||
clearSelection
|
clearSelection,
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
tableHeight.value = window.innerHeight - props.maxTableHeight
|
||||||
tableHeight.value = window.innerHeight - 300
|
|
||||||
window.onresize = () => {
|
window.onresize = () => {
|
||||||
return (() => {
|
return (() => {
|
||||||
tableHeight.value = window.innerHeight - 300
|
tableHeight.value = window.innerHeight - props.maxTableHeight
|
||||||
})()
|
})()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -49,6 +49,7 @@ const activeMenu = computed(() => {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
background: none;
|
background: none;
|
||||||
|
max-height: calc(100vh - 100px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -49,7 +49,7 @@
|
|||||||
>
|
>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<AppIcon iconName="app-workspace"></AppIcon>
|
<AppIcon iconName="app-workspace"></AppIcon>
|
||||||
<span class="ml-4"> {{ space.name }}</span>
|
<span class="ml-4 ellipsis" :title="space.name"> {{ space.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
@ -69,11 +69,11 @@
|
|||||||
<div class="flex-between">
|
<div class="flex-between">
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
<AppIcon iconName="app-workspace"></AppIcon>
|
<AppIcon iconName="app-workspace"></AppIcon>
|
||||||
<span class="ml-4 lighter">{{ ele.name }}</span>
|
<span class="ml-4 lighter ellipsis" :title="ele.name">{{ ele.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
<el-button link>
|
<el-button link>
|
||||||
<el-icon @click="clearWorkspace(ele)" :size="18">
|
<el-icon @click="clearWorkspace(ele)" :size="18">
|
||||||
<Close/>
|
<Close />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@ -89,11 +89,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {ref, computed} from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import type {CheckboxValueType} from 'element-plus'
|
import type { CheckboxValueType } from 'element-plus'
|
||||||
import authorizationApi from '@/api/system-shared/authorization'
|
import authorizationApi from '@/api/system-shared/authorization'
|
||||||
import workspaceApi from '@/api/workspace/workspace'
|
import workspaceApi from '@/api/workspace/workspace'
|
||||||
import {loadPermissionApi} from "@/utils/dynamics-api/permission-api.ts";
|
import { loadPermissionApi } from '@/utils/dynamics-api/permission-api.ts'
|
||||||
|
|
||||||
const checkAll = ref(false)
|
const checkAll = ref(false)
|
||||||
const isIndeterminate = ref(true)
|
const isIndeterminate = ref(true)
|
||||||
@ -122,7 +122,7 @@ const handleCheckedWorkspaceChange = (value: CheckboxValueType[]) => {
|
|||||||
isIndeterminate.value = checkedCount > 0 && checkedCount < workspace.value.length
|
isIndeterminate.value = checkedCount > 0 && checkedCount < workspace.value.length
|
||||||
}
|
}
|
||||||
|
|
||||||
const open = async ({id}: any, type = 'Knowledge') => {
|
const open = async ({ id }: any, type = 'Knowledge') => {
|
||||||
knowledge_id = id
|
knowledge_id = id
|
||||||
loading.value = true
|
loading.value = true
|
||||||
currentType = type
|
currentType = type
|
||||||
@ -161,5 +161,4 @@ defineExpose({
|
|||||||
open,
|
open,
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss"></style>
|
||||||
</style>
|
|
||||||
|
|||||||
@ -273,6 +273,8 @@ function getMember(id?: string) {
|
|||||||
currentUser.value = member ? member.id : memberList.value?.[0]?.id
|
currentUser.value = member ? member.id : memberList.value?.[0]?.id
|
||||||
currentType.value = member ? member.type : memberList.value?.[0]?.type
|
currentType.value = member ? member.type : memberList.value?.[0]?.type
|
||||||
getWholeTree(currentUser.value)
|
getWholeTree(currentUser.value)
|
||||||
|
} else {
|
||||||
|
activeData.value.data = []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,6 +34,7 @@
|
|||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
class="member-table"
|
class="member-table"
|
||||||
:span-method="objectSpanMethod"
|
:span-method="objectSpanMethod"
|
||||||
|
:maxTableHeight="320"
|
||||||
>
|
>
|
||||||
<el-table-column prop="nick_name" :label="$t('views.userManage.userForm.nick_name.label')" />
|
<el-table-column prop="nick_name" :label="$t('views.userManage.userForm.nick_name.label')" />
|
||||||
<el-table-column prop="username" :label="$t('views.login.loginForm.username.label')" />
|
<el-table-column prop="username" :label="$t('views.login.loginForm.username.label')" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user