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
9483849d
Commit
9483849d
authored
Sep 10, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程管理bug&..
parent
edb86fab
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
151 additions
and
112 deletions
+151
-112
index.js
config/index.js
+2
-2
index.html
index.html
+1
-0
dialog.vue
src/components/lesson/dialog.vue
+140
-107
index.vue
src/components/lesson/index.vue
+1
-1
index.vue
src/components/periods/index.vue
+2
-0
newDialog.vue
src/components/periods/newDialog.vue
+3
-1
dialog.vue
src/components/single/dialog.vue
+2
-1
No files found.
config/index.js
View file @
9483849d
...
...
@@ -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
,
// 如果接口跨域,需要进行这个参数配置
}
},
...
...
index.html
View file @
9483849d
...
...
@@ -3,6 +3,7 @@
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"referrer"
content=
"never"
>
<link
rel=
"stylesheet"
href=
"https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css"
>
<title>
singsing-new-admin
</title>
</head>
...
...
src/components/lesson/dialog.vue
View file @
9483849d
This diff is collapsed.
Click to expand it.
src/components/lesson/index.vue
View file @
9483849d
...
...
@@ -72,7 +72,7 @@
</el-table-column>
</el-table>
<page
:total=
"total"
v-model=
"nowPage"
/>
<dialog-com
:dialogObj=
"dialogObj"
@
changeShow=
"changeShow"
@
reflash=
"getUser"
/>
<dialog-com
v-if=
"dialogObj.show"
:dialogObj=
"dialogObj"
@
changeShow=
"changeShow"
@
reflash=
"getUser"
/>
</div>
</template>
...
...
src/components/periods/index.vue
View file @
9483849d
...
...
@@ -183,6 +183,8 @@
onAdd
(){
this
.
newDialog
.
form
.
id
=
''
;
this
.
newDialog
.
start_num
=
''
;
this
.
newDialog
.
form
.
goods_id
=
''
;
this
.
newDialog
.
form
.
title
=
''
;
this
.
newDialog
.
form
.
start_at
=
''
;
this
.
newDialog
.
form
.
rest_week_day
=
[];
this
.
newDialog
.
form
.
teacher_ids
=
[];
...
...
src/components/periods/newDialog.vue
View file @
9483849d
...
...
@@ -26,7 +26,7 @@
<el-input
v-model=
"form.title"
></el-input>
</el-form-item>
<el-form-item
label=
"开始主题"
prop=
"start_num"
>
<el-select
v-model=
"form.start_num"
placeholder=
"请选择"
>
<el-select
v-model=
"form.start_num"
clearable
placeholder=
"请选择"
>
<el-option
v-for=
"item in itemOptions"
:key=
"item.id"
...
...
@@ -215,6 +215,8 @@
})
},
getLessonDetail
(
id
){
console
.
log
(
'getLessonDetail'
,
id
);
this
.
form
.
start_num
=
''
getLessonDetailApi
(
id
,{}).
then
((
res
)
=>
{
this
.
itemOptions
=
res
.
detail
[
res
.
type
]
})
...
...
src/components/single/dialog.vue
View file @
9483849d
...
...
@@ -171,7 +171,8 @@
this
.
form
=
{
name
:
res
.
name
,
num
:
res
.
num
,
cover
:
res
.
cover
cover
:
res
.
cover
,
category_name
:
res
.
category_name
};
if
(
this
.
form
.
cover
&&
this
.
form
.
cover
!==
''
){
this
.
imageList
=
[{
name
:
res
.
cover
,
url
:
process
.
env
.
IMAGE_URL_HEAD
+
res
.
cover
}];
...
...
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