修改用户分组为产品经理身份

main
fengxinyhyl 1 year ago
parent 46bb7b19d3
commit f44fdd5e49
  1. 8
      .gitignore
  2. 2
      app/common/dao/user/UserGroupDao.php
  3. 4
      app/controller/admin/user/UserGroup.php
  4. 2
      view/admin/.env.development

8
.gitignore vendored

@ -11,3 +11,11 @@ node_modules
.user.ini .user.ini
sftp-config.json sftp-config.json
.DS_Store .DS_Store
/crmeb/basic/BaseAuth.php
/crmeb/basic/BaseController.php
/crmeb/basic/BaseManager.php
/crmeb/basic/BaseMessage.php
/crmeb/basic/BaseStorage.php
/crmeb/basic/BaseUpload.php
/.constant
/config/crmeb.php

@ -47,7 +47,7 @@ class UserGroupDao extends BaseDao
*/ */
public function search(array $where = []) public function search(array $where = [])
{ {
return UserGroup::getDB(); return UserGroup::getDB()->where($where);
} }
/** /**

@ -58,7 +58,9 @@ class UserGroup extends BaseController
public function lst() public function lst()
{ {
[$page, $limit] = $this->getPage(); [$page, $limit] = $this->getPage();
return app('json')->success($this->repository->getList([], $page, $limit)); $where = array();
$where[] = ['group_id', '>', 1];
return app('json')->success($this->repository->getList($where, $page, $limit));
} }
/** /**

@ -4,7 +4,7 @@ ENV = 'development'
// http://mer.crmeb.net/admin // http://mer.crmeb.net/admin
# base api # base api
# VUE_APP_BASE_API = 'http://0.0.0.0:8324' # VUE_APP_BASE_API = 'http://0.0.0.0:8324'
VUE_APP_BASE_API = 'https://mer1.crmeb.net' VUE_APP_BASE_API = 'https://b2.njrenzhou.com'
# socket 连接地址 # socket 连接地址
#VUE_APP_WS_URL = 'ws://0.0.0.0:8324' #VUE_APP_WS_URL = 'ws://0.0.0.0:8324'

Loading…
Cancel
Save