提案人: {{ currentProposal.createByName }}
-
提案类型: {{ currentProposal.regulationType }}
+
提案类型: {{ getRegulationTypeName(currentProposal.regulationType) }}
适用范围: {{ currentProposal.scope }}
级别: {{ getLevelText(currentProposal.level) }}
创建时间: {{ formatDate(currentProposal.createTime) }}
@@ -326,7 +331,7 @@ defineOptions({ name: 'RegulationProposal' })
const columns = [
{ title: '提案标题', dataIndex: 'title', key: 'title', width: 220 },
{ title: '提案人', dataIndex: 'createByName', key: 'createByName', width: 130 },
- { title: '提案类型', dataIndex: 'regulationType', key: 'regulationType', width: 130 },
+ { title: '提案类型', dataIndex: 'regulationType', key: 'regulationType', slotName: 'regulationType', width: 130 },
{ title: '状态', dataIndex: 'status', key: 'status', slotName: 'status', width: 110 },
{ title: '级别', dataIndex: 'level', key: 'level', slotName: 'level', width: 90 },
{ title: '创建时间', dataIndex: 'createTime', key: 'createTime', width: 200 },
@@ -447,6 +452,12 @@ const getLevelText = (level: RegulationLevel) => {
return texts[level] || '中'
}
+// 根据制度类型ID获取类型名称
+const getRegulationTypeName = (typeId: string) => {
+ const type = regulationTypes.value.find(t => t.typeId === typeId)
+ return type ? type.typeName : typeId
+}
+
// 获取制度类型列表
const getRegulationTypes = async () => {
try {
@@ -606,6 +617,7 @@ const handleSubmit = async () => {
scope: formData.scope,
level: formData.level,
remark: formData.remark,
+ createBy: currentUser.value,
createByName: currentUser.value
}
console.log('新增提案数据:', createData)
diff --git a/src/views/regulation/repository.vue b/src/views/regulation/repository.vue
index b3ad144..a2b7723 100644
--- a/src/views/regulation/repository.vue
+++ b/src/views/regulation/repository.vue
@@ -63,6 +63,10 @@
共找到
{{ pagination.total }} 条记录
+
+ {{ getRegulationTypeName(record.regulationType) }}
+
+
{{ record.confirmStatus === 'CONFIRMED' ? '已确认' : '待确认' }}
@@ -170,7 +174,7 @@