Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
qr-consistency-vue3
Commits
a45fdc77
Commit
a45fdc77
authored
Apr 23, 2025
by
高滢
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
d32ea405
ae077235
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
4 deletions
+38
-4
btn.scss
src/assets/styles/btn.scss
+16
-0
index.vue
...lPlan/CCAPControlPlan/CCAPControlPlanManagement/index.vue
+22
-4
No files found.
src/assets/styles/btn.scss
View file @
a45fdc77
...
...
@@ -59,6 +59,22 @@
color
:
#0148d6
;
}
}
.status-progress
{
font-size
:
14px
;
color
:
#EE9B3A
;
}
.status-completed
{
font-size
:
14px
;
color
:
#0154FB
;
}
.status-finalized
{
font-size
:
14px
;
color
:
#49C92B
;
}
.status-cancelled
{
font-size
:
14px
;
color
:
#9099AB
;
}
.blue-btn
{
@include
colorBtn
(
$blue
);
}
...
...
src/views/controlPlan/CCAPControlPlan/CCAPControlPlanManagement/index.vue
View file @
a45fdc77
...
...
@@ -228,7 +228,7 @@
</div>
</
template
>
<
template
#
default=
"scope"
>
<span
>
{{
changeControlPlanStatus
(
scope
.
row
.
controlPlanStatus
)
}}
</span>
<span
:class=
"getStatusClass(changeControlPlanStatus(scope.row.controlPlanStatus))"
>
{{
changeControlPlanStatus
(
scope
.
row
.
controlPlanStatus
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
class-name=
"small-padding fixed-width"
>
...
...
@@ -281,7 +281,6 @@ const businessList = ref([]);
const
tableList
=
ref
([]);
const
controlPlanStatusOptions
=
ref
([]);
function
getAllBusinessUnit
()
{
getAllBusinessUnitName
().
then
(
res
=>
{
businessList
.
value
=
res
.
data
...
...
@@ -307,6 +306,21 @@ function changeControlPlanStatus(before) {
let
item
=
controlPlanStatusOptions
.
value
.
find
(
item
=>
item
.
dictValue
===
before
)
return
item
.
dictLabel
}
// 根据转换后的状态文字返回对应的类名
function
getStatusClass
(
statusText
)
{
switch
(
statusText
)
{
case
'编制中'
:
return
'status-progress'
;
case
'编制完成'
:
return
'status-completed'
;
case
'已最终确认'
:
return
'status-finalized'
;
case
'已撤销'
:
return
'status-cancelled'
;
default
:
return
''
;
}
}
/** 搜索按钮操作 */
function
handleQuery
()
{
...
...
@@ -335,8 +349,11 @@ function toHistory() {
proxy
.
$router
.
push
({
path
:
'/control/CCAPControlPlan/history'
});
}
getList
()
getAllBusinessUnit
()
onMounted
(()
=>
{
getList
()
getAllBusinessUnit
()
})
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
@@ -354,4 +371,5 @@ getAllBusinessUnit()
:deep
(
.el-pagination.is-background
.el-pager
li
.is-active
)
{
background-color
:
#0154FB
;
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment