diff --git a/application/system/controller/SystemBase.php b/application/system/controller/SystemBase.php index 51eeae8f..b0b50df7 100644 --- a/application/system/controller/SystemBase.php +++ b/application/system/controller/SystemBase.php @@ -29,68 +29,11 @@ class SystemBase extends Base // 模板赋值 $this->assign('list',$list); - halt($list); - // 渲染模板 return $this->fetch(); } - - // 系统设置列表 - public function ajaxData() - { - // 获取DT的传值 - $getdt = request()->param(); - - //得到排序的方式 - $order = $getdt['order'][0]['dir']; - //得到排序字段的下标 - $order_column = $getdt['order'][0]['column']; - //根据排序字段的下标得到排序字段 - $order_field = $getdt['columns'][$order_column]['data']; - //得到limit参数 - $limit_start = $getdt['start']; - $limit_length = $getdt['length']; - //得到搜索的关键词 - $search = $getdt['search']['value']; - - - // 获取记录集总数 - $cnt = 1; - //查询数据 - $data = sysbasemod::field('id,title,keywords,description,thinks,danwei') - ->order([$order_field=>$order]) - // ->limit(1,1) - ->select(); - - $datacnt = 1; - - $data = [ - 'draw'=> $getdt["draw"] , // ajax请求次数,作为标识符 - 'recordsTotal'=>$datacnt, // 获取到的结果数(每页显示数量) - 'recordsFiltered'=>$cnt, // 符合条件的总数据量 - 'data'=>$data, //获取到的数据结果 - ]; - - return json($data); - } - - - - // 编辑系统设置 - public function edit($id) - { - // 获取用户信息 - $list = sysbasemod::field('id,webtitle,keywords,description,thinks,danwei') - ->get($id); - - - $this->assign('list',$list); - - return $this->fetch(); - } - // 更新资源 public function update($id) { diff --git a/application/system/view/system_base/edit.html b/application/system/view/system_base/edit.html deleted file mode 100644 index ac163647..00000000 --- a/application/system/view/system_base/edit.html +++ /dev/null @@ -1,122 +0,0 @@ - - - -
- -