Pārlūkot izejas kodu

企业用户管理BUGFIX

yuedefeng 6 gadi atpakaļ
vecāks
revīzija
2564f58e00

+ 1 - 1
src/dashoo.cn/backend/api/controllers/casbin/user.go

@@ -161,7 +161,7 @@ func (this *UserController) List() {
 	where := "(IsVisible=1 and IsCompanyUser = 0 and DepartmentId in (" + depids + ") or Id = '" + utils.ToStr(this.User.Id) + "') "
 	//外部用户 IsCompanyUser == 1
 	if IsCompanyUser == "1" {
-		where = "(IsVisible=1 and IsCompanyUser = 1 and CreateUserId='" + utils.ToStr(this.User.Id) + "' or Id = '" + utils.ToStr(this.User.Id) + "')"
+		where = "(IsVisible=1 and IsCompanyUser = 1)"
 	}
 	if keyword != "" {
 		where = where + " and UserName like '%" + keyword + "%'"

+ 4 - 5
src/dashoo.cn/frontend_web/src/pages/system/businessusers.vue

@@ -9,9 +9,9 @@
           <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
           <el-breadcrumb-item :to="{ path: '/system/businessusers' }">企业用户管理</el-breadcrumb-item>
         </el-breadcrumb>
-        <span style="float: right;">
+        <!--<span style="float: right;">
           <el-button size="mini" type="primary" style="margin-left:10px; margin-top: -4px;" @click="opendatadialog(1,null,-1);resetForm('organizeform')">新增企业用户</el-button>
-        </span>
+        </span>-->
         <el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
           <el-form-item label="账号">
             <el-input size="mini" style="width: 165px;" v-model="keyword" placeholder="请输入账号"></el-input>
@@ -30,13 +30,12 @@
         <el-table :data="list"  size="mini" border>
           <el-table-column label="操作" align="center" fixed="right">
             <template slot-scope="scope">
-              <el-button size="small" @click="opendatadialog(2,scope.row,scope.$index);" type="text" icon="el-icon-edit"
+              <!--<el-button size="small" @click="opendatadialog(2,scope.row,scope.$index);" type="text" icon="el-icon-edit"
                 title="编辑"></el-button>
               <el-button size="small" type="text" style="margin-left:3px" icon="el-icon-delete" title="删除" @click="deletedata(scope.row)"></el-button>
-              <!-- <el-button size="small" type="text" style="margin-left:1px" title="权限" @click="permission(scope.row)"><i class="icon icon-lock"></i></el-button> -->
               <el-button size="small" type="text" style="margin-left:3px" title="密码重置" @click="resetpwd(scope.row)">
                 <i class="icon icon-spinner11"></i>
-              </el-button>
+              </el-button>-->
               <el-button size="small" type="text" style="margin-left:3px" title="设置角色" @click="roleset(scope.row)">
                 <i class="icon icon-users"></i>
               </el-button>