Commit fa719c17 authored by 赵茹林's avatar 赵茹林

新增 导出完课用户的权限

parent ad61aa1e
......@@ -45,6 +45,7 @@ export default {
j.router.meta.classManage = !!find.classManage;
j.router.meta.classManageUnlimited = !!find.classManageUnlimited;
j.router.meta.classTakeUnlimited = !!find.classTakeUnlimited;
j.router.meta.exportFinish = !!find.exportFinish;
j.router.meta.promoter = !!find.promoter;
j.router.meta.import = !!find.import;
t.push(j);
......
<template>
<div class="class admin-refresh">
<div class="form-block section-search search-single">
<el-form label-width="90px" inline>
<el-form label-width="90px" inline size="small">
<el-form-item>
<el-cascader
:popper-class="'refresh-cascader-multi width-560'"
......@@ -14,10 +14,9 @@
</el-form-item>
<el-form-item>
<el-select
filterable
v-model="teacher_id"
placeholder="请选择老师"
@change="getClassList" clearable>
style="width: 160px;" filterable
v-model="teacher_id" @change="getClassList"
placeholder="请选择老师" clearable>
<el-option
v-for="(data,index) in teacherList"
:key="index"
......@@ -30,7 +29,7 @@
</el-form-item>
<el-form-item style="float: right">
<div class="search-btn-wrapper">
<el-button @click="onExport" type="primary" v-if="$store.state.export" plain>导出完课用户</el-button>
<el-button @click="onExport" type="primary" v-if="$store.state.exportFinish" plain>导出完课用户</el-button>
<el-button @click="onAdd" type="success" v-if="!$store.state.readonly">添加班级</el-button>
<el-button type="success" @click="sendMsg">发送活动通知</el-button>
</div>
......
This diff is collapsed.
......@@ -100,6 +100,7 @@ router.beforeEach((to,from,next)=> {
store.dispatch('promoter',to.meta.promoter)
store.dispatch('classManageUnlimited',to.meta.classManageUnlimited)
store.dispatch('classTakeUnlimited',to.meta.classTakeUnlimited)
store.dispatch('exportFinish',to.meta.exportFinish)
console.log(to.meta)
if(to.name==='userDetail'){
let list = JSON.parse(localStorage.getItem('permission'))
......
......@@ -35,6 +35,9 @@ export default{
classTakeUnlimited({commit},data){
commit('classTakeUnlimited',data)
},
exportFinish({commit},data){
commit('exportFinish',data)
},
promoter({commit},data){
commit('promoter',data)
}
......
......@@ -17,6 +17,7 @@ export default new vuex.Store({
classManage:false,
classManageUnlimited:false,
classTakeUnlimited:false,
exportFinish:false,
import:false,
promoter:false,
mainLoad:true,
......
......@@ -33,6 +33,9 @@ const mutations={
classManageUnlimited(state,data){
state.classManageUnlimited=data;
},
exportFinish(state,data){
state.exportFinish=data;
},
classTakeUnlimited(state,data){
state.classTakeUnlimited=data;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment