Przeglądaj źródła

权限添加完毕

1
mo 4 lat temu
rodzic
commit
80ca930b7f

+ 2 - 0
src/views/indexErrDataRecord/components/errorCourse.vue

@@ -9,6 +9,7 @@
         @reset="reset"
         ref="searchForm"
         :model.sync="searchForm"
+         :saveKey="`indexErrDataRecord-${searchType}`"
       >
         <el-form-item>
           <el-input
@@ -227,6 +228,7 @@
           :limit.sync="rules.limit"
           :page-sizes="rules.page_size"
           @pagination="getList"
+           :saveKey="`indexErrDataRecord-${searchType}`"
           sync
         />
       </div>

+ 17 - 8
src/views/indexErrDataRecord/components/historyError.vue

@@ -6,7 +6,7 @@
       ref="searchForm"
       @submit="search"
       @reset="onReSet"
-      saveKey="/main/main/teamSchedule"
+      saveKey="indexErrDataRecord-historyError"
     >
       <el-form-item prop="organIds">
         <el-select
@@ -40,7 +40,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">导出</el-button>
+        <el-button type="primary" v-if="permission('export/exportIndexHistoryErrData')" @click="exportIndexErr">导出</el-button>
       </el-form-item>
     </save-form>
     <el-table
@@ -70,7 +70,7 @@
       >
         <template slot-scope="scope">
           <div>
-            {{ scope.row.musicPatrolItemSurplus?scope.row.musicPatrolItemSurplus:'--'}} / {{ scope.row.musicPatrolItem?scope.row.musicPatrolItem:'--'}}
+            {{ scope.row.musicPatrolItemSurplus?scope.row.musicPatrolItemSurplus:'0'}} / {{ scope.row.musicPatrolItem?scope.row.musicPatrolItem:'0'}}
           </div>
         </template>
       </el-table-column>
@@ -81,7 +81,7 @@
       >
         <template slot-scope="scope">
           <div>
-             {{ scope.row.inspectionItemPlanSurplus?scope.row.inspectionItemPlanSurplus:'--'}} / {{ scope.row.inspectionItemPlan?scope.row.inspectionItemPlan:'--'}}
+             {{ scope.row.inspectionItemPlanSurplus?scope.row.inspectionItemPlanSurplus:'0'}} / {{ scope.row.inspectionItemPlan?scope.row.inspectionItemPlan:'0'}}
           </div>
         </template>
       </el-table-column>
@@ -92,7 +92,7 @@
       >
            <template slot-scope="scope">
           <div>
-             {{ scope.row.studentVisitSurplus?scope.row.studentVisitSurplus:'--'}} / {{ scope.row.studentVisit?scope.row.studentVisit:'--'}}
+             {{ scope.row.studentVisitSurplus?scope.row.studentVisitSurplus:'0'}} / {{ scope.row.studentVisit?scope.row.studentVisit:'0'}}
           </div>
         </template>
       </el-table-column>
@@ -104,7 +104,7 @@
       >
             <template slot-scope="scope">
           <div>
-             {{ scope.row.teacherExceptionAttendanceSurplus?scope.row.teacherExceptionAttendanceSurplus:'--'}} / {{scope.row.teacherExceptionAttendance?scope.row.teacherExceptionAttendance:'--'}}
+             {{ scope.row.teacherExceptionAttendanceSurplus?scope.row.teacherExceptionAttendanceSurplus:'0'}} / {{scope.row.teacherExceptionAttendance?scope.row.teacherExceptionAttendance:'0'}}
           </div>
         </template>
       </el-table-column>
@@ -117,7 +117,7 @@
           <div
 
           >
-            {{ scope.row.teacherNotAClassSurplus?scope.row.teacherNotAClassSurplus:'-'+'/'+ scope.row.teacherNotAClass?scope.row.teacherNotAClass:'-'}}
+            {{ scope.row.teacherNotAClassSurplus?scope.row.teacherNotAClassSurplus:'0'}} / {{ scope.row.teacherNotAClass?scope.row.teacherNotAClass:'0'}}
           </div>
         </template>
       </el-table-column>
@@ -125,7 +125,7 @@
     <pagination
       sync
       :total.sync="rules.total"
-      save-key="teamSchedule"
+       saveKey="indexErrDataRecord-historyError"
       :page.sync="rules.page"
       :limit.sync="rules.limit"
       :page-sizes="rules.page_size"
@@ -140,6 +140,7 @@ import pagination from "@/components/Pagination/index";
 import { getIndexErrData } from "../api";
 import dayjs from "dayjs";
 import { getTimes } from "@/utils";
+import { Export } from "@/utils/downLoadFile";
 export default {
   props: ["searchType"],
   components: { pagination },
@@ -234,6 +235,14 @@ export default {
         });
       }
     },
