mo преди 3 години
родител
ревизия
83e574f714

+ 4 - 4
src/views/main/cloudDate/index.vue

@@ -1,9 +1,9 @@
 <template>
   <div>
-    <allDate class="marginBottom20" />
-    <organDate class="marginBottom20"/>
-    <activeUserNum  class="marginBottom20" />
-    <organRanking />
+    <allDate v-permission="'studentManage/getCloudStudyStudentOverView'" class="marginBottom20" />
+    <organDate  v-permission="'studentManage/organStudentOverView'"  class="marginBottom20"/>
+    <activeUserNum  v-permission="'newIndex/clound'"  class="marginBottom20" />
+    <organRanking  v-permission="'organStudentOverView'" />
   </div>
 </template>
 <script>

+ 13 - 5
src/views/main/cloudDate/organDate.vue

@@ -2,7 +2,13 @@
   <div>
     <el-card>
       <headers title="分部数据" @changeOrgan="changeOrgan" />
-      <el-button type="primary" @click="organDateExport" size="mini">导出</el-button>
+      <el-button
+        type="primary"
+        v-permission="'export/organStudentOverView'"
+        @click="organDateExport"
+        size="mini"
+        >导出</el-button
+      >
       <div class="tableWrap">
         <el-table
           style="width: 100%"
@@ -168,15 +174,17 @@
           <el-table-column align="center" prop="studentId" label="操作">
             <template slot-scope="scope">
               <div>
-                <el-button type="text" @click="gotoDetail(scope.row)"
-                  >详情</el-button
-                >
+                <auth auths="/organDateDetail">
+                  <el-button type="text" @click="gotoDetail(scope.row)"
+                    >详情</el-button
+                  >
+                </auth>
               </div>
             </template>
           </el-table-column>
         </el-table>
         <pagination
-         :autoScroll='false'
+          :autoScroll="false"
           :total.sync="rules.total"
           :page.sync="rules.page"
           :limit.sync="rules.limit"

+ 2 - 2
src/views/main/cloudDate/organDateDetail.vue

@@ -34,7 +34,7 @@
         <el-form-item>
           <!-- <el-button native-type="submit" type="primary">搜索</el-button>
           <el-button native-type="reset" type="danger">重置</el-button> -->
-          <el-button type="primary" @click="organDateExport" >导出</el-button>
+          <el-button type="primary" @click="organDateExport" v-permission="'export/organTeacherMemberStudentData'">导出</el-button>
         </el-form-item>
       </save-form>
       <div class="tableWrap">
@@ -180,7 +180,7 @@ export default {
       this.$router.push({ path: "/main/main?tabrouter=cloudDate" });
     },
     organDateExport(){
-            let params = { ...this.searchForm,  };
+      let params = { ...this.searchForm,  };
       Export(
         this,
         {

+ 1 - 1
src/views/main/cloudDate/organRanking.vue

@@ -3,7 +3,7 @@
     <el-card>
       <headers title="分部排行" :hidenOrgan="true" />
       <div class="wrap">
-        <el-button type="primary" size="mini" @click="rankingExport">导出</el-button>
+        <el-button type="primary" size="mini" @click="rankingExport" v-permission="'export/cloudStudyStudentOverView'">导出</el-button>
         <div class="chioseBox">
           <el-date-picker
             v-model="date"

+ 2 - 2
vue.config.js

@@ -20,8 +20,8 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // let target = 'http://192.168.3.148:8000' //邹璇
 // let target = 'http://192.168.3.112:8000' //勇哥
 // let target = 'http://dev.dayaedu.com' // 开发环境
-// let target = 'https://test.dayaedu.com' //测试环境
-let target = 'http://192.168.3.134:8000' // 乔
+let target = 'https://test.dayaedu.com' //测试环境
+// let target = 'http://192.168.3.134:8000' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {
   /**