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
59917b0d
Commit
59917b0d
authored
Sep 16, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式化
parent
c8a450eb
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
824 additions
and
760 deletions
+824
-760
userList.vue
src/components/class/userList.vue
+776
-742
role.vue
src/components/system/role.vue
+48
-18
No files found.
src/components/class/userList.vue
View file @
59917b0d
This diff is collapsed.
Click to expand it.
src/components/system/role.vue
View file @
59917b0d
...
...
@@ -13,8 +13,14 @@
<el-table-column
prop=
"created_at"
label=
"创建时间"
sortable
></el-table-column>
<el-table-column
v-if=
"!$store.state.readonly"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
plain
type=
"primary"
v-if=
"!$store.state.readonly"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"danger"
plain
@
click=
"del(scope.row)"
v-if=
"$store.state.deletePermission && !$store.state.readonly"
>
删除
</el-button>
<el-button
size=
"mini"
plain
type=
"primary"
@
click=
"edit(scope.row)"
v-if=
"!$store.state.readonly"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"danger"
plain
@
click=
"del(scope.row)"
v-if=
"$store.state.deletePermission && !$store.state.readonly"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -39,19 +45,43 @@
<span
class=
"custom-tree-node"
slot-scope=
"{ node, data }"
>
<span>
{{ node.label }}
</span>
<span
v-if=
"data.pid !== 0"
>
<el-checkbox
v-model=
"data.refund"
v-if=
"data.cover ==='5-1'|| data.cover=== '5-10'|| data.cover=== '5-9'"
>
退款
</el-checkbox>
<el-checkbox
v-model=
"data.refund"
v-if=
"data.cover ==='10-1' "
>
类别管理
</el-checkbox>
<el-checkbox
v-model=
"data.promoter"
v-if=
"data.cover ==='5-1' "
>
编辑推广人
</el-checkbox>
<el-checkbox
v-model=
"data.refund"
v-if=
"data.cover ==='2-3'|| data.cover=== '3-1'|| data.cover=== '3-2' || data.cover=== '3-6' || data.cover=== '3-7' "
>
添加观摩班用户
</el-checkbox>
<el-checkbox
v-model=
"data.classManage"
v-if=
"data.cover ==='2-3'|| data.cover=== '3-1'|| data.cover=== '3-2' || data.cover=== '3-6' || data.cover=== '3-7' "
>
添加带班班用户
</el-checkbox>
<el-checkbox
v-model=
"data.classManageUnlimited"
v-if=
"data.cover ==='2-3'|| data.cover=== '3-1'|| data.cover=== '3-2' || data.cover=== '3-6' || data.cover=== '3-7' "
>
添加观摩班(无限制)
</el-checkbox>
<el-checkbox
v-model=
"data.classTakeUnlimited"
v-if=
"data.cover ==='2-3'|| data.cover=== '3-1'|| data.cover=== '3-2' || data.cover=== '3-6' || data.cover=== '3-7' "
>
添加带班班(无限制)
</el-checkbox>
<el-checkbox
v-model=
"data.distribution"
v-if=
"data.cover ==='5-9'||data.cover ==='7-9'"
@
change=
"distribution"
>
批量分配
</el-checkbox>
<el-checkbox
v-model=
"data.exportFinish"
v-if=
"data.cover === '2-3'"
>
导出完课用户
</el-checkbox>
<el-checkbox
v-model=
"data.import"
v-if=
"data.cover ==='6-3'||data.cover ==='5-3'||data.cover ==='5-9'||data.cover ==='6-4'"
>
导入
</el-checkbox>
<el-checkbox
v-model=
"data.export"
v-if=
"exportMenuList.indexOf(data.cover) >-1"
>
导出
</el-checkbox>
<el-checkbox
v-model=
"data.readonly"
>
只读
</el-checkbox>
<el-checkbox
v-model=
"data.delete"
>
删除
</el-checkbox>
<el-checkbox
v-model=
"data.refund"
v-if=
"data.cover ==='5-1'|| data.cover=== '5-10'|| data.cover=== '5-9'"
>
退款
</el-checkbox>
<el-checkbox
v-model=
"data.refund"
v-if=
"data.cover ==='10-1' "
>
类别管理
</el-checkbox>
<el-checkbox
v-model=
"data.promoter"
v-if=
"data.cover ==='5-1' "
>
编辑推广人
</el-checkbox>
<el-checkbox
v-model=
"data.refund"
v-if=
"data.cover ==='2-3'|| data.cover=== '3-1'|| data.cover=== '3-2' || data.cover=== '3-6' || data.cover=== '3-7' "
>
添加观摩班用户
</el-checkbox>
<el-checkbox
v-model=
"data.classManage"
v-if=
"data.cover ==='2-3'|| data.cover=== '3-1'|| data.cover=== '3-2' || data.cover=== '3-6' || data.cover=== '3-7' "
>
添加带班班用户
</el-checkbox>
<el-checkbox
v-model=
"data.classManageUnlimited"
v-if=
"data.cover ==='2-3'|| data.cover=== '3-1'|| data.cover=== '3-2' || data.cover=== '3-6' || data.cover=== '3-7' "
>
添加观摩班(无限制)
</el-checkbox>
<el-checkbox
v-model=
"data.classTakeUnlimited"
v-if=
"data.cover ==='2-3'|| data.cover=== '3-1'|| data.cover=== '3-2' || data.cover=== '3-6' || data.cover=== '3-7' "
>
添加带班班(无限制)
</el-checkbox>
<el-checkbox
v-model=
"data.distribution"
v-if=
"data.cover ==='5-9'||data.cover ==='7-9'"
@
change=
"distribution"
>
批量分配
</el-checkbox>
<el-checkbox
v-model=
"data.exportFinish"
v-if=
"data.cover === '2-3'"
>
导出完课用户
</el-checkbox>
<el-checkbox
v-model=
"data.import"
v-if=
"data.cover ==='6-3'||data.cover ==='5-3'||data.cover ==='5-9'||data.cover ==='6-4'"
>
导入
</el-checkbox>
<el-checkbox
v-model=
"data.export"
v-if=
"exportMenuList.indexOf(data.cover) >-1"
>
导出
</el-checkbox>
<el-checkbox
v-model=
"data.readonly"
>
只读
</el-checkbox>
<el-checkbox
v-model=
"data.delete"
>
删除
</el-checkbox>
</span>
</span>
</el-tree>
...
...
@@ -128,7 +158,7 @@
j
.
delete
=
false
;
if
(
this
.
exportMenuList
.
indexOf
(
j
.
cover
)
>
-
1
)
j
.
export
=
false
;
if
(
j
.
cover
===
"5-9"
||
j
.
cover
===
"7-9"
)
j
.
distribution
=
false
;
if
(
j
.
cover
===
"6-3"
||
j
.
cover
===
"5-3"
||
j
.
cover
===
"5-9"
||
j
.
cover
===
"6-4"
)
j
.
import
=
false
;
if
(
j
.
cover
===
"6-3"
||
j
.
cover
===
"5-3"
||
j
.
cover
===
"5-9"
||
j
.
cover
===
"6-4"
)
j
.
import
=
false
;
if
(
j
.
name
===
'月课订单列表'
||
j
.
name
===
'日课订单列表'
||
j
.
name
===
"来源码管理"
||
j
.
cover
===
"5-9"
||
j
.
cover
===
"2-3"
||
j
.
cover
===
"3-1"
||
j
.
cover
===
'3-2'
||
j
.
cover
===
"3-6"
||
j
.
cover
===
"3-7"
)
j
.
refund
=
false
;
if
(
j
.
cover
===
"2-3"
||
j
.
cover
===
"3-1"
||
j
.
cover
===
'3-2'
||
j
.
cover
===
"3-6"
||
j
.
cover
===
"3-7"
)
{
...
...
@@ -179,7 +209,7 @@
j
.
delete
=
false
;
if
(
this
.
exportMenuList
.
indexOf
(
j
.
cover
)
>
-
1
)
j
.
export
=
false
;
if
(
j
.
cover
===
"5-9"
||
j
.
cover
===
"7-9"
)
j
.
distribution
=
false
;
if
(
j
.
cover
===
"6-3"
||
j
.
cover
===
"5-3"
||
j
.
cover
===
"5-9"
||
j
.
cover
===
"6-4"
)
j
.
import
=
false
;
if
(
j
.
cover
===
"6-3"
||
j
.
cover
===
"5-3"
||
j
.
cover
===
"5-9"
||
j
.
cover
===
"6-4"
)
j
.
import
=
false
;
if
(
j
.
name
===
'月课订单列表'
||
j
.
name
===
'日课订单列表'
||
j
.
name
===
"来源码管理"
||
j
.
cover
===
"5-9"
||
j
.
cover
===
"2-3"
||
j
.
cover
===
"3-1"
||
j
.
cover
===
'3-2'
||
j
.
cover
===
"3-6"
||
j
.
cover
===
"3-7"
)
j
.
refund
=
false
;
if
(
j
.
cover
===
"2-3"
||
j
.
cover
===
"3-1"
||
j
.
cover
===
'3-2'
||
j
.
cover
===
"3-6"
||
j
.
cover
===
"3-7"
)
{
...
...
@@ -219,7 +249,7 @@
x
.
classManageUnlimited
=
!!
i
.
classManageUnlimited
;
x
.
classTakeUnlimited
=
!!
i
.
classTakeUnlimited
;
}
if
(
i
.
cover
===
"6-3"
||
i
.
cover
===
"5-3"
||
i
.
cover
===
"5-9"
||
i
.
cover
===
"6-4"
)
{
if
(
i
.
cover
===
"6-3"
||
i
.
cover
===
"5-3"
||
i
.
cover
===
"5-9"
||
i
.
cover
===
"6-4"
)
{
x
.
import
=
!!
i
.
import
;
}
if
(
i
.
cover
===
"5-9"
||
i
.
cover
===
"7-9"
)
{
...
...
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