refactor: 优化组件名称

This commit is contained in:
2024-04-20 22:25:27 +08:00
parent 124674c530
commit 9ea7c5d8f3
13 changed files with 12 additions and 12 deletions

View File

@@ -13,8 +13,8 @@
</template>
<script setup lang="ts">
import LoginLog from './LoginLog.vue'
import OperationLog from './OperationLog.vue'
import LoginLog from './login/index.vue'
import OperationLog from './operation/index.vue'
const route = useRoute()
const router = useRouter()

View File

@@ -51,7 +51,7 @@ import { useUserStore } from '@/stores'
import { useTable } from '@/hooks'
import { isMobile } from '@/utils'
defineOptions({ name: 'OnlineUser' })
defineOptions({ name: 'MonitorOnline' })
const columns: TableInstanceColumns[] = [
{

View File

@@ -14,7 +14,7 @@
<script setup lang="ts">
import BasicSetting from './components/BasicSetting.vue'
defineOptions({ name: 'Config' })
defineOptions({ name: 'SystemConfig' })
</script>
<style scoped lang="less">

View File

@@ -89,7 +89,7 @@ import { useDownload } from '@/hooks'
import { isMobile } from '@/utils'
import has from '@/utils/has'
defineOptions({ name: 'Dept' })
defineOptions({ name: 'SystemDept' })
const columns: TableInstanceColumns[] = [
{ title: '名称', dataIndex: 'name', width: 170, ellipsis: true, tooltip: true },

View File

@@ -60,7 +60,7 @@ import { useTable } from '@/hooks'
import { isMobile } from '@/utils'
import has from '@/utils/has'
defineOptions({ name: 'Dict' })
defineOptions({ name: 'SystemDict' })
const columns: TableInstanceColumns[] = [
{

View File

@@ -13,7 +13,7 @@
import FileAside from './main/FileAside.vue'
import FileMain from './main/FileMain/index.vue'
defineOptions({ name: 'File' })
defineOptions({ name: 'SystemFile' })
</script>
<style lang="scss" scoped>

View File

@@ -101,7 +101,7 @@ import { DisEnableStatusList } from '@/constant/common'
import { isMobile } from '@/utils'
import has from '@/utils/has'
defineOptions({ name: 'Menu' })
defineOptions({ name: 'SystemMenu' })
const columns: TableInstanceColumns[] = [
{ title: '菜单标题', dataIndex: 'title', slotName: 'title', width: 170, fixed: !isMobile() ? 'left' : undefined },

View File

@@ -77,7 +77,7 @@ import { isMobile } from '@/utils'
import { DisEnableStatusList } from '@/constant/common'
import has from '@/utils/has'
defineOptions({ name: 'Role' })
defineOptions({ name: 'SystemRole' })
const { data_scope_enum } = useDict('data_scope_enum')

View File

@@ -76,7 +76,7 @@ import { isMobile } from '@/utils'
import has from '@/utils/has'
import { DisEnableStatusList } from '@/constant/common'
defineOptions({ name: 'Storage' })
defineOptions({ name: 'SystemStorage' })
const { storage_type_enum } = useDict('storage_type_enum')
@@ -104,7 +104,7 @@ const columns: TableInstanceColumns[] = [
title: '操作',
slotName: 'action',
width: 130,
3
show: has.hasPermOr(['system:storage:update', 'system:storage:delete']),
align: 'center',
fixed: !isMobile() ? 'right' : undefined
}

View File

@@ -112,7 +112,7 @@ import getAvatar from '@/utils/avatar'
import has from '@/utils/has'
import { DisEnableStatusList } from '@/constant/common'
defineOptions({ name: 'User' })
defineOptions({ name: 'SystemUser' })
const columns: TableInstanceColumns[] = [
{