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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
| /**
| * 跨城站点管理管理初始化
| */
| var TSite = {
| id: "TSiteTable", //表格id
| seItem: null, //选中的条目
| table: null,
| layerIndex: -1,
| picture:"",
| fileUrl:"",
| img:"",
| plan:"",
| goodsPicArray:[],
| validateFields: {
| }
| };
| var TSite1 = {
| id: "TSiteTable1", //表格id
| seItem: null, //选中的条目
| table: null,
| layerIndex: -1,
| picture:"",
| fileUrl:"",
| img:"",
| plan:"",
| goodsPicArray:[],
| validateFields: {
| }
| };
| /**
| * 初始化表格的列
| */
| TSite.initColumn = function () {
| return [
| {field: 'selectItem', checkbox: true},
| {title: '主键ID', field: 'id', visible: false, align: 'center', valign: 'middle'},
| {title: '序号', field: 'account_id', visible:true, align: 'center', valign: 'middle'},
| {title: '昵称', field: 'nickname', visible: true, align: 'center', valign: 'middle',},
| {title: '成绩', field: 'score', visible: true, align: 'center', valign: 'middle'},
| ];
| };
| /**
| * 初始化表格的列
| */
| TSite1.initColumn = function () {
| return [
| {field: 'selectItem', checkbox: true},
| {title: '主键ID', field: 'id', visible: false, align: 'center', valign: 'middle'},
| {title: '序号', field: 'account_id', visible:true, align: 'center', valign: 'middle'},
| {title: '昵称', field: 'name', visible: true, align: 'center', valign: 'middle',},
| {title: '成绩', field: 'score', visible: true, align: 'center', valign: 'middle'},
| ];
| };
|
| /**
| * 关闭此对话框
| */
| TSite.close = function() {
| parent.layer.close(window.parent.TSite.layerIndex);
| }
|
| TSite.search3 = function () {
| var queryData = {};
| queryData['type'] = $("#yearOrMonth3").val();
| queryData['date'] = $("#con3").val();
| queryData['cityCode'] = $("#cCode3").val();
| queryData['spaceId'] = $("#site3").val();
| TSite.table.refresh({query: queryData});
| };
| TSite1.search4 = function () {
| var queryData = {};
| queryData['type'] = $("#yearOrMonth4").val();
| queryData['date'] = $("#con4").val();
| queryData['cityCode'] = $("#cCode4").val();
| queryData['spaceId'] = $("#site4").val();
| TSite1.table.refresh({query: queryData});
| };
|
| TSite.resetSearch = function () {
| $("#pCode").val("");
| $("#cCode").val("");
| $("#store").val("");
| $("#sCode").val("");
| $("#storeName").val("");
| $("#siteTypeId").val("");
| $("#name").val("");
| $("#insuranceEndTime").val("");
| TSite.search();
| };
|
| $(function () {
| var defaultColunms = TSite.initColumn();
| var table = new BSTable(TSite.id, "/gameData/listAll", defaultColunms);
| table.setPaginationType("client");
| TSite.table = table.init();
|
| var defaultColunms1 = TSite1.initColumn();
| var table1 = new BSTable(TSite1.id, "/gameData/listAll1", defaultColunms1);
| table1.setPaginationType("client");
| TSite1.table = table1.init();
| });
|
|