WIN-2308041133\Administrator 1 년 전
부모
커밋
7da7160a39
2개의 변경된 파일2개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 8
      application/common/model/Platform.php
  2. 1 1
      public/assets/js/backend/platform/platform.js

+ 1 - 8
application/common/model/Platform.php

@@ -17,12 +17,5 @@ class platform extends Model
     protected $createTime = 'createtime';
     protected $createTime = 'createtime';
     // 追加属性
     // 追加属性
     protected $append = [];
     protected $append = [];
-    public function user()
-    {
-        return $this->belongsTo('User', 'uid', 'id', [], 'LEFT')->setEagerlyType(0);
-    }
-    public function users()
-    {
-        return $this->belongsTo('User', 'uid', 'id', [], 'LEFT')->field('id,avatar,nickname,istel,mobile,isrz,level,group_id')->setEagerlyType(0);
-    }
+
 }
 }

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

@@ -20,7 +20,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
             table.bootstrapTable({
             table.bootstrapTable({
                 url: $.fn.bootstrapTable.defaults.extend.index_url,
                 url: $.fn.bootstrapTable.defaults.extend.index_url,
                 pk: 'id',
                 pk: 'id',
-                sortName: 'user.id',
+                // sortName: 'user.id',
                 columns: [
                 columns: [
                     [
                     [
                         {checkbox: true},
                         {checkbox: true},