作者 刘朕
1 个管道 的构建 通过 耗费 0 秒

合并分支 '1iuzhen' 到 'master'

后台隐藏删除用户功能



查看合并请求 !62
@@ -259,32 +259,19 @@ class MemberController extends AdminBaseController @@ -259,32 +259,19 @@ class MemberController extends AdminBaseController
259 $objWriter->save('php://output'); 259 $objWriter->save('php://output');
260 } 260 }
261 261
262 - /**  
263 - * 删除表单字段  
264 - * @adminMenu(  
265 - * 'name' => '删除表单字段',  
266 - * 'parent' => 'index',  
267 - * 'display'=> false,  
268 - * 'hasView'=> false,  
269 - * 'order' => 4,  
270 - * 'icon' => '',  
271 - * 'remark' => '删除表单字段',  
272 - * 'param' => ''  
273 - * )  
274 - */  
275 - public function delete()  
276 - {  
277 - $id = $this->request->param('id',0,'intval');  
278 - $ids = $this->request->param('ids/a');  
279 - if(isset($id)) {  
280 - $result = $this->member_model->where(['id'=>$id])->update(['delete_time'=>time()]);  
281 - }  
282 - if(isset($ids)) {  
283 - $result = $this->member_model->where(['id'=>['in',$ids]])->update(['delete_time'=>time()]);  
284 - }  
285 - if(!$result) {  
286 - $this->error('删除失败');  
287 - }  
288 - $this->success('删除成功');  
289 - } 262 +// public function delete()
  263 +// {
  264 +// $id = $this->request->param('id',0,'intval');
  265 +// $ids = $this->request->param('ids/a');
  266 +// if(isset($id)) {
  267 +// $result = $this->member_model->where(['id'=>$id])->update(['delete_time'=>time()]);
  268 +// }
  269 +// if(isset($ids)) {
  270 +// $result = $this->member_model->where(['id'=>['in',$ids]])->update(['delete_time'=>time()]);
  271 +// }
  272 +// if(!$result) {
  273 +// $this->error('删除失败');
  274 +// }
  275 +// $this->success('删除成功');
  276 +// }
290 } 277 }
@@ -34,12 +34,12 @@ @@ -34,12 +34,12 @@
34 <input type="button" class="btn btn-primary" id="excel" value="导出"/> 34 <input type="button" class="btn btn-primary" id="excel" value="导出"/>
35 </form> 35 </form>
36 <form class="js-ajax-form" action="" method="post"> 36 <form class="js-ajax-form" action="" method="post">
37 - <div class="table-actions">  
38 - <button class="btn btn-danger btn-sm js-ajax-submit" type="submit"  
39 - data-action="{:url('Member/delete')}" data-subcheck="true" data-msg="您确定删除吗?">  
40 - {:lang('DELETE')}  
41 - </button>  
42 - </div> 37 + <!--<div class="table-actions">-->
  38 + <!--<button class="btn btn-danger btn-sm js-ajax-submit" type="submit"-->
  39 + <!--data-action="{:url('Member/delete')}" data-subcheck="true" data-msg="您确定删除吗?">-->
  40 + <!--{:lang('DELETE')}-->
  41 + <!--</button>-->
  42 + <!--</div>-->
43 <table class="table table-hover table-bordered table-list"> 43 <table class="table table-hover table-bordered table-list">
44 <thead> 44 <thead>
45 <tr> 45 <tr>
@@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
86 <td>{:date('Y-m-d H:i',$vo.create_time)}</td> 86 <td>{:date('Y-m-d H:i',$vo.create_time)}</td>
87 <td> 87 <td>
88 <a href="{:url('Member/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a> 88 <a href="{:url('Member/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
89 - <a href="{:url('Member/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a> 89 + <!--<a href="{:url('Member/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>-->
90 </td> 90 </td>
91 </tr> 91 </tr>
92 </foreach> 92 </foreach>
@@ -110,12 +110,12 @@ @@ -110,12 +110,12 @@
110 </tr> 110 </tr>
111 </tfoot> 111 </tfoot>
112 </table> 112 </table>
113 - <div class="table-actions">  
114 - <button class="btn btn-danger btn-sm js-ajax-submit" type="submit"  
115 - data-action="{:url('Member/delete')}" data-subcheck="true" data-msg="您确定删除吗?">  
116 - {:lang('DELETE')}  
117 - </button>  
118 - </div> 113 + <!--<div class="table-actions">-->
  114 + <!--<button class="btn btn-danger btn-sm js-ajax-submit" type="submit"-->
  115 + <!--data-action="{:url('Member/delete')}" data-subcheck="true" data-msg="您确定删除吗?">-->
  116 + <!--{:lang('DELETE')}-->
  117 + <!--</button>-->
  118 + <!--</div>-->
119 <ul class="pagination">{$page|default=''}</ul> 119 <ul class="pagination">{$page|default=''}</ul>
120 </form> 120 </form>
121 </div> 121 </div>