Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
fa719c17
Commit
fa719c17
authored
Aug 15, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 导出完课用户的权限
parent
ad61aa1e
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
165 additions
and
154 deletions
+165
-154
App.vue
src/App.vue
+1
-0
index.vue
src/components/class/index.vue
+5
-6
role.vue
src/components/system/role.vue
+151
-148
index.js
src/router/index.js
+1
-0
actions.js
src/store/actions.js
+3
-0
index.js
src/store/index.js
+1
-0
mutations.js
src/store/mutations.js
+3
-0
No files found.
src/App.vue
View file @
fa719c17
...
...
@@ -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
);
...
...
src/components/class/index.vue
View file @
fa719c17
<
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.export
Finish
"
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>
...
...
src/components/system/role.vue
View file @
fa719c17
This diff is collapsed.
Click to expand it.
src/router/index.js
View file @
fa719c17
...
...
@@ -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'
))
...
...
src/store/actions.js
View file @
fa719c17
...
...
@@ -35,6 +35,9 @@ export default{
classTakeUnlimited
({
commit
},
data
){
commit
(
'classTakeUnlimited'
,
data
)
},
exportFinish
({
commit
},
data
){
commit
(
'exportFinish'
,
data
)
},
promoter
({
commit
},
data
){
commit
(
'promoter'
,
data
)
}
...
...
src/store/index.js
View file @
fa719c17
...
...
@@ -17,6 +17,7 @@ export default new vuex.Store({
classManage
:
false
,
classManageUnlimited
:
false
,
classTakeUnlimited
:
false
,
exportFinish
:
false
,
import
:
false
,
promoter
:
false
,
mainLoad
:
true
,
...
...
src/store/mutations.js
View file @
fa719c17
...
...
@@ -33,6 +33,9 @@ const mutations={
classManageUnlimited
(
state
,
data
){
state
.
classManageUnlimited
=
data
;
},
exportFinish
(
state
,
data
){
state
.
exportFinish
=
data
;
},
classTakeUnlimited
(
state
,
data
){
state
.
classTakeUnlimited
=
data
;
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment