WIN-2308041133\Administrator 1 ماه پیش
والد
کامیت
e279ea4d7e
2فایلهای تغییر یافته به همراه54 افزوده شده و 0 حذف شده
  1. 27 0
      application/admin/controller/wechat/LaveMonth.php
  2. 27 0
      application/admin/controller/wechat/PlanRecord.php

+ 27 - 0
application/admin/controller/wechat/LaveMonth.php

@@ -21,7 +21,34 @@ class LaveMonth extends Backend
         parent::_initialize();
         $this->model = model('LaveMonth');
     }
+    public function index()
+    {
+        //设置过滤方法
+        $this->request->filter(['strip_tags', 'trim']);
+        if ($this->request->isAjax()) {
+            //如果发送的来源是Selectpage,则转发到Selectpage
+            if ($this->request->request('keyField')) {
+                $data = $this->selectpage()->getData();
+                return $data;
+            }
+            list($where, $sort, $order, $offset, $limit) = $this->buildparams();
+            /**
+             * 获取企业信息
+             */
+            $where1  = is_sys_admin();
+            $list = $this->model
+                ->where($where)->where($where1)
+                ->order($sort, $order)
+                ->paginate($limit);
+            foreach ($list as $k => $v) {
+
+            }
+            $result = array("total" => $list->total(), "rows" => $list->items());
 
+            return json($result);
+        }
+        return $this->view->fetch();
+    }
     /**
      * 编辑
      */

+ 27 - 0
application/admin/controller/wechat/PlanRecord.php

@@ -21,7 +21,34 @@ class PlanRecord extends Backend
         parent::_initialize();
         $this->model = model('WechatPlanRecord');
     }
+    public function index()
+    {
+        //设置过滤方法
+        $this->request->filter(['strip_tags', 'trim']);
+        if ($this->request->isAjax()) {
+            //如果发送的来源是Selectpage,则转发到Selectpage
+            if ($this->request->request('keyField')) {
+                $data = $this->selectpage()->getData();
+                return $data;
+            }
+            list($where, $sort, $order, $offset, $limit) = $this->buildparams();
+            /**
+             * 获取企业信息
+             */
+            $where1  = is_sys_admin();
+            $list = $this->model
+                ->where($where)->where($where1)
+                ->order($sort, $order)
+                ->paginate($limit);
+            foreach ($list as $k => $v) {
+
+            }
+            $result = array("total" => $list->total(), "rows" => $list->items());
 
+            return json($result);
+        }
+        return $this->view->fetch();
+    }
     /**
      * 编辑
      */