提交 aa765208 编写于 作者: 刘英杰's avatar 刘英杰

保存111

上级
流水线 #34385 已通过 ,包含阶段
# 所有环境默认
# 页面 title
VUE_APP_TITLE=任务管理系统
\ No newline at end of file
.DS_Store
node_modules
.specstory
# /dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
\ No newline at end of file
default:
before_script:
- chcp 65001
stages:
- publish
build:
stage: publish
script:
- remove-item -Force -Recurse D:/ASC_web/A00051/devicesManagement/pc*
- xcopy "dist" "D:\ASC_web\A00051\devicesManagement\pc\" /s/e/y/
only:
- pc
\ No newline at end of file
export default [
{
path: '/taskManage',
title: '任务管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/permissionManage',
title: '权限管理',
auth: [0],
icon: 'md-key'
}
]
\ No newline at end of file
export default [
{
path: '/taskManage',
title: '任务管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/permissionManage',
title: '权限管理',
auth: [0],
icon: 'md-key',
children: [
{
path: '/permissionManage/user',
title: '用户管理',
auth: [0],
}
]
}
]
\ No newline at end of file
export default [
{
path: '/taskManage',
title: '首页',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '申请申领',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '审核审批',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '设备管理',
auth: [0,1],
icon: 'md-list-box',
children: [
{
path: '/taskManage',
title: '设备管理',
auth: [0,1],
}
]
},
{
path: '/taskManage',
title: '耗材管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '分类管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '状态查询',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '预警管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/permissionManage',
title: '系统配置',
auth: [0],
icon: 'md-key',
children: [
{
path: '/permissionManage',
title: '消息推送模版',
auth: [0],
},
{
path: '/permissionManage',
title: '用户权限',
auth: [0],
}
]
}
]
\ No newline at end of file
export default [
{
path: '/taskManage',
title: '首页',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '申请申领',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '审核审批',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '设备管理',
auth: [0,1],
icon: 'md-list-box',
children: [
{
path: '/taskManage',
title: '设备管理',
auth: [0,1],
},
{
path: '/taskManage',
title: '耗材管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '分类管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '状态查询',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/taskManage',
title: '预警管理',
auth: [0,1],
icon: 'md-list-box',
},
]
},
{
path: '/permissionManage',
title: '系统配置',
auth: [0],
icon: 'md-key',
children: [
{
path: '/permissionManage',
title: '消息推送模版',
auth: [0],
},
{
path: '/permissionManage',
title: '用户权限',
auth: [0],
}
]
}
]
\ No newline at end of file
export default [
{
path: '/homePage',
title: '首页',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/applicationClaim',
title: '申请申领',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/reviewApproval',
title: '审核审批',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/equipmentManagement',
title: '设备管理',
auth: [0,1],
icon: 'md-list-box',
children: [
{
path: '/equipmentManagement',
title: '设备管理',
auth: [0,1],
},
{
path: '/consumablesManagement',
title: '耗材管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/categoryManagement',
title: '分类管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/statusQuery',
title: '状态查询',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/alertManagement',
title: '预警管理',
auth: [0,1],
icon: 'md-list-box',
},
]
},
{
path: '/systemConfiguration',
title: '系统配置',
auth: [0],
icon: 'md-key',
children: [
{
path: '/messagePushTemplate',
title: '消息推送模版',
auth: [0],
},
{
path: '/userPermission',
title: '用户权限',
auth: [0],
}
]
}
]
\ No newline at end of file
export default [
{
path: '/homePage',
title: '首页',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/applicationClaim',
title: '申请申领',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/reviewApproval',
title: '审核审批',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/equipmentManagement',
title: '设备管理',
auth: [0,1],
},
{
path: '/consumablesManagement',
title: '耗材管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/categoryManagement',
title: '分类管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/statusQuery',
title: '状态查询',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/alertManagement',
title: '预警管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/systemConfiguration',
title: '系统配置',
auth: [0],
icon: 'md-key',
children: [
{
path: '/messagePushTemplate',
title: '消息推送模版',
auth: [0],
},
{
path: '/userPermission',
title: '用户权限',
auth: [0],
}
]
}
]
\ No newline at end of file
export default [
{
path: '/homePage',
title: '首页',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/applicationClaim',
title: '申请申领',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/reviewApproval',
title: '审核审批',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/statusQuery',
title: '状态查询',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/equipmentManagement',
title: '设备管理',
auth: [0,1],
},
{
path: '/consumablesManagement',
title: '耗材管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/categoryManagement',
title: '分类管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/alertManagement',
title: '预警管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/systemConfiguration',
title: '系统配置',
auth: [0],
icon: 'md-key',
children: [
{
path: '/messagePushTemplate',
title: '消息推送模版',
auth: [0],
},
{
path: '/userPermission',
title: '用户权限',
auth: [0],
}
]
}
]
\ No newline at end of file
export default [
{
path: '/homePage',
title: '首页',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/applicationClaim',
title: '申请申领',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/reviewApproval',
title: '审核审批',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/statusQuery',
title: '状态查询',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/equipmentManagement',
title: '设备管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/consumablesManagement',
title: '耗材管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/categoryManagement',
title: '分类管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/alertManagement',
title: '预警管理',
auth: [0,1],
icon: 'md-list-box',
},
{
path: '/systemConfiguration',
title: '系统配置',
auth: [0],
icon: 'md-key',
children: [
{
path: '/messagePushTemplate',
title: '消息推送模版',
auth: [0],
},
{
path: '/userPermission',
title: '用户权限',
auth: [0],
}
]
}
]
\ No newline at end of file
export default [
{
path: '/homePage',
title: '首页',
auth: [0,1],
icon: 'md-home',
},
{
path: '/applicationClaim',
title: '申请申领',
auth: [0,1],
icon: 'md-document',
},
{
path: '/reviewApproval',
title: '审核审批',
auth: [0,1],
icon: 'md-checkmark-circle',
},
{
path: '/statusQuery',
title: '状态查询',
auth: [0,1],
icon: 'md-search',
},
{
path: '/equipmentManagement',
title: '设备管理',
auth: [0,1],
icon: 'md-build',
},
{
path: '/consumablesManagement',
title: '耗材管理',
auth: [0,1],
icon: 'md-cube',
},
{
path: '/categoryManagement',
title: '分类管理',
auth: [0,1],
icon: 'md-folder',
},
{
path: '/alertManagement',
title: '预警管理',
auth: [0,1],
icon: 'md-alert',
},
{
path: '/systemConfiguration',
title: '系统配置',
auth: [0],
icon: 'md-settings',
children: [
{
path: '/messagePushTemplate',
title: '消息推送模版',
auth: [0],
icon: 'md-mail',
},
{
path: '/userPermission',
title: '用户权限',
auth: [0],
icon: 'md-lock',
}
]
}
]
\ No newline at end of file
export default [
{
path: '/homePage',
title: '首页',
auth: [0,1],
icon: 'md-home',
},
{
path: '/applicationClaim',
title: '申请申领',
auth: [0,1],
icon: 'md-document',
},
{
path: '/reviewApproval',
title: '审核审批',
auth: [0,1],
icon: 'md-checkmark-circle',
},
{
path: '/statusQuery',
title: '状态查询',
auth: [0,1],
icon: 'md-search',
},
{
path: '/equipmentManagement',
title: '设备管理',
auth: [0,1],
icon: 'md-build',
},
{
path: '/consumablesManagement',
title: '耗材管理',
auth: [0,1],
icon: 'md-cube',
},
{
path: '/categoryManagement',
title: '分类管理',
auth: [0,1],
icon: 'md-folder',
},
{
path: '/alertManagement',
title: '预警管理',
auth: [0,1],
icon: 'md-alert',
},
{
path: '/systemConfiguration',
title: '系统配置',
auth: [0,1],
icon: 'md-settings',
children: [
{
path: '/messagePushTemplate',
title: '消息推送模版',
auth: [0,1],
icon: 'md-mail',
},
{
path: '/userPermission',
title: '用户权限',
auth: [0,1],
icon: 'md-lock',
}
]
}
]
\ No newline at end of file
<template>
<div class="role-container">
<!-- 左侧角色列表 -->
<div class="role-sidebar">
<div class="role-title">审核审批</div>
<div class="role-list">
<div
v-for="role in roleList"
:key="role.role_type"
:class="['role-item', { active: currentRole.role_type === role.role_type }]"
@click="handleSelectRole(role)"
>
<div class="role-item-icon" :class="getRoleIconClass(role.role_type)">
<Icon :type="getRoleIcon(role.role_type)"/>
</div>
<div class="role-item-info">
<div class="role-name">{{ role.role_name }}</div>
</div>
</div>
</div>
</div>
<Card dis-hover :bordered="false" style="width: calc(100% - 300px);height: 100%;">
<!-- 右侧人员列表 -->
<component :is="currentRole.role_type == 0 ? Devices : Consumables"></component>
</Card>
</div>
</template>
<script setup>
const Devices = defineAsyncComponent(()=>import('@/pages/applicationClaim/device'))
const Consumables = defineAsyncComponent(()=>import('@/pages/applicationClaim/consumables'))
import {ref, onMounted, reactive, computed, defineAsyncComponent} from 'vue'
import {Message, Modal as ModalConfirm} from 'view-ui-plus'
import {
RoleInit,
PermissonList,
PermissonAdd,
PermissonDelete,
SelectTeacher,
GetDepts
} from '@/api/api'
// 角色列表
const roleList = ref([
{
"role_type": 0,
"role_name": "设备审核",
"count": 14
},
{
"role_type": 1,
"role_name": "耗材审核",
"count": 4
},
])
// 部门列表
const departmentOptions = ref([])
// 当前选中的角色
const currentRole = ref({role_type:0})
// 获取角色图标
const getRoleIcon = (roleType) => {
switch (roleType) {
case 0:
return 'md-settings'
case 1:
return 'md-people'
case 2:
return 'md-person'
case 3:
return 'md-briefcase'
default:
return 'md-person'
}
}
// 获取角色图标样式类
const getRoleIconClass = (roleType) => {
switch (roleType) {
case 0:
return 'role-admin'
case 1:
return 'role-party-office'
case 2:
return 'role-responsible-dept'
case 3:
return 'role-entrance-dept'
default:
return 'role-admin'
}
}
// 用户表格列定义
const userColumns = computed(() => {
const columns = [
{
title: '#',
type: 'index',
width: 60
},
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
]
// 当角色为部门负责人时(role_type === 2),添加负责部门列
if (currentRole.value.role_type === 2) {
columns.push({
title: '负责部门',
slot: 'duty_depts',
minWidth: 200
})
}
// 添加操作列
columns.push({
title: '操作',
slot: 'action',
width: 80,
align: 'center'
})
return columns
})
// 可添加用户表格列定义
const availableUserColumns = ref([
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
{
title: '部门',
key: 'dept_name',
minWidth: 150
},
{
title: '操作',
slot: 'action',
width: 80,
align: 'center'
}
])
// 分页相关变量
const total = ref(0)
const pageIndex = ref(1)
const pageSize = ref(20)
// 搜索关键词
const searchKeyword = ref('')
// 加载状态
const loading = ref(false)
// 添加用户对话框
const addUserModal = reactive({
show: false,
loading: false,
keyword: '',
userList: [],
dutyDepts: []
})
// 用户列表
const userList = ref([])
// 加载角色列表
const loadRoleList = async () => {
try {
await RoleInit().then(res => {
// roleList.value = res.response
if (res.response.length > 0 && !currentRole.value.role_type && currentRole.value.role_type !== 0) {
currentRole.value = res.response[0]
loadRoleUsers()
}
}).catch(error => {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
})
} catch (error) {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
}
}
// 加载角色用户
const loadRoleUsers = async () => {
if (!currentRole.value && currentRole.value.role_type === undefined) return
loading.value = true
try {
const params = {
role_type: currentRole.value.role_type,
query: searchKeyword.value
}
await PermissonList(params).then(res => {
userList.value = res.response || []
total.value = res.response ? res.response.length : 0
}).catch(error => {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
}).finally(() => {
loading.value = false
})
} catch (error) {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
loading.value = false
}
}
// 选择角色
const handleSelectRole = (role) => {
console.log("role🚀🚀🚀,",role)
currentRole.value = role
searchKeyword.value = ''
pageIndex.value = 1
loadRoleUsers()
}
// 搜索用户
const handleSearch = () => {
pageIndex.value = 1
loadRoleUsers()
}
// 分页改变
const handlePageChange = (page) => {
pageIndex.value = page
}
// 页大小改变
const handlePageSizeChange = (size) => {
pageSize.value = size
pageIndex.value = 1
}
// 添加用户
const handleAddUser = () => {
addUserModal.keyword = ''
addUserModal.userList = []
addUserModal.dutyDepts = []
addUserModal.show = true
searchAvailableUsers()
}
// 搜索可添加的用户
const searchAvailableUsers = async () => {
addUserModal.loading = true
try {
const params = {
query: addUserModal.keyword
}
await SelectTeacher(params).then(res => {
addUserModal.userList = res.response || []
}).catch(error => {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
}).finally(() => {
addUserModal.loading = false
})
} catch (error) {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
addUserModal.loading = false
}
}
// 加载部门列表
const loadDepartments = async () => {
try {
await GetDepts().then((res) => {
departmentOptions.value = res.response.map(dept => ({
value: dept.dept_id,
label: dept.dept_name
}))
}).catch(error => {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
})
} catch (error) {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
}
}
onMounted(() => {
loadRoleList()
loadDepartments()
})
</script>
<style scoped>
.role-container {
display: flex;
min-height: calc(100vh - 150px);
/* border: 1px solid #e8eaec; */
border-radius: 4px;
overflow: auto;
gap: 16px;
}
.role-sidebar {
width: 300px;
border-right: 1px solid #e8eaec;
background-color: #fff;
overflow-y: auto;
height: 200px;
}
.role-title {
padding: 16px;
font-size: 16px;
font-weight: bold;
border-bottom: 1px solid #e8eaec;
}
.role-list {
padding: 10px 0;
}
.role-item {
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
transition: background-color 0.3s;
}
.role-item:hover {
background-color: #f0f0f0;
}
.role-item.active {
background-color: #e8f7ff;
color: #2d8cf0;
}
.role-item-icon {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
color: #fff;
}
.role-admin {
background-color: #2d8cf0;
}
.role-party-office {
background-color: #19be6b;
}
.role-entrance-dept {
background-color: #ff9900;
}
.role-responsible-dept {
background-color: #ed4014;
}
.role-item-info {
flex: 1;
}
.role-name {
font-size: 14px;
margin-bottom: 4px;
}
.role-count {
font-size: 12px;
color: #808695;
}
.role-content {
display: flex;
flex-direction: column;
gap: 16px;
flex: 1;
}
.role-toolbar {
height: 100%;
display: flex;
justify-content: space-between;
/* margin-bottom: 16px; */
position: sticky;
top: 0;
background-color: #fff;
z-index: 1;
}
.search-box {
width: 280px;
}
.pagination {
/* margin-top: 16px; */
text-align: center;
position: sticky;
bottom: 0;
background-color: #fff;
z-index: 1;
}
.action-btns {
display: flex;
justify-content: center;
}
.user-avatar {
display: flex;
justify-content: center;
align-items: center;
}
.user-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.add-user-search {
margin-bottom: 16px;
}
.duty-dept-select {
margin-bottom: 16px;
}
</style>
\ No newline at end of file
<template>
<div class="role-container">
<!-- 左侧角色列表 -->
<div class="role-sidebar">
<div class="role-title">审核审批</div>
<div class="role-list">
<div
v-for="role in roleList"
:key="role.role_type"
:class="['role-item', { active: currentRole.role_type === role.role_type }]"
@click="handleSelectRole(role)"
>
<div class="role-item-icon" :class="getRoleIconClass(role.role_type)">
<Icon :type="role.role_type === 0 ? 'ios-desktop' : 'ios-cube'"/>
</div>
<div class="role-item-info">
<div class="role-name">{{ role.role_name }}</div>
</div>
</div>
</div>
</div>
<Card dis-hover :bordered="false" style="width: calc(100% - 300px);height: 100%;">
<!-- 右侧人员列表 -->
<component :is="currentRole.role_type == 0 ? Devices : Consumables"></component>
</Card>
</div>
</template>
<script setup>
const Devices = defineAsyncComponent(()=>import('@/pages/applicationClaim/device'))
const Consumables = defineAsyncComponent(()=>import('@/pages/applicationClaim/consumables'))
import {ref, onMounted, reactive, computed, defineAsyncComponent} from 'vue'
import {Message, Modal as ModalConfirm} from 'view-ui-plus'
import {
RoleInit,
PermissonList,
PermissonAdd,
PermissonDelete,
SelectTeacher,
GetDepts
} from '@/api/api'
// 角色列表
const roleList = ref([
{
"role_type": 0,
"role_name": "设备审核",
"count": 14
},
{
"role_type": 1,
"role_name": "耗材审核",
"count": 4
},
])
// 部门列表
const departmentOptions = ref([])
// 当前选中的角色
const currentRole = ref({role_type:0})
// 获取角色图标
const getRoleIcon = (roleType) => {
switch (roleType) {
case 0:
return 'md-settings'
case 1:
return 'md-people'
case 2:
return 'md-person'
case 3:
return 'md-briefcase'
default:
return 'md-person'
}
}
// 获取角色图标样式类
const getRoleIconClass = (roleType) => {
switch (roleType) {
case 0:
return 'role-admin'
case 1:
return 'role-party-office'
case 2:
return 'role-responsible-dept'
case 3:
return 'role-entrance-dept'
default:
return 'role-admin'
}
}
// 用户表格列定义
const userColumns = computed(() => {
const columns = [
{
title: '#',
type: 'index',
width: 60
},
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
]
// 当角色为部门负责人时(role_type === 2),添加负责部门列
if (currentRole.value.role_type === 2) {
columns.push({
title: '负责部门',
slot: 'duty_depts',
minWidth: 200
})
}
// 添加操作列
columns.push({
title: '操作',
slot: 'action',
width: 80,
align: 'center'
})
return columns
})
// 可添加用户表格列定义
const availableUserColumns = ref([
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
{
title: '部门',
key: 'dept_name',
minWidth: 150
},
{
title: '操作',
slot: 'action',
width: 80,
align: 'center'
}
])
// 分页相关变量
const total = ref(0)
const pageIndex = ref(1)
const pageSize = ref(20)
// 搜索关键词
const searchKeyword = ref('')
// 加载状态
const loading = ref(false)
// 添加用户对话框
const addUserModal = reactive({
show: false,
loading: false,
keyword: '',
userList: [],
dutyDepts: []
})
// 用户列表
const userList = ref([])
// 加载角色列表
const loadRoleList = async () => {
try {
await RoleInit().then(res => {
// roleList.value = res.response
if (res.response.length > 0 && !currentRole.value.role_type && currentRole.value.role_type !== 0) {
currentRole.value = res.response[0]
loadRoleUsers()
}
}).catch(error => {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
})
} catch (error) {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
}
}
// 加载角色用户
const loadRoleUsers = async () => {
if (!currentRole.value && currentRole.value.role_type === undefined) return
loading.value = true
try {
const params = {
role_type: currentRole.value.role_type,
query: searchKeyword.value
}
await PermissonList(params).then(res => {
userList.value = res.response || []
total.value = res.response ? res.response.length : 0
}).catch(error => {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
}).finally(() => {
loading.value = false
})
} catch (error) {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
loading.value = false
}
}
// 选择角色
const handleSelectRole = (role) => {
console.log("role🚀🚀🚀,",role)
currentRole.value = role
searchKeyword.value = ''
pageIndex.value = 1
loadRoleUsers()
}
// 搜索用户
const handleSearch = () => {
pageIndex.value = 1
loadRoleUsers()
}
// 分页改变
const handlePageChange = (page) => {
pageIndex.value = page
}
// 页大小改变
const handlePageSizeChange = (size) => {
pageSize.value = size
pageIndex.value = 1
}
// 添加用户
const handleAddUser = () => {
addUserModal.keyword = ''
addUserModal.userList = []
addUserModal.dutyDepts = []
addUserModal.show = true
searchAvailableUsers()
}
// 搜索可添加的用户
const searchAvailableUsers = async () => {
addUserModal.loading = true
try {
const params = {
query: addUserModal.keyword
}
await SelectTeacher(params).then(res => {
addUserModal.userList = res.response || []
}).catch(error => {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
}).finally(() => {
addUserModal.loading = false
})
} catch (error) {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
addUserModal.loading = false
}
}
// 加载部门列表
const loadDepartments = async () => {
try {
await GetDepts().then((res) => {
departmentOptions.value = res.response.map(dept => ({
value: dept.dept_id,
label: dept.dept_name
}))
}).catch(error => {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
})
} catch (error) {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
}
}
onMounted(() => {
loadRoleList()
loadDepartments()
})
</script>
<style scoped>
.role-container {
display: flex;
min-height: calc(100vh - 150px);
/* border: 1px solid #e8eaec; */
border-radius: 4px;
overflow: auto;
gap: 16px;
}
.role-sidebar {
width: 300px;
border-right: 1px solid #e8eaec;
background-color: #fff;
overflow-y: auto;
height: 200px;
}
.role-title {
padding: 16px;
font-size: 16px;
font-weight: bold;
border-bottom: 1px solid #e8eaec;
}
.role-list {
padding: 10px 0;
}
.role-item {
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
transition: background-color 0.3s;
}
.role-item:hover {
background-color: #f0f0f0;
}
.role-item.active {
background-color: #e8f7ff;
color: #2d8cf0;
}
.role-item-icon {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
color: #fff;
}
.role-admin {
background-color: #2d8cf0;
}
.role-party-office {
background-color: #19be6b;
}
.role-entrance-dept {
background-color: #ff9900;
}
.role-responsible-dept {
background-color: #ed4014;
}
.role-item-info {
flex: 1;
}
.role-name {
font-size: 14px;
margin-bottom: 4px;
}
.role-count {
font-size: 12px;
color: #808695;
}
.role-content {
display: flex;
flex-direction: column;
gap: 16px;
flex: 1;
}
.role-toolbar {
height: 100%;
display: flex;
justify-content: space-between;
/* margin-bottom: 16px; */
position: sticky;
top: 0;
background-color: #fff;
z-index: 1;
}
.search-box {
width: 280px;
}
.pagination {
/* margin-top: 16px; */
text-align: center;
position: sticky;
bottom: 0;
background-color: #fff;
z-index: 1;
}
.action-btns {
display: flex;
justify-content: center;
}
.user-avatar {
display: flex;
justify-content: center;
align-items: center;
}
.user-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.add-user-search {
margin-bottom: 16px;
}
.duty-dept-select {
margin-bottom: 16px;
}
</style>
\ No newline at end of file
<template>
<div class="error-page">
<div class="error-page-container">
<div class="error-page-icon">
<Icon type="ios-lock" size="128" color="#c5c8ce" />
</div>
<div class="error-page-title">403</div>
<div class="error-page-desc">抱歉,您没有访问该页面的权限</div>
<div class="error-page-actions">
<Button type="primary" @click="goHome">返回首页</Button>
<Button @click="goBack" class="ivu-ml-8">返回上一页</Button>
</div>
</div>
</div>
</template>
<script setup>
import { useRouter } from 'vue-router';
const router = useRouter();
const goHome = () => {
router.push({ name: 'homePage' });
};
const goBack = () => {
router.go(-1);
};
</script>
<style scoped>
.error-page {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f8f8f9;
}
.error-page-container {
text-align: center;
padding: 40px;
}
.error-page-icon {
margin-bottom: 20px;
}
.error-page-title {
font-size: 72px;
font-weight: 700;
color: #515a6e;
margin-bottom: 20px;
}
.error-page-desc {
font-size: 20px;
color: #808695;
margin-bottom: 30px;
}
.error-page-actions {
margin-top: 30px;
}
.ivu-ml-8 {
margin-left: 8px;
}
</style>
\ No newline at end of file
<template>
<div class="dashboard-container">
<!-- 顶部统计卡片 -->
<Row :gutter="16" class="stat-cards">
<i-col span="8">
<Card>
<div class="stat-item">
<h3>库存总量</h3>
<Count-up :end="totalInventory" />
<p>当前库存总数</p>
</div>
</Card>
</i-col>
<i-col span="8">
<Card>
<div class="stat-item warning">
<h3>近效期耗材</h3>
<Count-up :end="expiringItems" />
<p>有效期不足30天</p>
</div>
</Card>
</i-col>
<i-col span="8">
<Card>
<div class="stat-item danger">
<h3>低库存预警</h3>
<Count-up :end="lowStockItems" />
<p>低于安全库存</p>
</div>
</Card>
</i-col>
</Row>
<!-- 设备使用分析 -->
<Card class="chart-card">
<p slot="title">设备使用率分析</p>
<div class="chart-container">
<v-chart :options="deviceUsageOptions" />
</div>
</Card>
<!-- 耗材消耗趋势 -->
<Row :gutter="16">
<i-col span="12">
<Card class="chart-card">
<p slot="title">耗材消耗趋势</p>
<div class="chart-container">
<v-chart :options="consumptionTrendOptions" />
</div>
</Card>
</i-col>
<i-col span="12">
<Card class="chart-card">
<p slot="title">部门耗材对比</p>
<div class="chart-container">
<v-chart :options="departmentComparisonOptions" />
</div>
</Card>
</i-col>
</Row>
<!-- 近效期耗材列表 -->
<Card class="table-card">
<p slot="title">近效期耗材清单</p>
<Table :columns="expiringColumns" :data="expiringData">
<template slot-scope="{ row }" slot="action">
<Button type="primary" size="small" @click="handleExport(row)">导出</Button>
</template>
</Table>
</Card>
</div>
</template>
<script>
import CountUp from 'vue-countup-v2'
import ECharts from 'vue-echarts'
import 'echarts/lib/chart/bar'
import 'echarts/lib/chart/line'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/title'
import 'echarts/lib/component/legend'
export default {
name: 'Dashboard',
components: {
CountUp,
'v-chart': ECharts
},
data() {
return {
// 模拟数据
totalInventory: 2580,
expiringItems: 15,
lowStockItems: 8,
// 近效期耗材表格配置
expiringColumns: [
{ title: '耗材名称', key: 'name' },
{ title: '库存数量', key: 'quantity' },
{ title: '有效期至', key: 'expireDate' },
{ title: '剩余天数', key: 'daysLeft' },
{ title: '操作', slot: 'action' }
],
expiringData: [
{
name: '水性笔',
quantity: 50,
expireDate: '2024-02-15',
daysLeft: 25
}
// 更多数据...
],
// 图表配置
deviceUsageOptions: {
title: { text: '设备使用频率统计' },
tooltip: {},
xAxis: {
data: ['打印机A', '打印机B', '复印机', '扫描仪']
},
yAxis: {},
series: [{
type: 'bar',
data: [120, 200, 150, 80]
}]
},
consumptionTrendOptions: {
title: { text: '耗材消耗趋势预测' },
tooltip: {},
legend: {
data: ['实际消耗', '预测消耗']
},
xAxis: {
type: 'category',
data: ['1月', '2月', '3月', '4月', '5月', '6月']
},
yAxis: {},
series: [
{
name: '实际消耗',
type: 'line',
data: [120, 132, 101, 134, 90, 230]
},
{
name: '预测消耗',
type: 'line',
data: [220, 182, 191, 234, 290, 330]
}
]
},
departmentComparisonOptions: {
title: { text: '部门耗材使用对比' },
tooltip: {},
legend: {},
xAxis: {
data: ['办公室', '研发部', '销售部', '人事部']
},
yAxis: {},
series: [{
type: 'bar',
data: [150, 230, 180, 120]
}]
}
}
},
methods: {
handleExport(row) {
// 导出功能实现
this.$Message.success('导出成功')
}
}
}
</script>
<style lang="less" scoped>
.dashboard-container {
padding: 20px;
.stat-cards {
margin-bottom: 20px;
.stat-item {
text-align: center;
padding: 20px;
h3 {
margin-bottom: 10px;
color: #17233d;
}
&.warning {
color: #ff9900;
}
&.danger {
color: #ed4014;
}
}
}
.chart-card {
margin-bottom: 20px;
.chart-container {
height: 300px;
}
}
.table-card {
margin-bottom: 20px;
}
}
</style>
<template>
<div class="dashboard-container">
<!-- 顶部统计卡片 -->
<Row :gutter="16" class="stat-cards">
<i-col span="8">
<Card>
<div class="stat-item">
<h3>库存总量</h3>
<div class="count">{{totalInventory}}</div>
<p>当前库存总数</p>
</div>
</Card>
</i-col>
<i-col span="8">
<Card>
<div class="stat-item warning">
<h3>近效期耗材</h3>
<div class="count">{{expiringItems}}</div>
<p>有效期不足30天</p>
</div>
</Card>
</i-col>
<i-col span="8">
<Card>
<div class="stat-item danger">
<h3>低库存预警</h3>
<div class="count">{{lowStockItems}}</div>
<p>低于安全库存</p>
</div>
</Card>
</i-col>
</Row>
<!-- 设备使用分析 -->
<Card class="chart-card">
<p slot="title">设备使用率分析</p>
<div class="chart-container" ref="deviceUsageChart"></div>
</Card>
<!-- 耗材消耗趋势 -->
<Row :gutter="16">
<i-col span="12">
<Card class="chart-card">
<p slot="title">耗材消耗趋势</p>
<div class="chart-container" ref="consumptionTrendChart"></div>
</Card>
</i-col>
<i-col span="12">
<Card class="chart-card">
<p slot="title">部门耗材对比</p>
<div class="chart-container" ref="departmentComparisonChart"></div>
</Card>
</i-col>
</Row>
<!-- 近效期耗材列表 -->
<Card class="table-card">
<p slot="title">近效期耗材清单</p>
<Table :columns="expiringColumns" :data="expiringData">
<template slot-scope="{ row }" slot="action">
<Button type="primary" size="small" @click="handleExport(row)">导出</Button>
</template>
</Table>
</Card>
</div>
</template>
<script>
import * as echarts from 'echarts'
export default {
name: 'Dashboard',
data() {
return {
// 模拟数据
totalInventory: 2580,
expiringItems: 15,
lowStockItems: 8,
// 近效期耗材表格配置
expiringColumns: [
{ title: '耗材名称', key: 'name' },
{ title: '库存数量', key: 'quantity' },
{ title: '有效期至', key: 'expireDate' },
{ title: '剩余天数', key: 'daysLeft' },
{ title: '操作', slot: 'action' }
],
expiringData: [
{
name: '水性笔',
quantity: 50,
expireDate: '2024-02-15',
daysLeft: 25
}
// 更多数据...
],
// 图表配置
deviceUsageOptions: {
title: { text: '设备使用频率统计' },
tooltip: {},
xAxis: {
data: ['打印机A', '打印机B', '复印机', '扫描仪']
},
yAxis: {},
series: [{
type: 'bar',
data: [120, 200, 150, 80]
}]
},
consumptionTrendOptions: {
title: { text: '耗材消耗趋势预测' },
tooltip: {},
legend: {
data: ['实际消耗', '预测消耗']
},
xAxis: {
type: 'category',
data: ['1月', '2月', '3月', '4月', '5月', '6月']
},
yAxis: {},
series: [
{
name: '实际消耗',
type: 'line',
data: [120, 132, 101, 134, 90, 230]
},
{
name: '预测消耗',
type: 'line',
data: [220, 182, 191, 234, 290, 330]
}
]
},
departmentComparisonOptions: {
title: { text: '部门耗材使用对比' },
tooltip: {},
legend: {},
xAxis: {
data: ['办公室', '研发部', '销售部', '人事部']
},
yAxis: {},
series: [{
type: 'bar',
data: [150, 230, 180, 120]
}]
}
}
},
mounted() {
this.initCharts()
},
methods: {
initCharts() {
// 初始化设备使用率图表
const deviceUsageChart = echarts.init(this.$refs.deviceUsageChart)
deviceUsageChart.setOption(this.deviceUsageOptions)
// 初始化耗材消耗趋势图表
const consumptionTrendChart = echarts.init(this.$refs.consumptionTrendChart)
consumptionTrendChart.setOption(this.consumptionTrendOptions)
// 初始化部门耗材对比图表
const departmentComparisonChart = echarts.init(this.$refs.departmentComparisonChart)
departmentComparisonChart.setOption(this.departmentComparisonOptions)
// 监听窗口大小变化
window.addEventListener('resize', () => {
deviceUsageChart.resize()
consumptionTrendChart.resize()
departmentComparisonChart.resize()
})
},
handleExport(row) {
// 导出功能实现
this.$Message.success('导出成功')
}
}
}
</script>
<style lang="less" scoped>
.dashboard-container {
padding: 20px;
.stat-cards {
margin-bottom: 20px;
.stat-item {
text-align: center;
padding: 20px;
h3 {
margin-bottom: 10px;
color: #17233d;
}
.count {
font-size: 24px;
font-weight: bold;
margin: 10px 0;
}
&.warning {
color: #ff9900;
}
&.danger {
color: #ed4014;
}
}
}
.chart-card {
margin-bottom: 20px;
.chart-container {
height: 300px;
}
}
.table-card {
margin-bottom: 20px;
}
}
</style>
<template>
<div class="dashboard-container">
<!-- 顶部统计卡片 -->
<Row :gutter="16" class="stat-cards">
<i-col span="8">
<Card>
<div class="stat-item">
<h3>库存总量</h3>
<div class="count">{{ totalInventory }}</div>
<p>当前库存总数</p>
</div>
</Card>
</i-col>
<i-col span="8">
<Card>
<div class="stat-item warning">
<h3>近效期耗材</h3>
<div class="count">{{ expiringItems }}</div>
<p>有效期不足30天</p>
</div>
</Card>
</i-col>
<i-col span="8">
<Card>
<div class="stat-item danger">
<h3>低库存预警</h3>
<div class="count">{{ lowStockItems }}</div>
<p>低于安全库存</p>
</div>
</Card>
</i-col>
</Row>
<!-- 设备使用分析 -->
<Card class="chart-card">
<p slot="title">设备使用率分析</p>
<div class="chart-container" ref="deviceUsageChart"></div>
</Card>
<!-- 耗材消耗趋势 -->
<Row :gutter="16">
<i-col span="12">
<Card class="chart-card">
<p slot="title">耗材消耗趋势</p>
<div class="chart-container" ref="consumptionTrendChart"></div>
</Card>
</i-col>
<i-col span="12">
<Card class="chart-card">
<p slot="title">部门耗材对比</p>
<div class="chart-container" ref="departmentComparisonChart"></div>
</Card>
</i-col>
</Row>
<!-- 近效期耗材列表 -->
<Card class="table-card">
<p slot="title">近效期耗材清单</p>
<Table :columns="expiringColumns" :data="expiringData">
<template slot-scope="{ row }" slot="action">
<Button type="primary" size="small" @click="handleExport(row)">导出</Button>
</template>
</Table>
</Card>
</div>
</template>
<script>
import * as echarts from 'echarts'
export default {
name: 'Dashboard',
data() {
return {
// 模拟数据
totalInventory: 2580,
expiringItems: 15,
lowStockItems: 8,
// 近效期耗材表格配置
expiringColumns: [
{ title: '耗材名称', key: 'name' },
{ title: '库存数量', key: 'quantity' },
{ title: '有效期至', key: 'expireDate' },
{ title: '剩余天数', key: 'daysLeft' },
{ title: '操作', slot: 'action' }
],
expiringData: [
{
name: '水性笔',
quantity: 50,
expireDate: '2024-02-15',
daysLeft: 25
}
// 更多数据...
],
// 图表配置
deviceUsageOptions: {
title: { text: '设备使用频率统计' },
tooltip: {},
xAxis: {
data: ['打印机A', '打印机B', '复印机', '扫描仪']
},
yAxis: {},
series: [{
type: 'bar',
data: [120, 200, 150, 80]
}]
},
consumptionTrendOptions: {
title: { text: '耗材消耗趋势预测' },
tooltip: {},
legend: {
data: ['实际消耗', '预测消耗']
},
xAxis: {
type: 'category',
data: ['1月', '2月', '3月', '4月', '5月', '6月']
},
yAxis: {},
series: [
{
name: '实际消耗',
type: 'line',
data: [120, 132, 101, 134, 90, 230]
},
{
name: '预测消耗',
type: 'line',
data: [220, 182, 191, 234, 290, 330]
}
]
},
departmentComparisonOptions: {
title: { text: '部门耗材使用对比' },
tooltip: {},
legend: {},
xAxis: {
data: ['办公室', '研发部', '销售部', '人事部']
},
yAxis: {},
series: [{
type: 'bar',
data: [150, 230, 180, 120]
}]
}
}
},
mounted() {
this.initCharts()
},
methods: {
initCharts() {
// 初始化设备使用率图表
const deviceUsageChart = echarts.init(this.$refs.deviceUsageChart)
deviceUsageChart.setOption(this.deviceUsageOptions)
// 初始化耗材消耗趋势图表
const consumptionTrendChart = echarts.init(this.$refs.consumptionTrendChart)
consumptionTrendChart.setOption(this.consumptionTrendOptions)
// 初始化部门耗材对比图表
const departmentComparisonChart = echarts.init(this.$refs.departmentComparisonChart)
departmentComparisonChart.setOption(this.departmentComparisonOptions)
// 监听窗口大小变化
window.addEventListener('resize', this.handleResize)
},
handleResize() {
// 重新调整图表大小
const deviceUsageChart = echarts.getInstanceByDom(this.$refs.deviceUsageChart)
const consumptionTrendChart = echarts.getInstanceByDom(this.$refs.consumptionTrendChart)
const departmentComparisonChart = echarts.getInstanceByDom(this.$refs.departmentComparisonChart)
if (deviceUsageChart) deviceUsageChart.resize()
if (consumptionTrendChart) consumptionTrendChart.resize()
if (departmentComparisonChart) departmentComparisonChart.resize()
},
handleExport(row) {
// 导出功能实现
this.$Message.success('导出成功')
}
},
beforeDestroy() {
// 移除窗口大小变化监听
window.removeEventListener('resize', this.handleResize)
}
}
</script>
<style lang="less" scoped>
.dashboard-container {
padding: 20px;
.stat-cards {
margin-bottom: 20px;
.stat-item {
text-align: center;
padding: 20px;
h3 {
margin-bottom: 10px;
color: #17233d;
}
.count {
font-size: 24px;
font-weight: bold;
margin: 10px 0;
}
&.warning {
color: #ff9900;
}
&.danger {
color: #ed4014;
}
}
}
.chart-card {
margin-bottom: 20px;
.chart-container {
height: 300px;
}
}
.table-card {
margin-bottom: 20px;
}
}
</style>
<template>
<div class="dashboard-container">
<!-- 顶部统计卡片 -->
<Row :gutter="16" class="stat-cards">
<i-col span="8">
<Card>
<div class="stat-item">
<h3>库存总量</h3>
<div class="count">{{ totalInventory }}</div>
<p>当前库存总数</p>
</div>
</Card>
</i-col>
<i-col span="8">
<Card>
<div class="stat-item warning">
<h3>近效期耗材</h3>
<div class="count">{{ expiringItems }}</div>
<p>有效期不足30天</p>
</div>
</Card>
</i-col>
<i-col span="8">
<Card>
<div class="stat-item danger">
<h3>低库存预警</h3>
<div class="count">{{ lowStockItems }}</div>
<p>低于安全库存</p>
</div>
</Card>
</i-col>
</Row>
<!-- 设备使用分析 -->
<Card class="chart-card">
<p slot="title">设备使用率分析</p>
<div class="chart-container" ref="deviceUsageChart"></div>
</Card>
<!-- 耗材消耗趋势 -->
<Row :gutter="16">
<i-col span="12">
<Card class="chart-card">
<p slot="title">耗材消耗趋势</p>
<div class="chart-container" ref="consumptionTrendChart"></div>
</Card>
</i-col>
<i-col span="12">
<Card class="chart-card">
<p slot="title">部门耗材对比</p>
<div class="chart-container" ref="departmentComparisonChart"></div>
</Card>
</i-col>
</Row>
<!-- 近效期耗材列表 -->
<Card class="table-card">
<p slot="title">近效期耗材清单</p>
<Table :columns="expiringColumns" :data="expiringData">
<template slot-scope="{ row }" slot="action">
<Button type="primary" size="small" @click="handleExport(row)">导出</Button>
</template>
</Table>
</Card>
</div>
</template>
<script>
import * as echarts from 'echarts'
export default {
name: 'Dashboard',
data() {
return {
// 模拟数据
totalInventory: 2580,
expiringItems: 15,
lowStockItems: 8,
// 近效期耗材表格配置
expiringColumns: [
{ title: '耗材名称', key: 'name' },
{ title: '库存数量', key: 'quantity' },
{ title: '有效期至', key: 'expireDate' },
{ title: '剩余天数', key: 'daysLeft' },
{ title: '操作', slot: 'action' }
],
expiringData: [
{
name: '水性笔',
quantity: 50,
expireDate: '2024-02-15',
daysLeft: 25
}
// 更多数据...
],
// 图表配置
deviceUsageOptions: {
title: { text: '设备使用频率统计' },
tooltip: {},
xAxis: {
data: ['打印机A', '打印机B', '复印机', '扫描仪']
},
yAxis: {},
series: [{
type: 'bar',
data: [120, 200, 150, 80]
}]
},
consumptionTrendOptions: {
title: { text: '耗材消耗趋势预测' },
tooltip: {},
legend: {
data: ['实际消耗', '预测消耗']
},
xAxis: {
type: 'category',
data: ['1月', '2月', '3月', '4月', '5月', '6月']
},
yAxis: {},
series: [
{
name: '实际消耗',
type: 'line',
data: [120, 132, 101, 134, 90, 230]
},
{
name: '预测消耗',
type: 'line',
data: [220, 182, 191, 234, 290, 330]
}
]
},
departmentComparisonOptions: {
title: { text: '部门耗材使用对比' },
tooltip: {},
legend: {},
xAxis: {
data: ['办公室', '研发部', '销售部', '人事部']
},
yAxis: {},
series: [{
type: 'bar',
data: [150, 230, 180, 120]
}]
}
}
},
mounted() {
this.initCharts()
},
methods: {
initCharts() {
// 初始化设备使用率图表
const deviceUsageChart = echarts.init(this.$refs.deviceUsageChart)
deviceUsageChart.setOption(this.deviceUsageOptions)
// 初始化耗材消耗趋势图表
const consumptionTrendChart = echarts.init(this.$refs.consumptionTrendChart)
consumptionTrendChart.setOption(this.consumptionTrendOptions)
// 初始化部门耗材对比图表
const departmentComparisonChart = echarts.init(this.$refs.departmentComparisonChart)
departmentComparisonChart.setOption(this.departmentComparisonOptions)
// 监听窗口大小变化
window.addEventListener('resize', this.handleResize)
},
handleResize() {
// 重新调整图表大小
const deviceUsageChart = echarts.getInstanceByDom(this.$refs.deviceUsageChart)
const consumptionTrendChart = echarts.getInstanceByDom(this.$refs.consumptionTrendChart)
const departmentComparisonChart = echarts.getInstanceByDom(this.$refs.departmentComparisonChart)
if (deviceUsageChart) deviceUsageChart.resize()
if (consumptionTrendChart) consumptionTrendChart.resize()
if (departmentComparisonChart) departmentComparisonChart.resize()
},
handleExport(row) {
// 导出功能实现
this.$Message.success('导出成功')
}
},
beforeDestroy() {
// 移除窗口大小变化监听
window.removeEventListener('resize', this.handleResize)
}
}
</script>
<style lang="less" scoped>
.dashboard-container {
.stat-cards {
margin-bottom: 20px;
.stat-item {
text-align: center;
padding: 20px;
h3 {
margin-bottom: 10px;
color: #17233d;
}
.count {
font-size: 24px;
font-weight: bold;
margin: 10px 0;
}
&.warning {
color: #ff9900;
}
&.danger {
color: #ed4014;
}
}
}
.chart-card {
margin-bottom: 20px;
.chart-container {
height: 300px;
}
}
.table-card {
margin-bottom: 20px;
}
}
</style>
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或