feat: 会议提交剩余时间+解冻 + 会务/劳务材料批量下载 + 多角色人员/账号模块完善
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
<span class="form-value">{{ snap.projectName }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="会议名称">
|
||||
<span class="form-value">{{ form.meetingName }}</span>
|
||||
<el-input v-if="canEditName" v-model="form.meetingName" placeholder="请输入会议名称" />
|
||||
<span v-else class="form-value">{{ form.meetingName }}</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="支持单位">
|
||||
<span class="form-value">{{ snap.sponsorOrgName }}</span>
|
||||
@@ -58,9 +59,11 @@ import { ElMessage } from 'element-plus'
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
|
||||
// ========== 角色感知 (admin/manager 共用此新建页, 按 URL 第 1 段识别) ==========
|
||||
const roleSegment = computed(() => route.path.split('/')[1]) // 'admin' | 'manager'
|
||||
// ========== 角色感知 (admin/manager/executor 共用此新建页, 按 URL 第 1 段识别) ==========
|
||||
const roleSegment = computed(() => route.path.split('/')[1]) // 'admin' | 'manager' | 'executor'
|
||||
const isAdmin = computed(() => roleSegment.value === 'admin')
|
||||
// 会议名称可编辑: 仅 admin/manager (executor 保持只读, 自动用项目名)
|
||||
const canEditName = computed(() => roleSegment.value === 'admin' || roleSegment.value === 'manager')
|
||||
const meetingsBase = computed(() => `/${roleSegment.value}/meetings`)
|
||||
const projectsBase = computed(() => `/${roleSegment.value}/projects`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user