index.js
717 Bytes
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
'use strict';
var $ = require('jquery'),
common = require('../common/common');
var g = new common.grid({
el: "#basicTable",
parms: function() {
return {
state: $('input[name="state"]').val()
}
},
columns: [{
display: '',
name: 'foler',
render: function() {
return '';
}
}, {
display: 'ID',
name: 'categoryId'
}, {
display: '品类名称',
name: 'categoryName'
}, {
display: '所属分类',
name: '',
render: function() {
return '一级分类';
}
}, {
display: '分类图标',
name: ''
}, {
display: '排序',
name: 'orderBy'
}, {
display: '状态',
name: 'status'
}, {
display: '操作',
render: function() {
}
}]
});
g.init($("#gridurl").val());