diff --git a/src/api/routine/gw.ts b/src/api/routine/gw.ts
index fb843f3..ff77021 100644
--- a/src/api/routine/gw.ts
+++ b/src/api/routine/gw.ts
@@ -115,3 +115,32 @@ export function fileDeleteApi(params: any) {
export function userSearchApi(params: any) {
return get('/api/user/search', params);
}
+
+/**
+ * 获取公文详情
+ */
+export function getGwDetailApi(params: any) {
+ return get('/api/gw/findById', params);
+}
+
+/**
+ * 搜索用户(用于审批人、抄送人选择)
+ */
+export function searchUsersApi(params: any) {
+ return get('/api/user/search', params);
+}
+
+/**
+ * 保存变更(审批人、抄送人变更等)
+ */
+export function saveChangesApi(params: any) {
+ return post('/api/gw/saveChanges', params);
+}
+
+/**
+ * 根据ID查询公文流程信息
+ * 通过id查询yfzc_xxts表的xxzb_id,关联yfzc_gw表获取数据
+ */
+export function getGwFlowByIdApi(id: string) {
+ return get(`/api/gw/getGwFlowById?id=${id}`);
+}
diff --git a/src/pages/base/message/index.vue b/src/pages/base/message/index.vue
index 4cce742..c697906 100644
--- a/src/pages/base/message/index.vue
+++ b/src/pages/base/message/index.vue
@@ -20,7 +20,7 @@
-
+
{{ data.xxbt }}
@@ -29,8 +29,10 @@
{{ getTimeAgo(data.xxtstime) }}
-
- {{ dbLxMap[data.xxlx].label }}
+
+
+ {{ getTagText(data.xxlx) }}
+
@@ -114,6 +116,30 @@ const goToDetail = (data: any) => {
});
}
};
+
+// 获取标签样式类
+const getTagClass = (xxlx: string) => {
+ // 根据xxlx字段值返回对应的样式类
+ const tagClassMap: Record = {
+ '通知': 'tag-notice',
+ '任务': 'tag-task',
+ '审批': 'tag-approval',
+ '提醒': 'tag-reminder',
+ '公文': 'tag-official-document', // 为公文添加特定样式
+ 'default': 'tag-default'
+ };
+
+ return tagClassMap[xxlx] || tagClassMap['default'];
+};
+
+// 获取标签显示文本
+const getTagText = (xxlx: string) => {
+ // 移除调试信息
+ // console.log('xxlx字段值:', xxlx, '类型:', typeof xxlx);
+
+ // 如果xxlx有值,直接显示;否则显示默认文本
+ return xxlx || '通知';
+};