Browse Source

页面权限调整

qymljy 1 year ago
parent
commit
40cf632418

+ 1 - 1
src/SManagement/user/pay-orders/modules/add.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <el-button class="inline-24" type="primary" size="small"  @click="onShow" v-if="sys_payswitch == 1">新建付费订单</el-button>
+    <el-button class="inline-24" type="primary" size="small"  @click="onShow" v-if="sys_payswitch == 1 && tool.checkAuth($route.name,'insert')" >新建付费订单</el-button>
     <el-dialog
         title="付费订单"
         :visible.sync="dialogVisible"

+ 2 - 2
src/SManagement/user/team-manage/components/AddUser.vue

@@ -22,7 +22,7 @@
             <el-input v-model="param.content.email" placeholder="请输入" size="small"></el-input>
           </el-form-item>
         </el-col>-->
-        <el-col :span="24">
+<!--        <el-col :span="24">
           <el-form-item label="角色配置:" label-width="102px" prop="roleids">
             <el-select v-model="param.content.roleids" multiple placeholder="请选择" size="small">
               <el-option
@@ -33,7 +33,7 @@
               </el-option>
             </el-select>
           </el-form-item>
-        </el-col>
+        </el-col>-->
       </el-form>
       <el-col :span="24">
         <div class="footer" style="margin-left:50%;transform: translateX(-40%);">

+ 1 - 1
src/SManagement/user/team-manage/components/detail.vue

@@ -40,7 +40,7 @@
       <el-row>
         <el-col :span="24">
           <div class="title-style inline-16">付费信息</div>
-          <el-button size="small" type="primary" @click="payOrder">账号付费</el-button>
+          <el-button size="small" type="primary" @click="payOrder" v-if="tool.checkAuth($route.name,'accountPay')">账号付费</el-button>
         </el-col>
       </el-row>
       <tableLayout style="margin-top: 20px" :layout="tablecols" :data="list"  :opwidth="200" :custom="true"  fixedName="operation">

+ 5 - 4
src/SManagement/user/team-manage/index.vue

@@ -1,9 +1,10 @@
 <template>
   <div>
-    <div class="container normal-panel normal-margin  flex-between">
+<!--    <div class="container normal-panel normal-margin  flex-between">
       <el-button class="inline-24" type="primary" size="small"  @click="addUser">新建团队账号</el-button>
-      <addUser ref="addUser" :editTarget="editTarget" @addSuccess="addSuccess"></addUser>
-    </div>
+
+    </div>-->
+    <addUser ref="addUser" :editTarget="editTarget" @addSuccess="addSuccess"></addUser>
     <div class="container normal-panel">
       <el-input  style="width:200px;" placeholder="搜索" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="queryData(param.content.pageNumber = 1)" @clear="queryData(param.content.pageNumber = 1)" size="small" class="input-with-select inline-24 layout_search__panel" clearable>
       </el-input>
@@ -51,7 +52,7 @@
         </template>
         <template v-slot:opreation="scope">
           <el-button size="mini" type="text" class="inline-16" @click="$router.push({path:'/team_managent_detail',query:{id:scope.data.userid,data:scope.data}})">详 情</el-button>
-          <el-button size="mini" type="text" @click="editTargetFun(scope.data)">编 辑</el-button>
+          <el-button size="mini" type="text" @click="editTargetFun(scope.data)" v-if="tool.checkAuth($route.name,'update')">编 辑</el-button>
         </template>
       </tableLayout>
       <div class="container normal-panel" style="text-align:right">