+    exportIndexErr(){
+         Export(this, {
+          url: '/api-web/export/exportIndexHistoryErrData',
+          fileName: '首页历史异常统计.xls',
+          method: 'post',
+          params:qs.stringify({...this.searchForm})
+        }, '您确定导出首页历史异常统计?')
+    }
   },
 };
 </script>

+ 5 - 3
src/views/indexErrDataRecord/components/patrol.vue

@@ -17,6 +17,7 @@
         @submit="search"
         @reset="onReSet"
         :model="searchForm"
+        :saveKey="`indexErrDataRecord-${searchType}`"
       >
         <el-form-item prop="search">
           <el-input
@@ -190,7 +191,7 @@
           <el-table-column align="center" width="250px" label="操作" v-if="searchType =='MUSIC_PATROL_ITEM'">
             <template slot-scope="scope">
               <auth
-                auths="inspectionItemPlanConclusion/getPlanConclusion"
+                auths="inspectionItemPlanConclusion/getPlanConclusion/4403"
                 v-if="scope.row.status != 0"
               >
                 <el-button type="text" @click="onLook(scope.row)"
@@ -198,7 +199,7 @@
                 >
               </auth>
               <auth
-                auths="inspectionItemPlanConclusion/GPS-INFO"
+                auths="inspectionItemPlanConclusion/GPS-INFO/4404"
                 v-if="scope.row.status != 0"
               >
                 <el-button type="text" @click="onGPS(scope.row)"
@@ -206,7 +207,7 @@
                 >
               </auth>
               <auth
-                auths="inspectionItemPlanConclusion/exportPlanConclusion"
+                auths="inspectionItemPlanConclusion/exportPlanConclusion/4405"
                 v-if="scope.row.status != 0"
               >
                 <el-button type="text" @click="onExport(scope.row)"
@@ -225,6 +226,7 @@
           </el-table-column>
         </el-table>
         <pagination
+        :saveKey="`indexErrDataRecord-${searchType}`"
           :total.sync="pageInfo.total"
           sync
           :page.sync="pageInfo.page"

+ 2 - 2
src/views/indexErrDataRecord/components/visitError.vue

@@ -6,7 +6,7 @@
       ref="searchForm"
       @submit="search"
       @reset="onReSet"
-      saveKey="/main/main/teamSchedule"
+      :saveKey="`indexErrDataRecord-${searchType}`"
     >
       <el-form-item prop="organId">
         <el-select
@@ -148,7 +148,7 @@
     <pagination
       sync
       :total.sync="rules.total"
-      save-key="teamSchedule"
+       :saveKey="`indexErrDataRecord-${searchType}`"
       :page.sync="rules.page"
       :limit.sync="rules.limit"
       :page-sizes="rules.page_size"

+ 6 - 6
src/views/indexErrDataRecord/index.vue

@@ -13,7 +13,7 @@
     <div class="m-core">
       <tab-router @change="changeKey">
               <el-tab-pane
-          v-if="permission('/main/main/allData/826')"
+          v-if="permission('/indexErrDataRecord/historyError')"
           lazy
           label="异常数据查询汇总"
           name="historyError"
@@ -21,7 +21,7 @@
           <historyError v-if="activeKey === 'historyError'"  />
         </el-tab-pane>
         <el-tab-pane
-          v-if="permission('/main/main/allData/826')"
+          v-if="permission('/indexErrDataRecord/patrol')"
           lazy
           label="乐团巡查事项异常"
           name="patrol"
@@ -29,7 +29,7 @@
           <patrol v-if="activeKey === 'patrol'"  searchType='MUSIC_PATROL_ITEM'/>
         </el-tab-pane>
         <el-tab-pane
-          v-if="permission('/main/main/allData/826')"
+          v-if="permission('/indexErrDataRecord/inspection')"
           lazy
           label="乐团巡查任务未提交"
           name="inspection"
@@ -37,7 +37,7 @@
         <patrol v-if="activeKey === 'inspection'"  searchType='INSPECTION_ITEM_PLAN'/>
         </el-tab-pane>
         <el-tab-pane
-          v-if="permission('/main/main/allData/826')"
+          v-if="permission('/indexErrDataRecord/studentvisit')"
           lazy
           label="回访任务未完成"
           name="studentvisit"
@@ -45,7 +45,7 @@
           <visitError v-if="activeKey === 'studentvisit'" searchType='STUDENT_VISIT'/>
         </el-tab-pane>
         <el-tab-pane
-          v-if="permission('/main/main/allData/826')"
+          v-if="permission('/indexErrDataRecord/errattendance')"
           lazy
           label="课程考勤异常"
           name="errattendance"
@@ -53,7 +53,7 @@
           <errorCourse v-if="activeKey === 'errattendance'"   searchType="ERR_ATTENDANCE"/>
         </el-tab-pane>
         <el-tab-pane
-          v-if="permission('/main/main/allData/826')"
+          v-if="permission('/indexErrDataRecord/noattendance')"
           lazy
           label="课程异常"
           name="noattendance"