|
|
@@ -19,9 +19,12 @@
|
|
19
|
19
|
<i class="syIcon"></i>位置:
|
|
20
|
20
|
<a href="javaScript:;" id="ReIndex">首页</a>>
|
|
21
|
21
|
<a href="javaScript:;">手机客户端管理</a>>
|
|
22
|
|
- <a href="" style="color: #000;">应用更新</a>
|
|
|
22
|
+ <a href="" class="nowPosition">应用更新</a>
|
|
23
|
23
|
</sapn>
|
|
24
|
24
|
</div>
|
|
|
25
|
+ <div class="dhRight">
|
|
|
26
|
+ <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
|
|
|
27
|
+ </div>
|
|
25
|
28
|
</div>
|
|
26
|
29
|
<div class="Content_box">
|
|
27
|
30
|
<!--待处理/-->
|
|
|
@@ -29,11 +32,11 @@
|
|
29
|
32
|
<div class="th-box">
|
|
30
|
33
|
<div class="toolBar clearfix">
|
|
31
|
34
|
<div class="toolRight">
|
|
32
|
|
- 应用名称:<input type="text" class="photo x-color inputs" />
|
|
|
35
|
+ 应用名称:<input type="text" class="photo x-color inputs appName" />
|
|
33
|
36
|
创建时间:
|
|
34
|
37
|
<input class="photo x-color inputs laydate-icon" type="text" id="startTime" /> 至
|
|
35
|
38
|
<input class="photo x-color inputs laydate-icon" type="text" id="endTime" />
|
|
36
|
|
- <a class=" btns">搜索</a>
|
|
|
39
|
+ <a class=" btns search">搜索</a>
|
|
37
|
40
|
<a class=" btns">添加应用更新</a>
|
|
38
|
41
|
</div>
|
|
39
|
42
|
</div>
|
|
|
@@ -42,11 +45,11 @@
|
|
42
|
45
|
<table id="table1" data-row-style="rowStyle" data-query-params="queryParams">
|
|
43
|
46
|
<thead>
|
|
44
|
47
|
<tr>
|
|
45
|
|
- <th data-field="id" data-align="center" >应用名称</th>
|
|
46
|
|
- <th data-field="usercode" data-align="center">版本名称</th>
|
|
47
|
|
- <th data-field="addtime" data-align="center">版本号</th>
|
|
48
|
|
- <th data-field="acceptname" data-align="center">下载地址</th>
|
|
49
|
|
- <th data-field="zuoxi" data-align="center">操作</th>
|
|
|
48
|
+ <th data-field="F_AppliName" data-align="center">应用名称</th>
|
|
|
49
|
+ <th data-field="F_VersionName" data-align="center">版本名称</th>
|
|
|
50
|
+ <th data-field="F_VersionCode" data-align="center">版本号</th>
|
|
|
51
|
+ <th data-field="F_DownUrl" data-align="center">下载地址</th>
|
|
|
52
|
+ <th data-align="center" data-formatter="del">操作</th>
|
|
50
|
53
|
</tr>
|
|
51
|
54
|
</thead>
|
|
52
|
55
|
</table>
|
|
|
@@ -69,17 +72,19 @@
|
|
69
|
72
|
});
|
|
70
|
73
|
|
|
71
|
74
|
})
|
|
|
75
|
+ $('.search').click(function(){
|
|
|
76
|
+ initTable1();
|
|
|
77
|
+ })
|
|
72
|
78
|
var table1=$('#table1');
|
|
73
|
|
- initTable1()
|
|
74
|
|
-function initTable1() {
|
|
|
79
|
+ initTable1();
|
|
|
80
|
+ function initTable1() {
|
|
75
|
81
|
//先销毁表格
|
|
76
|
82
|
table1.bootstrapTable('destroy');
|
|
77
|
83
|
//初始化表格,动态从服务器加载数据
|
|
78
|
84
|
table1.bootstrapTable({
|
|
79
|
85
|
method: "get", //使用get请求到服务器获取数据
|
|
80
|
|
-// url: huayi.config.callcenter_url+"Order/GetList", //获取数据的Servlet地址
|
|
81
|
|
- url: "",
|
|
82
|
|
- contentType: "application/x-www-form-urlencoded",striped: true,
|
|
|
86
|
+ url: huayi.config.callcenter_url+"ApplicationsRefresh/GetAllList", //获取数据的Servlet地址
|
|
|
87
|
+ contentType: "application/x-www-form-urlencoded",striped: true,
|
|
83
|
88
|
striped: true, //表格显示条纹
|
|
84
|
89
|
pagination: false, //启动分页
|
|
85
|
90
|
pageSize:10, //每页显示的记录数
|
|
|
@@ -94,9 +99,12 @@ function initTable1() {
|
|
94
|
99
|
queryParamsType: "undefined",
|
|
95
|
100
|
queryParams: function queryParams(params) { //设置查询参数
|
|
96
|
101
|
var param = {
|
|
97
|
|
- pageindex: params.pageNumber,
|
|
|
102
|
+ page: params.pageNumber,
|
|
98
|
103
|
pagesize: params.pageSize,
|
|
99
|
|
- token: $.cookie("token")
|
|
|
104
|
+ token: $.cookie("token"),
|
|
|
105
|
+ appliName:$('.appName').val(),
|
|
|
106
|
+ strstarttime:$('#startTime').val(),
|
|
|
107
|
+ strendtime:$('#endTime').val()
|
|
100
|
108
|
};
|
|
101
|
109
|
return param;
|
|
102
|
110
|
},
|
|
|
@@ -108,8 +116,28 @@ function initTable1() {
|
|
108
|
116
|
}
|
|
109
|
117
|
});
|
|
110
|
118
|
}
|
|
111
|
|
-
|
|
112
|
|
-
|
|
|
119
|
+ function del(val,row){
|
|
|
120
|
+ return '<a class="xg sc" onclick="dell('+row.F_Id+')">删除</a>';
|
|
|
121
|
+ }
|
|
|
122
|
+
|
|
|
123
|
+ function dell(str) {
|
|
|
124
|
+ layer.confirm('确定删除当前记录?', {
|
|
|
125
|
+ btn: ['是', '否'] //按钮
|
|
|
126
|
+ }, function () {
|
|
|
127
|
+ $.post(huayi.config.callcenter_url + "ApplicationsRefresh/DelInfo", {
|
|
|
128
|
+ ids: str,
|
|
|
129
|
+ token: $.cookie("token")
|
|
|
130
|
+ }, function (data) {
|
|
|
131
|
+ data = JSON.parse(data);
|
|
|
132
|
+ /*验证请求*/
|
|
|
133
|
+ if (data.state == "success") {
|
|
|
134
|
+ layer.msg("删除成功");
|
|
|
135
|
+ //重新加载
|
|
|
136
|
+ initTable1();
|
|
|
137
|
+ }
|
|
|
138
|
+ });
|
|
|
139
|
+ });
|
|
|
140
|
+ }
|
|
113
|
141
|
</script>
|
|
114
|
142
|
</body>
|
|
115
|
143
|
|