Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-finance-web
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
刘怀志
pet-finance-web
Commits
31fcb560
Commit
31fcb560
authored
Sep 25, 2023
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
68226 (优化)全局-所有的按钮点击触发后鼠标在移动到别的地方时,按钮被选中的样式应该恢复为初始状态
parent
3344307b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
19 deletions
+37
-19
expenditure-management.vue
...agement/expenditure-management/expenditure-management.vue
+13
-7
payment-management.vue
...cial-management/payment-management/payment-management.vue
+12
-6
revenue-management.vue
...cial-management/revenue-management/revenue-management.vue
+12
-6
No files found.
src/views/financial-management/expenditure-management/expenditure-management.vue
View file @
31fcb560
...
...
@@ -64,26 +64,29 @@
<el-form-item>
<!--选择全部-->
<el-button
id=
"all-choice"
v-hasPermi=
"['finance:expenditure:export']"
class=
"fourWordswhiteBtn"
size=
"mini"
@
click=
"checkAll"
@
click=
"checkAll
('all-choice')
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shuaixuan_icon_quanbu"
/>
选择全部
</el-button>
<!--反向选择-->
<el-button
id=
"re-choice"
v-hasPermi=
"['finance:expenditure:export']"
class=
"fourWordswhiteBtn"
size=
"mini"
@
click=
"reverseSelection"
@
click=
"reverseSelection
('re-choice')
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shuaixuan_icon_fanxiang"
/>
反向选择
</el-button>
<!--批量导出-->
<el-button
id=
"export-handle"
v-hasPermi=
"['finance:expenditure:export']"
class=
"fourWordswhiteBtn"
size=
"mini"
@
click=
"handleExport"
@
click=
"handleExport
('export-handle')
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shaixuan_icon_daochu"
/>
批量导出
</el-button>
</el-form-item>
...
...
@@ -129,7 +132,7 @@
<
/el-table-column
>
<
el
-
table
-
column
v
-
if
=
"deptLevel === '1'"
align
=
"left"
label
=
"收入金额"
prop
=
"payAmount"
show
-
overflow
-
tooltip
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
scope
.
row
.
payAmount
?
moneyFormat
(
scope
.
row
.
payAmount
)
+
' 元'
:
'-'
}}
<
/span
>
<
span
>
{{
scope
.
row
.
payAmount
?
moneyFormat
(
scope
.
row
.
payAmount
)
+
' 元'
:
'-'
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"left"
label
=
"支出金额"
min
-
width
=
"70"
prop
=
"payAmount"
show
-
overflow
-
tooltip
>
...
...
@@ -429,10 +432,11 @@ export default {
}
,
// 选择全部
checkAll
()
{
checkAll
(
allChoiceButtonId
)
{
this
.
ids
=
this
.
idsForever
// 调用手动勾选
this
.
manualCheck
()
document
.
getElementById
(
allChoiceButtonId
).
blur
()
}
,
// 手动勾选
manualCheck
()
{
...
...
@@ -449,8 +453,9 @@ export default {
}
)
}
,
// 反向选择(把永久临时集合和变化的临时集合做减法重新赋给变化的临时集合赋给)
reverseSelection
()
{
reverseSelection
(
reChoice
)
{
const
temp
=
[]
document
.
getElementById
(
reChoice
).
blur
()
this
.
idsForever
.
forEach
(
item
=>
{
if
(
!
this
.
ids
.
includes
(
item
))
{
temp
.
push
(
item
)
...
...
@@ -486,7 +491,8 @@ export default {
}
,
/** 功能按钮--导出按钮操作 */
handleExport
()
{
handleExport
(
exportButtonId
)
{
document
.
getElementById
(
exportButtonId
).
blur
()
console
.
log
(
'queryParams'
,
this
.
queryParams
)
console
.
log
(
'this.ids'
,
this
.
ids
)
if
(
this
.
ids
.
length
===
0
)
{
...
...
src/views/financial-management/payment-management/payment-management.vue
View file @
31fcb560
...
...
@@ -72,26 +72,29 @@
<el-form-item>
<!--选择全部-->
<el-button
id=
"all-choice"
v-hasPermi=
"['finance:payment:export']"
class=
"fourWordswhiteBtn"
size=
"mini"
@
click=
"checkAll"
@
click=
"checkAll
('all-choice')
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shuaixuan_icon_quanbu"
/>
选择全部
</el-button>
<!--反向选择-->
<el-button
id=
"re-choice"
v-hasPermi=
"['finance:payment:export']"
class=
"fourWordswhiteBtn"
size=
"mini"
@
click=
"reverseSelection"
@
click=
"reverseSelection
('re-choice')
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shuaixuan_icon_fanxiang"
/>
反向选择
</el-button>
<!--批量导出-->
<el-button
id=
"export-handle"
v-hasPermi=
"['finance:payment:export']"
class=
"fourWordswhiteBtn"
size=
"mini"
@
click=
"handleExport"
@
click=
"handleExport
('export-handle')
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shaixuan_icon_daochu"
/>
批量导出
</el-button>
</el-form-item>
...
...
@@ -513,10 +516,11 @@ export default {
},
// 选择全部
checkAll
()
{
checkAll
(
allChoiceButtonId
)
{
this
.
ids
=
this
.
idsForever
// 调用手动勾选
this
.
manualCheck
()
document
.
getElementById
(
allChoiceButtonId
).
blur
()
},
// 手动勾选
manualCheck
()
{
...
...
@@ -531,8 +535,9 @@ export default {
})
},
// 反向选择(把永久临时集合和变化的临时集合做减法重新赋给变化的临时集合赋给)
reverseSelection
()
{
reverseSelection
(
reChoice
)
{
const
temp
=
[]
document
.
getElementById
(
reChoice
).
blur
()
this
.
idsForever
.
forEach
(
item
=>
{
if
(
!
this
.
ids
.
includes
(
item
))
{
temp
.
push
(
item
)
...
...
@@ -568,7 +573,8 @@ export default {
},
/** 功能按钮--导出按钮操作 */
handleExport
()
{
handleExport
(
exportButtonId
)
{
document
.
getElementById
(
exportButtonId
).
blur
()
console
.
log
(
'queryParams'
,
this
.
queryParams
)
console
.
log
(
'this.ids'
,
this
.
ids
)
if
(
this
.
ids
.
length
===
0
)
{
...
...
src/views/financial-management/revenue-management/revenue-management.vue
View file @
31fcb560
...
...
@@ -64,26 +64,29 @@
<el-form-item>
<!--选择全部-->
<el-button
id=
"all-choice"
v-hasPermi=
"['finance:revenue:export']"
class=
"fourWordswhiteBtn"
size=
"mini"
@
click=
"checkAll"
@
click=
"checkAll
('all-choice')
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shuaixuan_icon_quanbu"
/>
选择全部
</el-button>
<!--反向选择-->
<el-button
id=
"re-choice"
v-hasPermi=
"['finance:revenue:export']"
class=
"fourWordswhiteBtn"
size=
"mini"
@
click=
"reverseSelection"
@
click=
"reverseSelection
('re-choice')
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shuaixuan_icon_fanxiang"
/>
反向选择
</el-button>
<!--批量导出-->
<el-button
id=
"export-handle"
v-hasPermi=
"['finance:revenue:export']"
class=
"fourWordswhiteBtn"
size=
"mini"
@
click=
"handleExport"
@
click=
"handleExport
('export-handle')
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shaixuan_icon_daochu"
/>
批量导出
</el-button>
</el-form-item>
...
...
@@ -427,10 +430,11 @@ export default {
}
,
// 选择全部
checkAll
()
{
checkAll
(
allChoiceButtonId
)
{
this
.
ids
=
this
.
idsForever
// 调用手动勾选
this
.
manualCheck
()
document
.
getElementById
(
allChoiceButtonId
).
blur
()
}
,
// 手动勾选
manualCheck
()
{
...
...
@@ -447,8 +451,9 @@ export default {
}
)
}
,
// 反向选择(把永久临时集合和变化的临时集合做减法重新赋给变化的临时集合赋给)
reverseSelection
()
{
reverseSelection
(
reChoice
)
{
const
temp
=
[]
document
.
getElementById
(
reChoice
).
blur
()
this
.
idsForever
.
forEach
(
item
=>
{
if
(
!
this
.
ids
.
includes
(
item
))
{
temp
.
push
(
item
)
...
...
@@ -484,7 +489,8 @@ export default {
}
,
/** 功能按钮--导出按钮操作 */
handleExport
()
{
handleExport
(
exportButtonId
)
{
document
.
getElementById
(
exportButtonId
).
blur
()
console
.
log
(
'queryParams'
,
this
.
queryParams
)
console
.
log
(
'this.ids'
,
this
.
ids
)
if
(
this
.
ids
.
length
===
0
)
{
...
...
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