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 6117abf5
authored
Jun 12, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 优化审批结果页面和任务中心状态映射,调整样式和逻辑
1 parent
4ed5b960
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
30 deletions
src/views/mine/view/approvalResult.vue
src/views/teamWork/teamWork/components/TaskCenterList.vue
src/views/teamWork/teamWork/constantData.js
src/views/teamWork/teamWork/specialTaskList.vue
src/views/mine/view/approvalResult.vue
View file @
6117abf
...
@@ -34,7 +34,9 @@
...
@@ -34,7 +34,9 @@
</span>
</span>
<span
v-if=
"!toNameList(item.value).length"
class=
"value muted"
>
{{
item
.
emptyText
}}
</span>
<span
v-if=
"!toNameList(item.value).length"
class=
"value muted"
>
{{
item
.
emptyText
}}
</span>
</div>
</div>
<div
v-else
class=
"value"
:class=
"
{ muted: !item.value }">
<div
v-else
class=
"value"
:class=
"
{ muted: !item.value }">
{{
item
.
value
||
item
.
emptyText
}}
{{
item
.
value
||
item
.
emptyText
}}
</div>
</div>
</div>
</div>
...
@@ -58,7 +60,7 @@
...
@@ -58,7 +60,7 @@
<div
v-for=
"item in detailFields"
<div
v-for=
"item in detailFields"
:key=
"item.label"
:key=
"item.label"
class=
"detail-item"
class=
"detail-item"
:class=
"{
column
: item.type === 'textarea', 'tag-column': item.type === 'tags' }"
>
:class=
"{
'column'
: item.type === 'textarea', 'tag-column': item.type === 'tags' }"
>
<div
class=
"label"
>
<div
class=
"label"
>
{{ item.label }}
{{ item.label }}
</div>
</div>
...
@@ -91,6 +93,7 @@ export default {
...
@@ -91,6 +93,7 @@ export default {
userInfo
:
{},
userInfo
:
{},
id
:
""
,
id
:
""
,
detail
:
{},
detail
:
{},
isShow
:
false
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -98,7 +101,7 @@ export default {
...
@@ -98,7 +101,7 @@ export default {
return
Number
(
this
.
detail
.
approvalStatus
||
this
.
$route
.
query
.
status
);
return
Number
(
this
.
detail
.
approvalStatus
||
this
.
$route
.
query
.
status
);
},
},
isApproved
()
{
isApproved
()
{
return
this
.
approvalStatus
===
1
;
return
this
.
approvalStatus
===
1
&&
this
.
isShow
;
},
},
statusText
()
{
statusText
()
{
return
this
.
isApproved
?
"通过"
:
"驳回"
;
return
this
.
isApproved
?
"通过"
:
"驳回"
;
...
@@ -107,24 +110,21 @@ export default {
...
@@ -107,24 +110,21 @@ export default {
return
this
.
isApproved
?
"approved"
:
"rejected"
;
return
this
.
isApproved
?
"approved"
:
"rejected"
;
},
},
approvalResultFields
()
{
approvalResultFields
()
{
return
[
const
fields
=
[
{
label
:
"指定带教督导"
,
value
:
this
.
detail
.
assignedSupervisorName
,
emptyText
:
"-"
},
{
label
:
"指定带教督导"
,
value
:
this
.
detail
.
assignedSupervisorName
,
emptyText
:
"-"
},
{
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
:
"未选择"
},
];
];
console
.
log
(
this
.
courseNameList
,
"courseNameList---"
);
if
(
this
.
courseNameList
.
length
)
{
fields
.
splice
(
4
,
0
,
{
label
:
"推送课程"
,
value
:
this
.
courseNameList
,
type
:
"courseTags"
,
emptyText
:
"未选择"
});
}
return
fields
;
},
},
courseNameList
()
{
courseNameList
()
{
if
(
Array
.
isArray
(
this
.
detail
.
bcCourseNameList
))
return
(
this
.
detail
.
bcCourseNameList
||
[]).
filter
(
Boolean
);
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
:
"-"
};
...
@@ -154,6 +154,7 @@ export default {
...
@@ -154,6 +154,7 @@ export default {
const
params
=
{
id
:
this
.
id
,
phone
:
this
.
userInfo
.
phone
};
const
params
=
{
id
:
this
.
id
,
phone
:
this
.
userInfo
.
phone
};
const
res
=
await
api
.
getApprovalDetail
(
params
);
const
res
=
await
api
.
getApprovalDetail
(
params
);
this
.
detail
=
res
.
data
||
res
||
{};
this
.
detail
=
res
.
data
||
res
||
{};
this
.
isShow
=
true
;
}
finally
{
}
finally
{
util
.
hideLoading
();
util
.
hideLoading
();
}
}
...
...
src/views/teamWork/teamWork/components/TaskCenterList.vue
View file @
6117abf
...
@@ -106,7 +106,7 @@ export default {
...
@@ -106,7 +106,7 @@ export default {
},
},
methods
:
{
methods
:
{
getCardStatus
(
task
)
{
getCardStatus
(
task
)
{
return
{
name
:
task
.
statusName
||
"-
"
};
return
Object
.
values
(
constantData
.
STATUS_MAP
).
find
(
item
=>
item
.
taskListKey
===
task
.
status
)
||
{
name
:
"未知"
,
color
:
"#999999"
,
background
:
"#f5f5f5
"
};
},
},
canViewDetail
(
task
)
{
canViewDetail
(
task
)
{
return
task
.
statusName
===
"已完成"
;
return
task
.
statusName
===
"已完成"
;
...
...
src/views/teamWork/teamWork/constantData.js
View file @
6117abf
...
@@ -45,11 +45,14 @@ export const MONTH_STATUS_MAP = {
...
@@ -45,11 +45,14 @@ export const MONTH_STATUS_MAP = {
1
:
{
text
:
"已提交"
,
color
:
"#35C376"
,
fontSize
:
"14px"
},
1
:
{
text
:
"已提交"
,
color
:
"#35C376"
,
fontSize
:
"14px"
},
};
};
// 任务状态映射 (兼容其他可能用到的状态)
/**
* 任务状态映射 (兼容其他可能用到的状态)
* taskListKey - 专项任务列表(任务中心)对应的key值
*/
export
const
STATUS_MAP
=
{
export
const
STATUS_MAP
=
{
0
:
{
name
:
"待完成"
,
color
:
"#2C66F7"
,
background
:
"#2c66f71a"
},
0
:
{
name
:
"待完成"
,
color
:
"#2C66F7"
,
background
:
"#2c66f71a"
,
taskListKey
:
"UNFINISHED"
},
1
:
{
name
:
"进行中"
,
color
:
"#FF9D0A"
,
background
:
"#ff9d0a1a"
},
1
:
{
name
:
"进行中"
,
color
:
"#FF9D0A"
,
background
:
"#ff9d0a1a"
},
2
:
{
name
:
"已完成"
,
color
:
"#35C376"
,
background
:
"#35c3761a"
},
2
:
{
name
:
"已完成"
,
color
:
"#35C376"
,
background
:
"#35c3761a"
,
taskListKey
:
"FINISHED"
},
};
};
// 统一定义不同 Tab 下的列表字段配置
// 统一定义不同 Tab 下的列表字段配置
...
...
src/views/teamWork/teamWork/specialTaskList.vue
View file @
6117abf
...
@@ -5,14 +5,19 @@
...
@@ -5,14 +5,19 @@
共
{{
currentTotal
}}
条数据
共
{{
currentTotal
}}
条数据
</div>
</div>
<div
class=
"center-switch"
>
<div
class=
"center-switch"
>
<button
v-for=
"item in centerTabs"
<template
v-for=
"(item, index) in centerTabs"
>
:key=
"item.key"
<button
:key=
"item.key"
class=
"switch-btn"
class=
"switch-btn"
type=
"button"
type=
"button"
:class=
"
{ active: activeCenter === item.key }"
:class=
"
{ active: activeCenter === item.key }"
@click="activeCenter = item.key">
@click="activeCenter = item.key">
{{
item
.
name
}}
{{
item
.
name
}}
</button>
</button>
<van-icon
v-if=
"index === 0"
:key=
"item.key"
class=
"icon"
:name=
"`$
{imgBaseUrl}icon-lr-arrow.png`" />
</
template
>
</div>
</div>
</div>
</div>
...
@@ -31,6 +36,7 @@
...
@@ -31,6 +36,7 @@
import
reportTrackFunMixin
from
"@/mixins/reportTrackFunMixin"
;
import
reportTrackFunMixin
from
"@/mixins/reportTrackFunMixin"
;
import
StrategyTaskList
from
"./components/StrategyTaskList.vue"
;
import
StrategyTaskList
from
"./components/StrategyTaskList.vue"
;
import
TaskCenterList
from
"./components/TaskCenterList.vue"
;
import
TaskCenterList
from
"./components/TaskCenterList.vue"
;
import
constantData
from
"./constantData.js"
;
export
default
{
export
default
{
name
:
"SpecialTaskList"
,
name
:
"SpecialTaskList"
,
...
@@ -41,6 +47,7 @@ export default {
...
@@ -41,6 +47,7 @@ export default {
mixins
:
[
reportTrackFunMixin
],
mixins
:
[
reportTrackFunMixin
],
data
()
{
data
()
{
return
{
return
{
imgBaseUrl
:
constantData
.
BASE_IMG_URL
,
title
:
"专项任务列表"
,
title
:
"专项任务列表"
,
activeCenter
:
"task"
,
activeCenter
:
"task"
,
centerTabs
:
[
centerTabs
:
[
...
@@ -106,19 +113,19 @@ export default {
...
@@ -106,19 +113,19 @@ export default {
.center-switch
{
.center-switch
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
padding
:
2
px
;
padding
:
4
px
;
border-radius
:
16
px
;
border-radius
:
8
px
;
background
:
#ffffff
;
background
:
#ffffff
;
}
}
.switch-btn
{
.switch-btn
{
height
:
26px
;
height
:
26px
;
padding
:
0
10
px
;
padding
:
2px
4
px
;
border
:
0
;
border
:
0
;
border-radius
:
1
4px
;
border-radius
:
4px
;
background
:
transparent
;
background
:
transparent
;
color
:
#00000099
;
color
:
#00000099
;
font-size
:
1
2
px
;
font-size
:
1
3
px
;
&.active
{
&.active
{
background
:
#f0f4ff
;
background
:
#f0f4ff
;
...
@@ -126,6 +133,9 @@ export default {
...
@@ -126,6 +133,9 @@ export default {
font-weight
:
500
;
font-weight
:
500
;
}
}
}
}
.icon
{
padding
:
0
12px
;
}
}
}
.list-container
{
.list-container
{
...
...
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