明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
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
Administrator
jt_front
Commits
646e62af
Commit
646e62af
authored
Apr 01, 2026
by
suesueyue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c91ea196
Pipeline
#109131
passed with stage
in 21 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
2 deletions
+68
-2
manage.css
src/styles/manage.css
+4
-0
manage.less
src/styles/manage.less
+4
-0
annualAdd.vue
src/views/everydayPage/annualAdd.vue
+60
-2
No files found.
src/styles/manage.css
View file @
646e62af
...
@@ -8,6 +8,10 @@
...
@@ -8,6 +8,10 @@
.is-horizontal
{
.is-horizontal
{
display
:
block
!important
;
display
:
block
!important
;
}
}
.el-scrollbar__thumb
{
background
:
#467bad
!important
;
opacity
:
0.9
!important
;
}
.system-manage-header
{
.system-manage-header
{
background
:
rgba
(
255
,
255
,
255
,
0.9
);
background
:
rgba
(
255
,
255
,
255
,
0.9
);
border-radius
:
8px
;
border-radius
:
8px
;
...
...
src/styles/manage.less
View file @
646e62af
...
@@ -9,6 +9,10 @@
...
@@ -9,6 +9,10 @@
.is-horizontal {
.is-horizontal {
display: block !important;
display: block !important;
}
}
.el-scrollbar__thumb{
background:#467bad !important;
opacity: 0.9 !important;
}
.system-manage-header {
.system-manage-header {
background: rgba(255, 255, 255, 0.9);
background: rgba(255, 255, 255, 0.9);
border-radius: 8px;
border-radius: 8px;
...
...
src/views/everydayPage/annualAdd.vue
View file @
646e62af
...
@@ -514,6 +514,8 @@
...
@@ -514,6 +514,8 @@
style=
"width: 100%"
style=
"width: 100%"
border
border
:cell-style=
"tableCellStyle"
:cell-style=
"tableCellStyle"
:header-cell-style=
"tableHeaderCellStyle"
:row-class-name=
"tableRowClassName"
row-key=
"serialNumber"
row-key=
"serialNumber"
>
>
<!-- 序号列 -->
<!-- 序号列 -->
...
@@ -1609,8 +1611,35 @@ const saveClick = () => {
...
@@ -1609,8 +1611,35 @@ const saveClick = () => {
// ========== 辅助方法(通用) ==========
// ========== 辅助方法(通用) ==========
const
backClick
=
()
=>
router
.
back
(
-
1
);
const
backClick
=
()
=>
router
.
back
(
-
1
);
const
tableCellStyle
=
({
row
})
=>
row
.
isTotal
?
{
background
:
"#f5f7fa"
,
fontWeight
:
"bold"
}
:
{};
// 表格单元格样式
const
tableCellStyle
=
({
row
,
columnIndex
})
=>
{
const
baseStyle
=
{
border
:
"1px solid #ebeef5"
};
if
(
row
.
isTotal
)
{
return
{
...
baseStyle
,
background
:
"#f5f7fa"
,
fontWeight
:
"bold"
};
}
// 左边三列(序号、指标项、合计)使用 #f7faff 背景色
if
(
columnIndex
===
0
||
columnIndex
===
1
||
columnIndex
===
2
)
{
return
{
...
baseStyle
,
background
:
"#f7faff"
};
}
return
baseStyle
;
};
// 表头样式
const
tableHeaderCellStyle
=
()
=>
({
background
:
"#f0f2f5"
,
color
:
"#333"
,
fontWeight
:
"600"
,
textAlign
:
"center"
});
// 行类名(实现斑马纹效果)
const
tableRowClassName
=
({
rowIndex
})
=>
{
return
rowIndex
%
2
===
0
?
"even-row"
:
"odd-row"
;
};
// ========== 页面初始化:新增/编辑分离,严格保障执行顺序 ==========
// ========== 页面初始化:新增/编辑分离,严格保障执行顺序 ==========
onMounted
(()
=>
{
onMounted
(()
=>
{
...
@@ -1647,4 +1676,33 @@ onMounted(() => {
...
@@ -1647,4 +1676,33 @@ onMounted(() => {
}
}
}
}
}
}
// 可研/决策信息表格样式
:deep(.el-table) {
// 偶数行样式
.even-row {
background-color: #ffffff;
}
// 奇数行样式
.odd-row {
background-color: #fafafa;
}
// 鼠标悬停效果
.el-table__body tr:hover > td {
background-color: #e8f4ff !important;
}
// 表格边框颜色
.el-table__body-wrapper,
.el-table__header-wrapper {
border: 1px solid #ebeef5;
}
// 单元格样式
td {
border-color: #ebeef5;
}
}
</
style
>
</
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