浏览代码

修改报告查看管理员的权限

plg 5 天之前
父节点
当前提交
4aa1437730

+ 1 - 1
src/components/CompareUser.vue

@@ -40,7 +40,7 @@
             </el-table-column>
             <el-table-column prop="planEndTime" label="结束时间" align="center" width="">
             </el-table-column>
-            <el-table-column prop="enable" label="是否授权" align="center" width="">
+            <el-table-column prop="enable" label="是否授权" align="center" width="" v-if="userInfoSession.roleType != 5">
               <template slot-scope="scope">
                 <div
                   style="

+ 6 - 0
src/views/manage/channelInfo/orderSettlement.vue

@@ -192,6 +192,12 @@ export default {
             if (res.data.length > 0) {
                console.log(res.data)
               //
+              //先筛选出学院级别的数据
+
+
+
+
+
               let resAdd = this.addPro(res.data);
               this.ppData = JSON.parse(JSON.stringify(resAdd));
               let forRes = this.arrToTree(resAdd);

+ 2 - 2
src/views/manage/channelManagement/channelManagement.vue

@@ -222,7 +222,7 @@
             <template slot-scope="scope">
               <div
                 class="detail_button_out"
-                v-if="scope.row.planStatus == '3' && scope.row.enable == '1'"
+                v-if="(userInfo.roleType=='5'&&scope.row.planStatus == '3')||(scope.row.planStatus == '3' && scope.row.enable == '1')"
               >
                 <div class="detail_button" @click="addUser(scope.row)">
                   <img src="../../../assets/img/table/search.png" />
@@ -235,7 +235,7 @@
               </div>
               <div
                 class="detail_button_out_dis"
-                v-if="!(scope.row.planStatus == '3' && scope.row.enable == '1')"
+                v-if="!((userInfo.roleType=='5'&&scope.row.planStatus == '3')||(scope.row.planStatus == '3' && scope.row.enable == '1'))"
               >
                 <div class="detail_button_dis" :title="titleFormatter(scope.row)">
                   <img src="../../../assets/img/table/search_dis.png" />

+ 4 - 4
src/views/manage/channelManagement/contract.vue

@@ -230,7 +230,7 @@
               >
                 <div
                   class="detail_button_out"
-                  v-if="!isUser && scope.row.planStatus == '3'&&scope.row.enable=='1'"
+                  v-if="(userInfo.roleType=='5'&&scope.row.planStatus == '3')||(!isUser && scope.row.planStatus == '3'&&scope.row.enable=='1')"
                 >
                   <div class="detail_button" @click="compareReport(scope.row)">
                     <img src="../../../assets/img/table/search.png" />
@@ -239,7 +239,7 @@
                 </div>
                 <div
                   class="detail_button_out_dis"
-                  v-if="!(!isUser && scope.row.planStatus == '3'&&scope.row.enable=='1')"
+                  v-if="!((userInfo.roleType=='5'&&scope.row.planStatus == '3')||(!isUser && scope.row.planStatus == '3'&&scope.row.enable=='1'))"
                 >
                   <div
                     class="detail_button_dis"
@@ -252,7 +252,7 @@
                 </div>
                 <div
                   class="detail_button_out"
-                  v-if="!isUser && scope.row.planStatus == '3'&&scope.row.enable=='1'"
+                  v-if="(userInfo.roleType=='5'&&scope.row.planStatus == '3')||(!isUser && scope.row.planStatus == '3'&&scope.row.enable=='1')"
                 >
                   <div class="detail_button" @click="planUser(scope.row)">
                     <img src="../../../assets/img/table/search.png" />
@@ -261,7 +261,7 @@
                 </div>
                 <div
                   class="detail_button_out_dis"
-                  v-if="!(!isUser && scope.row.planStatus == '3'&&scope.row.enable=='1')"
+                  v-if="!((userInfo.roleType=='5'&&scope.row.planStatus == '3')||(!isUser && scope.row.planStatus == '3'&&scope.row.enable=='1'))"
                 >
                   <div
                     class="detail_button_dis"