马铁龙 7 年之前
父节点
当前提交
9581e71196

+ 7 - 0
application/admin/controller/Protector.php

@@ -26,6 +26,13 @@ class Protector extends Backend
     //快速搜索的字段
     protected $searchFields = ['unit_name','contacts'];
 
+    /**
+     * 无需鉴权的方法,但需要登录
+     * @var array
+     */
+    protected $noNeedRight = ['sign','again','showfollow','addfollow'];
+
+
     /**
      * Protector模型对象
      * @var \app\admin\model\Protector

+ 1 - 1
public/assets/js/backend/intention.js

@@ -34,7 +34,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'selectpage'], functi
                                 return '¥  ' + value;
                         }},
                         {field: 'usr_nickname', title: '操作人'},
-                        {field: 'depart_id', title: '操作人部门',searchList: $.getJSON('auth/group/departList'),formatter:function (value, row) {
+                        {field: 'depart_id', title: '操作人部门',searchable: false,searchList: $.getJSON('auth/group/departList'),formatter:function (value, row) {
                                 return row.usr_depart;
                         }},
                         {field: 'created_at', title: '创建时间', operate:'RANGE', addclass:'datetimerange', searchable: false},

+ 3 - 3
public/assets/js/backend/protector.js

@@ -33,11 +33,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'selectpage'], functi
                         {field: 'number', title: __('Number'),searchable: false},
                         {field: 'price', title: '单价',searchable: false},
                         {field: 'total', title: '总价',searchable: false},
-                        {field: 'depart_id', title: '操作人部门',searchList: $.getJSON('auth/group/departList'),formatter:function (value, row) {
+                        {field: 'depart_id', title: '操作人部门',searchable: false,searchList: $.getJSON('auth/group/departList'),formatter:function (value, row) {
                                 return row.usr_depart;
-                            }},
+                        }},
                         {field: 'usr_nickname', title: '操作人'},
-                        {field: 'pro_date', title: __('Pro_date'), operate:'RANGE', addclass:'datetimerange',searchable: false},
+                        {field: 'pro_date', title: __('Pro_date'), operate:'RANGE', addclass:'datetimerange'},
                         {field: 'ex_date', title: __('Ex_date'),searchable: false, operate:'RANGE', addclass:'datetimerange'},
                         {field: 'operate', title: __('Operate'),searchable: false,visible: status!='contract' ? true : false,
                             table: table,