Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
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
海康威视
web-project
Commits
94d07195
Commit
94d07195
authored
Sep 14, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2个语音页面的排序 问题
parent
6a7941a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
VoiceCommandLocationPage.vue
src/views/AIStation/VoiceCommandLocationPage.vue
+7
-0
VoiceCommandPage.vue
src/views/AIStation/VoiceCommandPage.vue
+7
-0
No files found.
src/views/AIStation/VoiceCommandLocationPage.vue
View file @
94d07195
...
...
@@ -333,6 +333,12 @@ watch(
{
immediate
:
true
}
// 只在路径变化时触发
)
getSupplys
()
// 处理排序事件
const
handleSortChange
=
(
column
,
prop
,
order
)
=>
{
queryParams
.
value
.
sortBy
=
prop
;
queryParams
.
value
.
sortOrder
=
order
===
'ascending'
?
'asc'
:
'desc'
;
loadData
();
};
</
script
>
<
template
>
...
...
@@ -375,6 +381,7 @@ getSupplys()
height=
"calc(87vh - 170px)"
:header-cell-class-name=
"tableHeaderClass"
:row-class-name=
"tableBodyClass"
@
sort-change=
"handleSortChange"
>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
/>
<el-table-column
prop=
"stationName"
align=
"center"
label=
"换热站"
sortable
/>
...
...
src/views/AIStation/VoiceCommandPage.vue
View file @
94d07195
...
...
@@ -201,6 +201,12 @@ watch(
},
{
immediate
:
true
}
// 只在路径变化时触发
)
// 处理排序事件
const
handleSortChange
=
(
column
,
prop
,
order
)
=>
{
queryParams
.
value
.
sortBy
=
prop
;
queryParams
.
value
.
sortOrder
=
order
===
'ascending'
?
'asc'
:
'desc'
;
loadData
();
};
</
script
>
<
template
>
...
...
@@ -263,6 +269,7 @@ watch(
height=
"calc(86.5vh - 170px)"
:header-cell-class-name=
"tableHeaderClass"
:row-class-name=
"tableBodyClass"
@
sort-change=
"handleSortChange"
>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
/>
<el-table-column
prop=
"stationName"
align=
"center"
label=
"换热站"
sortable
/>
...
...
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