Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
karname-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
Reza Sahebgharan
karname-ui
Commits
35b463a8
Commit
35b463a8
authored
Feb 17, 2020
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(fix limit bug): fix limit bug
parent
a14fad1b
Pipeline
#1059
passed with stage
in 44 minutes and 36 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
24 deletions
+12
-24
RegisterRoute.vue
client/components/RegisterRoute.vue
+12
-24
No files found.
client/components/RegisterRoute.vue
View file @
35b463a8
...
...
@@ -414,15 +414,13 @@ export default {
},
searchServerSide
()
{
try
{
this
.
limit
=
40
;
this
.
query
=
JSON
.
parse
(
this
.
queryText
);
this
.
limit
=
this
.
count
+
5
;
// this.limit = 40;
}
catch
(
e
)
{
this
.
alertText
=
this
.
$t
(
"RegisterRoute.jsonParseError"
);
this
.
alertSnackbar
=
true
;
this
.
limit
=
40
;
this
.
query
=
null
;
this
.
limit
=
this
.
count
+
5
;
// this.limit = 40;
}
}
},
...
...
@@ -456,9 +454,8 @@ export default {
if
(
error
!=
undefined
)
{
this
.
alertText
=
this
.
$t
(
"RegisterRoute.dbError"
);
this
.
alertSnackbar
=
true
;
this
.
limit
=
40
;
this
.
query
=
null
;
this
.
limit
=
this
.
count
+
5
;
// this.limit = 40;
}
}
}
...
...
@@ -468,18 +465,6 @@ export default {
hislink
()
{
return
HisLink
.
find
({}).
fetch
();
},
// worklist4hislink() {
// if (this.selectedBrand == null) return [];
// this.count = Counts.get("brandCount");
// if (BrandCollections[this.selectedBrand])
// return BrandCollections[this.selectedBrand].find({}).fetch();
// else {
// BrandCollections[this.selectedBrand] = new Mongo.Collection(
// this.selectedBrand
// );
// return BrandCollections[this.selectedBrand].find({}).fetch();
// }
// },
worklist4hislink
()
{
try
{
if
(
this
.
selectedBrand
==
null
)
return
[];
...
...
@@ -487,25 +472,28 @@ export default {
if
(
BrandCollections
[
this
.
selectedBrand
])
if
(
this
.
query
!=
null
)
return
BrandCollections
[
this
.
selectedBrand
]
.
find
(
this
.
query
)
.
find
(
this
.
query
,
{
limit
:
this
.
limit
})
.
fetch
();
else
return
BrandCollections
[
this
.
selectedBrand
]
.
find
({},
{
limit
:
this
.
limit
})
.
fetch
();
else
return
BrandCollections
[
this
.
selectedBrand
].
find
().
fetch
();
else
{
BrandCollections
[
this
.
selectedBrand
]
=
new
Mongo
.
Collection
(
this
.
selectedBrand
);
if
(
this
.
query
==
null
)
return
BrandCollections
[
this
.
selectedBrand
].
find
().
fetch
();
return
BrandCollections
[
this
.
selectedBrand
]
.
find
({},
{
limit
:
this
.
limit
})
.
fetch
();
else
return
BrandCollections
[
this
.
selectedBrand
]
.
find
(
this
.
query
)
.
find
(
this
.
query
,
{
limit
:
this
.
limit
}
)
.
fetch
();
}
}
catch
(
e
)
{
this
.
alertText
=
this
.
$t
(
"RegisterRoute.dbError"
);
this
.
alertSnackbar
=
true
;
this
.
limit
=
this
.
count
+
5
;
// this.limit = 40;
return
[];
}
}
...
...
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