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
ed6e05ac
Commit
ed6e05ac
authored
Sep 20, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
期数修改
parent
aea35002
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
20 deletions
+22
-20
index.js
config/index.js
+2
-2
index.vue
src/components/lesson/index.vue
+0
-4
index.vue
src/components/periods/index.vue
+1
-1
newDialog.vue
src/components/periods/newDialog.vue
+7
-7
weChatResource.vue
src/components/weChat/weChatResource.vue
+12
-6
No files found.
config/index.js
View file @
ed6e05ac
...
...
@@ -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/lesson/index.vue
View file @
ed6e05ac
...
...
@@ -29,10 +29,6 @@
<el-table
:data=
"userList"
style=
"width: 100%"
>
<el-table-column
prop=
"id"
label=
"id"
>
</el-table-column>
<el-table-column
prop=
"title"
label=
"课程名"
>
...
...
src/components/periods/index.vue
View file @
ed6e05ac
...
...
@@ -226,7 +226,6 @@
this
.
newDialog
.
form
.
start_at
=
row
.
start_at
;
this
.
newDialog
.
form
.
title
=
row
.
title
;
this
.
newDialog
.
form
.
goods_id
=
row
.
goods_id
;
console
.
log
(
'row'
,
row
)
let
weekList
=
[];
if
(
row
.
rest_week_day
){
row
.
rest_week_day
.
split
(
','
).
forEach
((
val
)
=>
{
...
...
@@ -235,6 +234,7 @@
}
this
.
newDialog
.
form
.
rest_week_day
=
weekList
;
let
teacherList
=
[];
console
.
log
(
'row edit'
,
row
);
if
(
row
.
teacher_ids
){
row
.
teacher_ids
.
split
(
','
).
forEach
((
val
)
=>
{
teacherList
.
push
(
parseInt
(
val
));
...
...
src/components/periods/newDialog.vue
View file @
ed6e05ac
...
...
@@ -11,7 +11,7 @@
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"商品名称"
prop=
"goods_id"
>
<el-select
v-model=
"form.goods_id"
placeholder=
"请选择"
clearable
@
change=
"onOptionChange"
>
<el-select
v-model=
"form.goods_id"
placeholder=
"请选择"
clearable
@
change=
"onOptionChange"
:disabled=
"form.id ? true : false"
>
<el-option
v-for=
"(data,index) in goodList"
:key=
"index"
...
...
@@ -45,7 +45,7 @@
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"带班老师"
prop=
"teacherList"
>
<el-form-item
label=
"带班老师"
prop=
"teacherList"
v-if =
"!form.id"
>
<el-select
v-model=
"form.teacherList"
multiple
placeholder=
"请选择"
>
<el-option
v-for=
"item in teacherOptions"
...
...
@@ -55,7 +55,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"观摩老师"
prop=
"viewTeacher"
>
<el-form-item
label=
"观摩老师"
prop=
"viewTeacher"
v-if =
"!form.id"
>
<el-select
v-model=
"form.viewTeacher"
placeholder=
"请选择"
>
<el-option
v-for=
"item in teacherOptions"
...
...
@@ -202,19 +202,19 @@
title
:
this
.
form
.
title
,
start_num
:
this
.
form
.
start_num
,
start_at
:
this
.
form
.
start_at
,
rest_week_day
:
this
.
form
.
rest_week_day
?
this
.
form
.
rest_week_day
.
join
(
','
)
:
''
,
teacher_ids
:
this
.
form
.
teacherList
.
join
(
','
),
view_teacher_id
:
parseInt
(
this
.
form
.
viewTeacher
)
rest_week_day
:
this
.
form
.
rest_week_day
?
this
.
form
.
rest_week_day
.
join
(
','
)
:
''
}
if
(
this
.
form
.
id
)
{
getEditPeriodsApi
(
this
.
form
.
id
,
json
).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'
添加
成功!'
message
:
'
编辑
成功!'
});
this
.
$emit
(
"reflash"
);
})
}
else
{
json
.
teacher_ids
=
this
.
form
.
teacherList
.
join
(
','
);
json
.
view_teacher_id
=
parseInt
(
this
.
form
.
viewTeacher
);
getAddPeriodsApi
(
_id
,
json
).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
...
...
src/components/weChat/weChatResource.vue
View file @
ed6e05ac
...
...
@@ -4,7 +4,7 @@
<div>
<ul
class=
"media-navs"
>
<!---->
<!--
<li
class=
"media-nav js_top"
:class=
"type === '
view' ? 'media-current-nav' : ''"
@
click=
"getMediaType('view
')"
>
-->
<!--
<li
class=
"media-nav js_top"
:class=
"type === '
news' ? 'media-current-nav' : ''"
@
click=
"getMediaType('news
')"
>
-->
<!--
<a
href=
"javascript:void(0);"
>
图文消息
<br
/></a>
-->
<!--
</li>
-->
<li
class=
"media-nav js_top"
:class=
"type === 'image' ? 'media-current-nav' : ''"
@
click=
"getMediaType('image')"
>
...
...
@@ -55,17 +55,23 @@
<el-table-column
label=
"URL"
>
<template
slot-scope=
"scope"
>
<a
:href=
"scope.row.url"
v-if=
"type === 'image'"
>
<a
:href=
"scope.row.url"
v-if=
"type === 'image'"
target=
"_blank"
>
<img
style=
"width: 60px;"
:src=
"scope.row.url"
/>
</a>
<video
v-if=
"type === 'video'"
width=
"100"
height=
"100"
controls=
"controls"
>
<source
:src=
"scope.row.url"
/>
Your browser does not support the video tag.
</video>
<!--
<video
v-if=
"type === 'video'"
width=
"100"
height=
"100"
controls=
"controls"
>
-->
<!--
<source
:src=
"scope.row.info.down_url"
/>
-->
<!--Your browser does not support the video tag.-->
<!--
</video>
-->
<a
:href=
"scope.row.info.down_url"
v-if=
"type === 'video'"
target=
"_blank"
>
{{
scope
.
row
.
info
.
title
}}
</a>
<audio
v-if=
"type === 'voice'"
id=
"myAudio"
controls
>
<source
:src=
"scope.row.url"
/>
Your browser does not support the audio element.
</audio>
<!--
<div
v-if=
"type === 'news'"
>
-->
<!--
<div
v-html=
"scope.row.content.news_item[0].content"
></div>
-->
<!--
</div>
-->
</
template
>
</el-table-column>
</el-table>
...
...
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