|
|
@@ -43,16 +43,19 @@
|
|
43
|
43
|
</div>
|
|
44
|
44
|
<div style="width: 100%;padding: 10px;">
|
|
45
|
45
|
<table id="table1" data-row-style="rowStyle" data-query-params="queryParams">
|
|
46
|
|
- <thead>
|
|
47
|
|
- <tr>
|
|
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>
|
|
53
|
|
- </tr>
|
|
54
|
|
- </thead>
|
|
55
|
|
- </table>
|
|
|
46
|
+ <thead>
|
|
|
47
|
+ <tr>
|
|
|
48
|
+ <th data-field="state" data-checkbox="true" data-align="center"></th>
|
|
|
49
|
+ <th data-field="F_AppliName" data-align="center">应用名称</th>
|
|
|
50
|
+ <th data-field="F_VersionName" data-align="center">版本名称</th>
|
|
|
51
|
+ <th data-field="F_VersionCode" data-align="center">版本号</th>
|
|
|
52
|
+ <th data-field="F_DownUrl" data-align="center">下载地址</th>
|
|
|
53
|
+ <th data-align="center" data-formatter="del">操作</th>
|
|
|
54
|
+ </tr>
|
|
|
55
|
+ </thead>
|
|
|
56
|
+ </table>
|
|
|
57
|
+ <p style="margin-top: 20px;"><button class="btns allDel">批量删除</button></p>
|
|
|
58
|
+
|
|
56
|
59
|
</div>
|
|
57
|
60
|
</div>
|
|
58
|
61
|
</div>
|
|
|
@@ -119,7 +122,8 @@
|
|
119
|
122
|
function del(val,row){
|
|
120
|
123
|
return '<a class="xg sc" onclick="dell('+row.F_Id+')">删除</a>';
|
|
121
|
124
|
}
|
|
122
|
|
-
|
|
|
125
|
+
|
|
|
126
|
+ //删除一条
|
|
123
|
127
|
function dell(str) {
|
|
124
|
128
|
layer.confirm('确定删除当前记录?', {
|
|
125
|
129
|
btn: ['是', '否'] //按钮
|
|
|
@@ -138,6 +142,42 @@
|
|
138
|
142
|
});
|
|
139
|
143
|
});
|
|
140
|
144
|
}
|
|
|
145
|
+ //批量删除
|
|
|
146
|
+ $('.allDel').click(function(){
|
|
|
147
|
+ var delId = $.map($('#table1').bootstrapTable('getSelections'), function (row) {
|
|
|
148
|
+ return row.F_Id;
|
|
|
149
|
+ });
|
|
|
150
|
+ if (delId.length <= 0) {
|
|
|
151
|
+ layer.confirm('请选择一项内容删除!', {
|
|
|
152
|
+ btn: ['确定']
|
|
|
153
|
+ });
|
|
|
154
|
+ return;
|
|
|
155
|
+ } else {
|
|
|
156
|
+ console.log(delId);
|
|
|
157
|
+ var laye = layer.confirm('提示:若要删除,要等待审核。您确定要删除吗?', {
|
|
|
158
|
+ btn: ['确定', '取消'] //可以无限个按钮
|
|
|
159
|
+ }, function() {
|
|
|
160
|
+ $.ajax({
|
|
|
161
|
+ type:"post",
|
|
|
162
|
+ url:huayi.config.callcenter_url + 'ApplicationsRefresh/DelInfo',
|
|
|
163
|
+ async:true,
|
|
|
164
|
+ dataType:'json',
|
|
|
165
|
+ data:{
|
|
|
166
|
+ token:$.cookie("token"),
|
|
|
167
|
+ ids:delId
|
|
|
168
|
+ },
|
|
|
169
|
+ success:function(data){
|
|
|
170
|
+ if(data.state.toLowerCase()=='success'){
|
|
|
171
|
+ layer.msg(data.message);
|
|
|
172
|
+ initTable1();
|
|
|
173
|
+ }
|
|
|
174
|
+
|
|
|
175
|
+ }
|
|
|
176
|
+ });
|
|
|
177
|
+ });
|
|
|
178
|
+ }
|
|
|
179
|
+ })
|
|
|
180
|
+
|
|
141
|
181
|
</script>
|
|
142
|
182
|
</body>
|
|
143
|
183
|
|