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
09c2daa5
Commit
09c2daa5
authored
Sep 13, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add readonly for button
parent
61cc4136
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
34 deletions
+38
-34
index.js
config/index.js
+2
-2
index.vue
src/components/periods/index.vue
+10
-17
index.vue
src/components/shop/index.vue
+14
-12
index.vue
src/components/user/index.vue
+1
-1
index.js
src/router/index.js
+11
-2
No files found.
config/index.js
View file @
09c2daa5
...
...
@@ -12,8 +12,8 @@ module.exports = {
//本地代理设置
proxyTable
:
{
'/api'
:
{
target
:
'http://local.base-api.sing.com'
,
// 接口的域名
//
target: 'http://wechat.test.singsingenglish.com/',
//
target: 'http://local.base-api.sing.com', // 接口的域名
target
:
'http://wechat.test.singsingenglish.com/'
,
changeOrigin
:
true
,
// 如果接口跨域,需要进行这个参数配置
}
},
...
...
src/components/periods/index.vue
View file @
09c2daa5
...
...
@@ -28,7 +28,7 @@
<el-form-item>
<el-button
@
click=
"onSearch"
type=
"primary"
>
查询
</el-button>
</el-form-item>
<el-form-item
style=
"float: right;"
>
<el-form-item
style=
"float: right;"
v-if=
"!$store.state.readonly"
>
<el-button
@
click=
"onAdd"
type=
"primary"
>
添加期数
</el-button>
</el-form-item>
</el-form>
...
...
@@ -67,23 +67,16 @@
label=
"当前歌曲"
>
</el-table-column>
<el-table-column
prop=
"watch_num"
label=
"可看课包数"
>
</el-table-column>
<el-table-column
prop=
"duration_num"
label=
"续看课包数"
>
</el-table-column>
<el-table-column
prop=
"has_watch_num"
label=
"已看课包数"
>
</el-table-column>
<el-table-column
prop=
"has_duration_num"
label=
"已续看课包数"
>
label=
"看课情况"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
可看课包数:
{{
scope
.
row
.
watch_num
}}
<br>
已看课包数:
{{
scope
.
row
.
has_watch_num
}}
<br>
续看课包数:
{{
scope
.
row
.
duration_num
}}
<br>
已续看课包数:
{{
scope
.
row
.
has_duration_num
}}
</
template
>
</el-table-column>
<el-table-column
label=
"周几不上课"
>
label=
"周几不上课"
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
rest_week_day
|
dayFilter
}}
</
template
>
...
...
@@ -94,7 +87,7 @@
</el-table-column>
<el-table-column
label=
"操作"
width=
"148"
>
width=
"148"
v-if=
"!$store.state.readonly"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
plain
type=
"primary"
@
click=
"onEdit(scope.row)"
>
编辑
...
...
src/components/shop/index.vue
View file @
09c2daa5
...
...
@@ -82,18 +82,20 @@
<el-button
size=
"mini"
plain
type=
"primary"
@
click=
"detail(scope.row)"
>
查看详情
</el-button>
<el-button
v-if=
"scope.row.status === 1"
size=
"mini"
plain
type=
"primary"
@
click=
"onUp(scope.row)"
>
上架
</el-button>
<el-button
size=
"mini"
v-if=
"scope.row.status === 0"
plain
type=
"primary"
@
click=
"onDown(scope.row)"
>
下架
</el-button>
<el-button
size=
"mini"
plain
type=
"warning"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
plain
type=
"danger"
@
click=
"onDel(scope.row)"
>
删除
</el-button>
<template
v-if=
"!$store.state.readonly"
>
<el-button
v-if=
"scope.row.status === 1"
size=
"mini"
plain
type=
"primary"
@
click=
"onUp(scope.row)"
>
上架
</el-button>
<el-button
size=
"mini"
v-if=
"scope.row.status === 0"
plain
type=
"primary"
@
click=
"onDown(scope.row)"
>
下架
</el-button>
<el-button
size=
"mini"
plain
type=
"warning"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
plain
type=
"danger"
@
click=
"onDel(scope.row)"
>
删除
</el-button>
</
template
>
</div>
<el-button
slot=
"reference"
size=
"mini"
type=
"text"
>
操作
</el-button>
</el-popover>
...
...
src/components/user/index.vue
View file @
09c2daa5
...
...
@@ -66,7 +66,7 @@
label=
"操作"
width=
"300"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
plain
type=
"warning"
@
click=
"bindTeacher(scope.row)"
>
<el-button
size=
"mini"
plain
type=
"warning"
v-if=
"!$store.state.readonly"
@
click=
"bindTeacher(scope.row)"
>
绑定老师
</el-button>
<el-button
size=
"mini"
plain
type=
"primary"
@
click=
"detail(scope.row)"
>
...
...
src/router/index.js
View file @
09c2daa5
...
...
@@ -17,6 +17,16 @@ const router =new Router({
path
:
''
,
name
:
'first'
,
component
:
e
=>
require
([
'@/components/main'
],
e
),
},
{
path
:
'/userOrder/:id'
,
name
:
'userOrder'
,
component
:
e
=>
require
([
'@/components/userOrder'
],
e
),
},
{
path
:
'/teacher/:id'
,
name
:
'teacherDetail'
,
component
:
e
=>
require
([
'@/components/teacherDetail'
],
e
),
}
]
},
...
...
@@ -27,8 +37,7 @@ const router =new Router({
meta
:{
skip_auth
:
true
,
}
},
}
]
});
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
...
...
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