78 lines
1.8 KiB
Vue
78 lines
1.8 KiB
Vue
<template>
|
|
<div class="ele-body ele-body-card">
|
|
<a-row :gutter="16">
|
|
<a-col
|
|
v-bind="
|
|
styleResponsive
|
|
? { xl: 18, lg: 18, md: 16, sm: 24, xs: 24 }
|
|
: { span: 6 }
|
|
"
|
|
>
|
|
<CountPending />
|
|
</a-col>
|
|
<a-col
|
|
v-bind="
|
|
styleResponsive
|
|
? { xl: 6, lg: 6, md: 8, sm: 24, xs: 24 }
|
|
: { span: 12 }
|
|
"
|
|
>
|
|
<Carousel />
|
|
<CountUser
|
|
v-if="
|
|
hasRole('commander') || hasRole('admin') || hasRole('superAdmin')
|
|
"
|
|
style="margin-top: 17px"
|
|
/>
|
|
</a-col>
|
|
</a-row>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { useThemeStore } from '@/store/modules/theme';
|
|
import { storeToRefs } from 'pinia';
|
|
import CountNum from './components/count-num.vue';
|
|
import Carousel from './components/carousel.vue';
|
|
import Tools from './components/tools.vue';
|
|
import CountUser from './components/count-user.vue';
|
|
import CountPending from './search/index.vue';
|
|
import { hasRole } from '@/utils/permission';
|
|
// import { notification } from 'ant-design-vue';
|
|
|
|
// 是否开启响应式布局
|
|
const themeStore = useThemeStore();
|
|
const { styleResponsive } = storeToRefs(themeStore);
|
|
|
|
/**
|
|
* 测试账号
|
|
*/
|
|
// const openNotification = () => {
|
|
// notification['warning']({
|
|
// message: '管理人员',
|
|
// description: '分派专员/123456'
|
|
// });
|
|
// notification['warning']({
|
|
// message: '技术人员1',
|
|
// description: '张工/123456'
|
|
// });
|
|
// notification['warning']({
|
|
// message: '客户1',
|
|
// description: '客户1/123456'
|
|
// });
|
|
// };
|
|
// openNotification();
|
|
</script>
|
|
|
|
<script lang="ts">
|
|
export default {
|
|
name: 'CountIndex'
|
|
};
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.a-cursor {
|
|
cursor: pointer;
|
|
}
|
|
</style>
|