feat: 会议提交剩余时间+解冻 + 会务/劳务材料批量下载 + 多角色人员/账号模块完善
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -47,9 +47,9 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="角色">
|
||||
<!-- 与 sponsor/PersonDetail 一致: el-tag 展示 -->
|
||||
<el-tag :type="form.role === 'admin' ? 'warning' : 'primary'" disable-transitions>
|
||||
{{ translatePersonRole(form.role) }}
|
||||
<!-- 角色与账号类型合并: 由 account_type + unitType 推导 (MAIN=管理员, SUB=执行人员) -->
|
||||
<el-tag :type="accountTypeRoleTagType(form.accountType)" disable-transitions>
|
||||
{{ accountTypeRoleLabel(form.unitType, form.accountType) || '—' }}
|
||||
</el-tag>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -70,7 +70,7 @@ import { reactive, ref, onMounted } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { bizGet } from '@/api/public'
|
||||
import { translatePersonRole } from '@/utils/roleMap'
|
||||
import { accountTypeRoleLabel, accountTypeRoleTagType } from '@/utils/roleMap'
|
||||
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
@@ -84,7 +84,8 @@ const form = reactive({
|
||||
orgName: '',
|
||||
department: '',
|
||||
position: '',
|
||||
role: '',
|
||||
unitType: '',
|
||||
accountType: '',
|
||||
})
|
||||
|
||||
async function loadDetail() {
|
||||
@@ -99,7 +100,8 @@ async function loadDetail() {
|
||||
orgName: d.orgName || '',
|
||||
department: d.department || '',
|
||||
position: d.position || '',
|
||||
role: d.role || '',
|
||||
unitType: d.unitType || '',
|
||||
accountType: d.accountType || '',
|
||||
})
|
||||
} else {
|
||||
ElMessage.error(res?.msg || '加载失败')
|
||||
|
||||
Reference in New Issue
Block a user