mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 22:57:15 +08:00 
			
		
		
		
	refactor: 优化组件名称
This commit is contained in:
		| @@ -13,8 +13,8 @@ | |||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <script setup lang="ts"> | <script setup lang="ts"> | ||||||
| import LoginLog from './LoginLog.vue' | import LoginLog from './login/index.vue' | ||||||
| import OperationLog from './OperationLog.vue' | import OperationLog from './operation/index.vue' | ||||||
|  |  | ||||||
| const route = useRoute() | const route = useRoute() | ||||||
| const router = useRouter() | const router = useRouter() | ||||||
|   | |||||||
| @@ -51,7 +51,7 @@ import { useUserStore } from '@/stores' | |||||||
| import { useTable } from '@/hooks' | import { useTable } from '@/hooks' | ||||||
| import { isMobile } from '@/utils' | import { isMobile } from '@/utils' | ||||||
|  |  | ||||||
| defineOptions({ name: 'OnlineUser' }) | defineOptions({ name: 'MonitorOnline' }) | ||||||
|  |  | ||||||
| const columns: TableInstanceColumns[] = [ | const columns: TableInstanceColumns[] = [ | ||||||
|   { |   { | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
| <script setup lang="ts"> | <script setup lang="ts"> | ||||||
| import BasicSetting from './components/BasicSetting.vue' | import BasicSetting from './components/BasicSetting.vue' | ||||||
|  |  | ||||||
| defineOptions({ name: 'Config' }) | defineOptions({ name: 'SystemConfig' }) | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
| <style scoped lang="less"> | <style scoped lang="less"> | ||||||
|   | |||||||
| @@ -89,7 +89,7 @@ import { useDownload } from '@/hooks' | |||||||
| import { isMobile } from '@/utils' | import { isMobile } from '@/utils' | ||||||
| import has from '@/utils/has' | import has from '@/utils/has' | ||||||
|  |  | ||||||
| defineOptions({ name: 'Dept' }) | defineOptions({ name: 'SystemDept' }) | ||||||
|  |  | ||||||
| const columns: TableInstanceColumns[] = [ | const columns: TableInstanceColumns[] = [ | ||||||
|   { title: '名称', dataIndex: 'name', width: 170, ellipsis: true, tooltip: true }, |   { title: '名称', dataIndex: 'name', width: 170, ellipsis: true, tooltip: true }, | ||||||
|   | |||||||
| @@ -60,7 +60,7 @@ import { useTable } from '@/hooks' | |||||||
| import { isMobile } from '@/utils' | import { isMobile } from '@/utils' | ||||||
| import has from '@/utils/has' | import has from '@/utils/has' | ||||||
|  |  | ||||||
| defineOptions({ name: 'Dict' }) | defineOptions({ name: 'SystemDict' }) | ||||||
|  |  | ||||||
| const columns: TableInstanceColumns[] = [ | const columns: TableInstanceColumns[] = [ | ||||||
|   { |   { | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ | |||||||
| import FileAside from './main/FileAside.vue' | import FileAside from './main/FileAside.vue' | ||||||
| import FileMain from './main/FileMain/index.vue' | import FileMain from './main/FileMain/index.vue' | ||||||
|  |  | ||||||
| defineOptions({ name: 'File' }) | defineOptions({ name: 'SystemFile' }) | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
| <style lang="scss" scoped> | <style lang="scss" scoped> | ||||||
|   | |||||||
| @@ -101,7 +101,7 @@ import { DisEnableStatusList } from '@/constant/common' | |||||||
| import { isMobile } from '@/utils' | import { isMobile } from '@/utils' | ||||||
| import has from '@/utils/has' | import has from '@/utils/has' | ||||||
|  |  | ||||||
| defineOptions({ name: 'Menu' }) | defineOptions({ name: 'SystemMenu' }) | ||||||
|  |  | ||||||
| const columns: TableInstanceColumns[] = [ | const columns: TableInstanceColumns[] = [ | ||||||
|   { title: '菜单标题', dataIndex: 'title', slotName: 'title', width: 170, fixed: !isMobile() ? 'left' : undefined }, |   { title: '菜单标题', dataIndex: 'title', slotName: 'title', width: 170, fixed: !isMobile() ? 'left' : undefined }, | ||||||
|   | |||||||
| @@ -77,7 +77,7 @@ import { isMobile } from '@/utils' | |||||||
| import { DisEnableStatusList } from '@/constant/common' | import { DisEnableStatusList } from '@/constant/common' | ||||||
| import has from '@/utils/has' | import has from '@/utils/has' | ||||||
|  |  | ||||||
| defineOptions({ name: 'Role' }) | defineOptions({ name: 'SystemRole' }) | ||||||
|  |  | ||||||
| const { data_scope_enum } = useDict('data_scope_enum') | const { data_scope_enum } = useDict('data_scope_enum') | ||||||
|  |  | ||||||
|   | |||||||
| @@ -76,7 +76,7 @@ import { isMobile } from '@/utils' | |||||||
| import has from '@/utils/has' | import has from '@/utils/has' | ||||||
| import { DisEnableStatusList } from '@/constant/common' | import { DisEnableStatusList } from '@/constant/common' | ||||||
|  |  | ||||||
| defineOptions({ name: 'Storage' }) | defineOptions({ name: 'SystemStorage' }) | ||||||
|  |  | ||||||
| const { storage_type_enum } = useDict('storage_type_enum') | const { storage_type_enum } = useDict('storage_type_enum') | ||||||
|  |  | ||||||
| @@ -104,7 +104,7 @@ const columns: TableInstanceColumns[] = [ | |||||||
|     title: '操作', |     title: '操作', | ||||||
|     slotName: 'action', |     slotName: 'action', | ||||||
|     width: 130, |     width: 130, | ||||||
|     3 |     show: has.hasPermOr(['system:storage:update', 'system:storage:delete']), | ||||||
|     align: 'center', |     align: 'center', | ||||||
|     fixed: !isMobile() ? 'right' : undefined |     fixed: !isMobile() ? 'right' : undefined | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -112,7 +112,7 @@ import getAvatar from '@/utils/avatar' | |||||||
| import has from '@/utils/has' | import has from '@/utils/has' | ||||||
| import { DisEnableStatusList } from '@/constant/common' | import { DisEnableStatusList } from '@/constant/common' | ||||||
|  |  | ||||||
| defineOptions({ name: 'User' }) | defineOptions({ name: 'SystemUser' }) | ||||||
|  |  | ||||||
| const columns: TableInstanceColumns[] = [ | const columns: TableInstanceColumns[] = [ | ||||||
|   { |   { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user