Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
0a2e3555
Commit
0a2e3555
authored
Aug 27, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化应用数据排序
parent
fcc2150a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
base-manager-ui/admin/src/pages/basicset/appmarket/components/DataUpdate.vue
...in/src/pages/basicset/appmarket/components/DataUpdate.vue
+22
-2
No files found.
base-manager-ui/admin/src/pages/basicset/appmarket/components/DataUpdate.vue
View file @
0a2e3555
...
...
@@ -162,6 +162,7 @@ export default {
searchTemplate
:
[],
//关联搜索字段模板列表
selectedRowKeys
:
[],
orConditionList
:
[],
sortSearch
:
[],
// 排序搜索条件
};
},
computed
:
{
...
...
@@ -233,6 +234,16 @@ export default {
return
a
.
fieldOrderNo
-
b
.
fieldOrderNo
;
});
this
.
appTemplate
=
arr
;
this
.
sortSearch
=
arr
.
filter
((
v
)
=>
{
return
v
.
fieldCode
==
"
top
"
||
v
.
fieldCode
==
"
sort
"
;
})
.
map
((
v
)
=>
{
return
{
fieldCode
:
v
.
fieldCode
,
fieldValue
:
"
%%
"
,
};
});
this
.
searchTemplate
=
data
.
filter
((
v
)
=>
{
return
v
.
defaultValue
==
1
;
});
...
...
@@ -244,12 +255,21 @@ export default {
// 获取数据列表
async
getDatasetList
()
{
this
.
loading
=
true
;
let
orConditionList
=
[
{
fieldCode
:
this
.
fieldCode
,
fieldValue
:
`%
${
this
.
searchVal
}
%`
,
},
...
this
.
sortSearch
,
];
let
res
=
await
getDatasetList
({
page
:
this
.
current
,
size
:
this
.
size
,
appId
:
this
.
appId
,
fieldCode
:
this
.
fieldCode
,
fieldValue
:
`%
${
this
.
searchVal
}
%`
,
orConditionList
,
// fieldCode: this.fieldCode,
// fieldValue: `%${this.searchVal}%`,
// orConditionList: [
// {
// fieldCode: this.fieldCode,
...
...
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