feat: 删除 admin 会议全览菜单 + 死页面 admin/Meetings.vue
admin 账号不关注会议, 移除 admin 视角的会议入口。 清理: - router L29: 删除 admin-meetings 路由 - AdminLayout L78: 删除「会议全览」菜单项 - 删除 ry-vue3/src/views/admin/Meetings.vue (~95 行死页面, 同 admin/Projects.vue 一样是早期未完成桩) Calendar icon 仍由 leader/manager/doctor/executor/sponsor 角色使用, 保留 import。
This commit is contained in:
@@ -1,88 +0,0 @@
|
||||
<template>
|
||||
<div class="page-card admin-meetings">
|
||||
<div class="breadcrumb">首页 / 会议全览</div>
|
||||
|
||||
<!-- ========== 筛选区 (与 People.vue 风格一致) ========== -->
|
||||
<el-form inline :model="q" class="filter-form">
|
||||
<el-form-item label="会议主题"><el-input v-model="q.title" placeholder="输入会议主题" clearable /></el-form-item>
|
||||
<el-form-item label="状态">
|
||||
<el-select v-model="q.status" placeholder="全部状态" clearable>
|
||||
<el-option v-for="s in statusOptions" :key="s.value" :label="s.label" :value="s.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="load">查询</el-button>
|
||||
<el-button @click="reset">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- ========== 表格 (与 People.vue 风格一致, 无 page-card 包裹) ========== -->
|
||||
<el-table :data="rows" border stripe v-loading="loading">
|
||||
<el-table-column prop="title" label="会议主题" min-width="200" show-overflow-tooltip />
|
||||
<el-table-column prop="status" label="状态" width="100">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="STATUS_TAG[row.status] || 'info'">{{ STATUS_LABEL[row.status] || row.status }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="startTime" label="开始时间" width="170" />
|
||||
<el-table-column prop="endTime" label="结束时间" width="170" />
|
||||
<el-table-column prop="createTime" label="创建时间" width="170" />
|
||||
</el-table>
|
||||
|
||||
<div class="pager">
|
||||
<el-pagination
|
||||
v-model:current-page="q.pageNum"
|
||||
v-model:page-size="q.pageSize"
|
||||
:total="total"
|
||||
:page-sizes="[10, 20, 50]"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@current-change="load"
|
||||
@size-change="load"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive, onMounted } from 'vue'
|
||||
import { bizList } from '@/api/public'
|
||||
|
||||
const STATUS_LABEL = {
|
||||
PENDING: '待执行', EXECUTING: '执行中', COMPLETED: '已执行', CANCELLED: '已取消'
|
||||
}
|
||||
const STATUS_TAG = {
|
||||
PENDING: 'warning', EXECUTING: 'primary', COMPLETED: 'success', CANCELLED: 'info'
|
||||
}
|
||||
const statusOptions = Object.entries(STATUS_LABEL).map(([value, label]) => ({ value, label }))
|
||||
|
||||
const q = reactive({ title: '', status: '', pageNum: 1, pageSize: 20 })
|
||||
const rows = ref([])
|
||||
const total = ref(0)
|
||||
const loading = ref(false)
|
||||
|
||||
async function load() {
|
||||
loading.value = true
|
||||
try {
|
||||
const r = await bizList('meeting', { ...q })
|
||||
rows.value = r.rows || (r.data && r.data.rows) || []
|
||||
total.value = r.total || (r.data && r.data.total) || 0
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function reset() {
|
||||
Object.assign(q, { title: '', status: '', pageNum: 1 })
|
||||
load()
|
||||
}
|
||||
|
||||
onMounted(load)
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 整页面板 (与 People.vue 风格一致) */
|
||||
.admin-meetings { padding: 16px; }
|
||||
.breadcrumb { font-size: 13px; color: #8c8c8c; margin-bottom: 12px; }
|
||||
.filter-form { margin-bottom: 12px; }
|
||||
.pager { display: flex; justify-content: flex-end; margin-top: 12px; }
|
||||
</style>
|
||||
Reference in New Issue
Block a user