瀏覽代碼

加权限控制

peicj 1 天之前
父節點
當前提交
4a9043de75
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 7 0
      src/views/company/companyUser/indexAll.vue
  2. 1 0
      src/views/qw/externalContact/index.vue

+ 7 - 0
src/views/company/companyUser/indexAll.vue

@@ -80,6 +80,7 @@
               size="mini"
               :disabled="multiple"
               @click="handerCompanyUserAreaList"
+              v-hasPermi="['company:user:updateCompanyUserAreaList']"
             >批量设置销售所属区域</el-button>
           </el-col>
           <el-col :span="1.5">
@@ -89,6 +90,7 @@
               size="mini"
               :disabled="multiple"
               @click="handleSetRegister"
+              v-hasPermi="['company:user:setRegister']"
             >设置单独注册会员</el-button>
           </el-col>
           <el-col :span="1.5">
@@ -98,6 +100,7 @@
               size="mini"
               :disabled="multiple"
               @click="handleAllowedAllRegister"
+              v-hasPermi="['company:user:allowedAllRegister']"
             >允许注册会员开关</el-button>
           </el-col>
           <el-col :span="1.5">
@@ -106,6 +109,7 @@
               plain
               size="mini"
               @click="handleBindCompanyUserCode"
+              v-hasPermi="['company:user:addCodeUrl']"
             >生成注册/绑定销售二维码</el-button>
           </el-col>
           <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -207,6 +211,7 @@
                 plain
                 v-if="scope.row.doctorId!=null"
                 @click="handleUpdateDoctor(scope.row)"
+                v-hasPermi="['qw:companyUser:unBindDoctorId']"
               >换绑医生</el-button>
               <el-button
                 size="mini"
@@ -215,6 +220,7 @@
                 icon="el-icon-link"
                 v-else
                 @click="handleUpdateDoctor(scope.row)"
+                v-hasPermi="['qw:companyUser:unBindDoctorId']"
               >绑定医生</el-button>
               <el-button
                 size="mini"
@@ -223,6 +229,7 @@
                 plain
                 v-if="scope.row.doctorId!=null"
                 @click="handleUnBindUserId(scope.row)"
+                v-hasPermi="['qw:companyUser:unBindDoctorId']"
               >解绑医生</el-button>
               <el-button
                 v-if="scope.row.qwStatus == 0"

+ 1 - 0
src/views/qw/externalContact/index.vue

@@ -392,6 +392,7 @@
             size="mini"
             type="text"
             @click="handledetails(scope.row)"
+            v-hasPermi="['qw:externalContact:getUserInfo']"
         >AI获取用户信息
         </el-button>
       </template>