moonsflyer 9 mesi fa
parent
commit
95506d7f5a

+ 1 - 1
application/admin/controller/qingdong/customer/Cusrecord.php

@@ -39,7 +39,7 @@ class Cusrecord extends Base {
             list($where, $sort, $order, $offset, $limit) = $this->buildparams();
             $wheres = [];
             $wheres['relation_id'] = $params['ids'];
-			$list = $this->model->with(['file'])->where($where)->where($wheres)
+			$list = $this->model->with(['file','staff'])->where($where)->where($wheres)
             ->order($sort, $order)->paginate($limit);
             $data = $list->items();
 ////            foreach($data as &$v){

+ 8 - 0
public/assets/js/backend/qingdong/customer/cusrecord.js

@@ -32,6 +32,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                 [
                     {field: 'createtime', title: '跟进时间', operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
                     {
+                        field : 'staff', title : '跟进人',  formatter : function (value, row, index) {
+                            if(value.name ==''){
+                                value = '无';
+                            }
+                            return value.name;
+                        }
+                    },
+                    {
                         field : 'content', title : '跟进内容',  formatter : function (value, row, index) {
                             if(value ==''){
                                 value = '无';