Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
supervise-wecom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit affc95a6
authored
Jun 05, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 优化审批结果页面,使用动态字段展示审批信息
1 parent
6c753560
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
39 deletions
src/views/mine/view/approvalResult.vue
src/views/mine/view/approvalSubmit.vue
src/views/mine/view/approvalResult.vue
View file @
affc95a
...
...
@@ -11,54 +11,24 @@
</div>
<template
v-if=
"isApproved"
>
<div
class=
"result-item"
>
<div
v-for=
"item in approvalResultFields"
:key=
"item.label"
class=
"result-item"
>
<div
class=
"label"
>
指定带教督导
{{
item
.
label
}}
</div>
<div
class=
"value"
>
{{
detail
.
assignedSupervisorName
||
'-'
}}
</div>
</div>
<div
class=
"result-item"
>
<div
class=
"label"
>
带教场景
</div>
<div
class=
"value"
>
{{
detail
.
teachingSceneName
||
'未选择'
}}
</div>
</div>
<div
class=
"result-item"
>
<div
class=
"label"
>
带教时间
</div>
<div
class=
"value"
>
{{
detail
.
teachingTime
||
'未选择'
}}
</div>
</div>
<div
class=
"result-item"
>
<div
class=
"label"
>
带教方式
</div>
<div
class=
"value"
>
{{
detail
.
teachingMethodName
||
'未选择'
}}
</div>
</div>
<div
class=
"result-item"
>
<div
class=
"label"
>
带教主题
</div>
<div
class=
"value"
>
{{
detail
.
teachingTopicName
||
'未选择'
}}
<div
class=
"value"
:class=
"
{ muted: !item.value }">
{{
item
.
value
||
item
.
emptyText
}}
</div>
</div>
</
template
>
<div
v-else
class=
"reject-reason"
>
<div
class=
"label"
>
驳回理由
{{ rejectResultField.label }}
</div>
<div
class=
"reason-text"
>
{{
detail.rejectReason || '-'
}}
{{
rejectResultField.value || rejectResultField.emptyText
}}
</div>
</div>
</div>
...
...
@@ -94,6 +64,7 @@
</template>
<
script
>
import
dayjs
from
"dayjs"
;
import
api
from
"@/api/mine"
;
import
util
from
"@/utils/util"
;
...
...
@@ -119,6 +90,18 @@ export default {
statusClass
()
{
return
this
.
isApproved
?
"approved"
:
"rejected"
;
},
approvalResultFields
()
{
return
[
{
label
:
"指定带教督导"
,
value
:
this
.
detail
.
assignedSupervisorName
,
emptyText
:
"-"
},
{
label
:
"带教场景"
,
value
:
this
.
detail
.
teachingSceneName
,
emptyText
:
"未选择"
},
{
label
:
"带教时间"
,
value
:
this
.
formatToMinute
(
this
.
detail
.
teachingTime
),
emptyText
:
"未选择"
},
{
label
:
"带教方式"
,
value
:
this
.
detail
.
teachingMethodName
,
emptyText
:
"未选择"
},
{
label
:
"带教主题"
,
value
:
this
.
detail
.
teachingTopicName
,
emptyText
:
"未选择"
},
];
},
rejectResultField
()
{
return
{
label
:
"驳回理由"
,
value
:
this
.
detail
.
rejectReason
,
emptyText
:
"-"
};
},
detailFields
()
{
return
[
{
label
:
"任务类型"
,
value
:
"专项带教"
},
...
...
@@ -155,6 +138,12 @@ export default {
return
[];
return
String
(
value
).
split
(
/
[
,,
]
/
).
map
(
item
=>
item
.
trim
()).
filter
(
Boolean
);
},
formatToMinute
(
value
)
{
if
(
!
value
)
return
""
;
const
date
=
dayjs
(
value
);
return
date
.
isValid
()
?
date
.
format
(
"YYYY-MM-DD HH:mm"
)
:
String
(
value
).
slice
(
0
,
16
);
},
},
};
</
script
>
...
...
src/views/mine/view/approvalSubmit.vue
View file @
affc95a
...
...
@@ -47,7 +47,6 @@
<div
class=
"bottom-bar"
>
<button
class=
"submit-btn"
type=
"button"
:class=
"{ disabled: submitDisabled }"
@
click=
"submit"
>
提交
</button>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment