File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ var config = require(path.resolve('plugins/read-config.js'));
5
5
var form = require ( path . resolve ( 'plugins/form.js' ) ) ;
6
6
module . exports = function ( a ) {
7
7
//获取第一页分页列表
8
- this . pagesList = function ( pages , token ) {
8
+ this . pagesList = function ( pages , searchKey , token ) {
9
9
var options = {
10
10
method : 'GET' ,
11
11
timeout : 3000 ,
12
- uri : config ( ) [ 'rurl' ] + '/project/lists/' + pages + '/8' ,
12
+ uri : config ( ) [ 'rurl' ] + '/project/lists/' + pages + '/8?searchKey=' + searchKey ,
13
13
headers : {
14
14
token : token
15
15
}
@@ -28,23 +28,23 @@ module.exports = function(a){
28
28
} ;
29
29
30
30
//分页列表
31
- this . pageSizes = function ( token , page ) {
31
+ this . pageSizes = function ( token , searchKey , page ) {
32
32
var options = {
33
33
method : 'GET' ,
34
34
timeout : 3000 ,
35
- uri : config ( ) [ 'rurl' ] + '/project/lists/' + page + '/8' ,
35
+ uri : config ( ) [ 'rurl' ] + '/project/lists/' + page + '/8?searchKey=' + searchKey ,
36
36
headers : {
37
37
token : token
38
38
}
39
39
} ;
40
40
return request ( options ) ;
41
41
} ;
42
42
//总页数
43
- this . sizes = function ( token ) {
43
+ this . sizes = function ( searchKey , token ) {
44
44
var options = {
45
45
method : 'GET' ,
46
46
timeout : 3000 ,
47
- uri : config ( ) [ 'rurl' ] + '/project/count' ,
47
+ uri : config ( ) [ 'rurl' ] + '/project/count?searchKey=' + searchKey ,
48
48
headers : {
49
49
token : token
50
50
}
@@ -102,4 +102,4 @@ module.exports = function(a){
102
102
} ;
103
103
104
104
return this ;
105
- }
105
+ }
You can’t perform that action at this time.
0 commit comments