变更详情页面完成

This commit is contained in:
2026-09-16 15:55:40 +08:00
parent c35f7252d1
commit eff7f4498d
5 changed files with 450 additions and 809 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ const local: App.I18n.Schema = {
404: '页面不存在', 404: '页面不存在',
500: '服务器错误', 500: '服务器错误',
details: '详情', details: '详情',
details_closedoc: '资料关闭详情', details_closedoc: '资料关闭',
details_index: '变更详情', details_index: '变更详情',
changepassword: '修改密码', changepassword: '修改密码',
home: '首页', home: '首页',
+2 -1
View File
@@ -108,7 +108,8 @@ export const generatedRoutes: GeneratedRoute[] = [
path: '/details/closedoc', path: '/details/closedoc',
component: 'view.details_closedoc', component: 'view.details_closedoc',
meta: { meta: {
title: '资料关闭详情', // activeMenu: 'my_mytask',
title: '资料关闭',
i18nKey: 'route.details_closedoc', i18nKey: 'route.details_closedoc',
constant: true, constant: true,
hideInMenu: true hideInMenu: true
File diff suppressed because it is too large Load Diff
@@ -711,8 +711,8 @@ defineExpose({form, questions, applyAiResult, generateLevel: useAiLevel})
<span class="inline-flex items-center gap-1 rounded-full border border-violet-200 bg-violet-100 px-2 py-0.5 text-xs font-medium text-violet-700"> <span class="inline-flex items-center gap-1 rounded-full border border-violet-200 bg-violet-100 px-2 py-0.5 text-xs font-medium text-violet-700">
AI 生成 · 需人工确认 AI 生成 · 需人工确认
</span> </span>
<NTag type="info" size="small">判定{{ typeAi?.type || '工艺' }}</NTag> <NTag v-if="typeAi?.type" type="info" size="small">判定{{ typeAi?.type }}</NTag>
<NTag size="small">置信度{{ typeAi ? `${Math.round(typeAi.confidence * 100)}%` : '高' }}</NTag> <NTag v-if="typeAi" size="small">置信度{{ `${Math.round(typeAi.confidence * 100)}%` }}</NTag>
</div> </div>
<div v-if="typeAi" class="space-y-3 text-sm leading-relaxed text-slate-700"> <div v-if="typeAi" class="space-y-3 text-sm leading-relaxed text-slate-700">
<p><b>判定结论</b>{{ typeAi.conclusion }}</p> <p><b>判定结论</b>{{ typeAi.conclusion }}</p>
+2 -1
View File
@@ -90,8 +90,9 @@ const opts = computed<Opt[]>(() => {
// 打开详情、修改重报 // 打开详情、修改重报
const openDetail = (c: any,type:string = '') => { const openDetail = (c: any,type:string = '') => {
console.log(c)
if(type==='detail'){ if(type==='detail'){
routerPushByKey("details_index",{ query: { id: c.change_id.toString() } }); routerPushByKey("details_index",{ query: { id: c.change_id.toString(),status:c.status.toString() || '' } });
} }
if(type==='edit'){ if(type==='edit'){
routerPushByKey("my_initiatechange",{ query: { id: c.change_id.toString() } }); routerPushByKey("my_initiatechange",{ query: { id: c.change_id.toString() } });