index.js
1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
'use strict';
var $ = require('jquery'),
common=require('../common/common');
var ENUM={
status:{0:'待审核',1:'审核通过',2:'驳回',3:'过期',4:'作废'},//全部
tips:{"0":0,"1":0,"2":0,"3":0,"4":0,"all":0}
}
var t = new common.tab({
el:"#basicTab",
click:function(){
g.reload(1);
},
columns:[
{name:"0",display:"待审核({0})"},
{name:"1",display:"审核通过({1})"},
{name:"2",display:"驳回({2})"},
{name:"3",display:"过期({3})"},
{name:"4",display:"作废({4})"},
{name:"all",display:"全部({all})"}
]
}).init(ENUM.tips);
var g = new common.grid({
el: '#basicTable',
parms:function(){
return {
batchNo:common.util.__input("filter-id"),
name:common.util.__input("filter-name"),
reqDepartment:common.util.__input("filter-dep"),
status: t.active
};
},
columns:[
{display:"SKN",name:"skn"},
{display:"SKN",name:"skn"},
{display:"SKN",name:"skn"},
{display:"SKN",name:"skn"},
{display:"SKN",name:"skn"},
{display:"SKN",name:"skn"},
{display:"SKN",name:"skn"},
{display:"SKN",name:"skn"},
{display:"SKN",name:"skn"}
]
});