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 83659f0e
authored
Jun 05, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 优化审批结果页面,增加课程推送字段和标签展示逻辑
1 parent
850c29cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
2 deletions
src/views/mine/view/approvalResult.vue
src/views/mine/view/approvalResult.vue
View file @
83659f0
...
@@ -13,11 +13,28 @@
...
@@ -13,11 +13,28 @@
<template
v-if=
"isApproved"
>
<template
v-if=
"isApproved"
>
<div
v-for=
"item in approvalResultFields"
<div
v-for=
"item in approvalResultFields"
:key=
"item.label"
:key=
"item.label"
class=
"result-item"
>
class=
"result-item"
:class=
"
{ 'tag-column': item.type === 'tags' || item.type === 'courseTags' }">
<div
class=
"label"
>
<div
class=
"label"
>
{{
item
.
label
}}
{{
item
.
label
}}
</div>
</div>
<div
class=
"value"
:class=
"
{ muted: !item.value }">
<div
v-if=
"item.type === 'courseTags'"
class=
"tag-list course-tag-list"
>
<span
v-for=
"name in item.value"
:key=
"name"
class=
"name-tag"
>
{{
name
}}
</span>
<span
v-if=
"!item.value.length"
class=
"value muted"
>
{{
item
.
emptyText
}}
</span>
</div>
<div
v-else-if=
"item.type === 'tags'"
class=
"tag-list"
>
<span
v-for=
"name in toNameList(item.value)"
:key=
"name"
class=
"name-tag"
>
{{
name
}}
</span>
<span
v-if=
"!toNameList(item.value).length"
class=
"value muted"
>
{{
item
.
emptyText
}}
</span>
</div>
<div
v-else
class=
"value"
:class=
"
{ muted: !item.value }">
{{
item
.
value
||
item
.
emptyText
}}
{{
item
.
value
||
item
.
emptyText
}}
</div>
</div>
</div>
</div>
...
@@ -95,9 +112,20 @@ export default {
...
@@ -95,9 +112,20 @@ export default {
{
label
:
"带教场景"
,
value
:
this
.
detail
.
teachingSceneName
,
emptyText
:
"未选择"
},
{
label
:
"带教场景"
,
value
:
this
.
detail
.
teachingSceneName
,
emptyText
:
"未选择"
},
{
label
:
"带教时间"
,
value
:
this
.
formatToMinute
(
this
.
detail
.
teachingTime
),
emptyText
:
"未选择"
},
{
label
:
"带教时间"
,
value
:
this
.
formatToMinute
(
this
.
detail
.
teachingTime
),
emptyText
:
"未选择"
},
{
label
:
"带教方式"
,
value
:
this
.
detail
.
teachingMethodName
,
emptyText
:
"未选择"
},
{
label
:
"带教方式"
,
value
:
this
.
detail
.
teachingMethodName
,
emptyText
:
"未选择"
},
{
label
:
"推送课程"
,
value
:
this
.
courseNameList
,
type
:
"courseTags"
,
emptyText
:
"未选择"
},
{
label
:
"带教主题"
,
value
:
this
.
detail
.
teachingTopicName
,
emptyText
:
"未选择"
},
{
label
:
"带教主题"
,
value
:
this
.
detail
.
teachingTopicName
,
emptyText
:
"未选择"
},
];
];
},
},
courseNameList
()
{
if
(
Array
.
isArray
(
this
.
detail
.
bcCourseNameList
))
return
this
.
detail
.
bcCourseNameList
.
filter
(
Boolean
);
if
(
this
.
detail
.
selectedCourseNames
)
return
String
(
this
.
detail
.
selectedCourseNames
).
split
(
/
[
,,
]
/
).
map
(
item
=>
item
.
trim
()).
filter
(
Boolean
);
const
list
=
this
.
detail
.
courseList
||
this
.
detail
.
courses
||
[];
if
(
!
Array
.
isArray
(
list
))
return
[];
return
list
.
map
(
course
=>
course
.
bcCourseName
||
course
.
courseName
||
course
.
name
||
course
.
title
).
filter
(
Boolean
);
},
rejectResultField
()
{
rejectResultField
()
{
return
{
label
:
"驳回理由"
,
value
:
this
.
detail
.
rejectReason
,
emptyText
:
"-"
};
return
{
label
:
"驳回理由"
,
value
:
this
.
detail
.
rejectReason
,
emptyText
:
"-"
};
},
},
...
@@ -266,6 +294,19 @@ export default {
...
@@ -266,6 +294,19 @@ export default {
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.course-tag-list
{
flex-wrap
:
wrap
;
.name-tag
{
min-width
:
0
;
max-width
:
100%
;
box-sizing
:
border-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.name-tag
{
.name-tag
{
line-height
:
22px
;
line-height
:
22px
;
padding
:
0
9px
;
padding
:
0
9px
;
...
...
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