Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-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-business-web
Commits
9ce3678a
Commit
9ce3678a
authored
Sep 19, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改67915
parent
3b7688ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
hospital-data-statistics.vue
...ics/hospital-data-statistics/hospital-data-statistics.vue
+6
-1
pet-data-statistics.vue
...ta-statistics/pet-data-statistics/pet-data-statistics.vue
+10
-2
service-statistics.vue
...data-statistics/service-statistics/service-statistics.vue
+10
-4
No files found.
src/views/data-statistics/hospital-data-statistics/hospital-data-statistics.vue
View file @
9ce3678a
...
...
@@ -529,7 +529,12 @@ export default {
this
.
queryParams
.
orderByColumn
=
column
.
prop
+
'Sort, createTime'
}
}
else
{
this
.
queryParams
.
orderByColumn
=
column
.
prop
if
(
column
.
order
===
'descending'
)
{
this
.
queryParams
.
orderByColumn
=
column
.
prop
+
' desc, createTime'
}
else
{
this
.
queryParams
.
orderByColumn
=
column
.
prop
+
', createTime'
}
// this.queryParams.orderByColumn = column.prop
}
this
.
queryParams
.
isAsc
=
column
.
order
// 动态取值排序顺序
this
.
$refs
.
hospitalList
.
clearSort
()
...
...
src/views/data-statistics/pet-data-statistics/pet-data-statistics.vue
View file @
9ce3678a
...
...
@@ -855,9 +855,17 @@ export default {
ownerSortChange
(
column
)
{
console
.
log
(
'更换排序'
,
column
)
if
(
column
.
prop
===
'name'
)
{
this
.
queryPetOwner
.
orderByColumn
=
column
.
prop
+
'Sort'
// 查询字段是表格中字段名字
if
(
column
.
order
===
'descending'
)
{
this
.
queryPetOwner
.
orderByColumn
=
column
.
prop
+
'Sort desc, registrationDate'
}
else
{
this
.
queryPetOwner
.
orderByColumn
=
column
.
prop
+
'Sort'
}
}
else
{
this
.
queryPetOwner
.
orderByColumn
=
column
.
prop
// 查询字段是表格中字段名字
if
(
column
.
order
===
'descending'
)
{
this
.
queryPetOwner
.
orderByColumn
=
column
.
prop
+
' desc, registrationDate'
}
else
{
this
.
queryPetOwner
.
orderByColumn
=
column
.
prop
+
', registrationDate'
}
}
this
.
queryPetOwner
.
isAsc
=
column
.
order
// 动态取值排序顺序
this
.
$refs
.
ownerList
.
clearSort
()
...
...
src/views/data-statistics/service-statistics/service-statistics.vue
View file @
9ce3678a
...
...
@@ -1009,11 +1009,17 @@ export default {
column
.
prop
===
'hospitalName'
||
column
.
prop
===
'petNickname'
||
column
.
prop
===
'nickname'
)
{
this
.
queryOrder
.
orderByColumn
=
column
.
prop
+
'Sort '
+
this
.
queryOrder
.
isAsc
.
replaceAll
(
'ending'
,
''
)
+
','
+
'createTime'
if
(
column
.
order
===
'descending'
)
{
this
.
queryOrder
.
orderByColumn
=
column
.
prop
+
'Sort desc, createTime'
}
else
{
this
.
queryOrder
.
orderByColumn
=
column
.
prop
+
'Sort'
}
}
else
{
this
.
queryOrder
.
orderByColumn
=
column
.
prop
// 查询字段是表格中字段名字
if
(
column
.
order
===
'descending'
)
{
this
.
queryOrder
.
orderByColumn
=
column
.
prop
+
' desc, createTime'
}
else
{
this
.
queryOrder
.
orderByColumn
=
column
.
prop
+
', createTime'
}
}
this
.
$refs
.
orderTable
.
clearSort
()
this
.
getOrderList
()
...
...
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