Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
2f8f4156
提交
2f8f4156
编写于
6月 20, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
解决:选择组件有问题
上级
d2a020cb
变更
5
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
1083 行增加
和
110 行删除
+1083
-110
course-list.vue
src/components/education/custom/course-list.vue
+21
-6
fetch.js
src/utils/fetch.js
+1
-1
edit-custom copy 2.vue
src/views/education/edit-custom copy 2.vue
+910
-0
edit-custom.vue
src/views/education/edit-custom.vue
+140
-100
external-resource-manage.vue
src/views/education/external-resource-manage.vue
+11
-3
未找到文件。
src/components/education/custom/course-list.vue
浏览文件 @
2f8f4156
...
...
@@ -8,8 +8,14 @@
<li
class=
"order"
>
<div
class=
"num"
@
click=
"toggleOrder"
>
<span>
学习人数
</span>
<img
v-show=
"!isRise"
src=
"../../../assets/custom/icon/icon-rise.png"
alt
/>
<img
v-show=
"isRise"
src=
"../../../assets/custom/icon/icon-drop.png"
alt
/>
<span
v-show=
"kind == 0"
>
<img
v-show=
"!isRise"
src=
"../../../assets/custom/icon/icon-rise.png"
alt
/>
<img
v-show=
"isRise"
src=
"../../../assets/custom/icon/icon-drop.png"
alt
/>
</span>
<span
v-show=
"kind == 1"
>
<img
v-show=
"!isRiseOrg"
src=
"../../../assets/custom/icon/icon-rise.png"
alt
/>
<img
v-show=
"isRiseOrg"
src=
"../../../assets/custom/icon/icon-drop.png"
alt
/>
</span>
</div>
<div
class=
"cart-wrapper"
>
<div
class=
"cart"
@
click=
"toggleCart"
>
...
...
@@ -114,10 +120,17 @@ export default {
...
mapActions
([
"setCartList"
,
"setSearchParam"
,
"setSearchParamOrg"
]),
toggleOrder
()
{
this
.
isRise
=
!
this
.
isRise
;
let
dir
=
this
.
isRise
?
1
:
2
;
this
.
searchParam
.
dir
=
dir
;
this
.
setSearchParam
(
this
.
searchParam
);
if
(
this
.
kind
==
0
)
{
this
.
isRise
=
!
this
.
isRise
;
let
dir
=
this
.
isRise
?
1
:
2
;
this
.
searchParam
.
dir
=
dir
;
this
.
setSearchParam
(
this
.
searchParam
);
}
else
{
this
.
isRiseOrg
=
!
this
.
isRiseOrg
;
let
dir
=
this
.
isRiseOrg
?
1
:
2
;
this
.
searchParamOrg
.
dir
=
dir
;
this
.
setSearchParamOrg
(
this
.
searchParamOrg
);
}
},
toggleCart
()
{
this
.
isShowCart
=
!
this
.
isShowCart
;
...
...
@@ -155,6 +168,8 @@ export default {
this
.
setCartList
(
this
.
cartList
);
this
.
$forceUpdate
();
},
// 通知父组件,打开创建资源(课程)弹框
showOrgCourse
()
{
this
.
$emit
(
'showOrgCourse'
,
'add'
);
},
...
...
src/utils/fetch.js
浏览文件 @
2f8f4156
...
...
@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
}
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
config
.
headers
[
'token'
]
=
'
BCBEB604699441FE86DDB0C5C19A852B
'
;
config
.
headers
[
'token'
]
=
'
0BC342A9462E400FBEBBDAE1DB82C7DA
'
;
// config.headers['token'] = localStorage.getItem('storageToken')
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
...
...
src/views/education/edit-custom copy 2.vue
0 → 100644
浏览文件 @
2f8f4156
此差异已折叠。
点击以展开。
src/views/education/edit-custom.vue
浏览文件 @
2f8f4156
此差异已折叠。
点击以展开。
src/views/education/external-resource-manage.vue
浏览文件 @
2f8f4156
...
...
@@ -22,7 +22,7 @@
<el-form-item
label=
"创建日期:"
class=
"search-item"
>
<el-date-picker
v-model=
"searchForm.createdTime"
type=
"date
time
"
type=
"date"
size=
"small"
class=
"form-width"
value-format=
"yyyy-MM-dd"
...
...
@@ -176,9 +176,17 @@
// 查询列表
search
()
{
this
.
GET
(
"contents/course/custom/check/v1/list"
,
this
.
searchForm
).
then
(
res
=>
{
let
searchForm
=
Object
.
assign
({},
this
.
searchForm
);
let
createdTime
=
searchForm
.
createdTime
;
if
(
createdTime
)
{
searchForm
.
createdTime
=
new
Date
(
searchForm
.
createdTime
).
getTime
();
}
else
{
searchForm
.
createdTime
=
''
;
}
this
.
GET
(
"contents/course/custom/check/v1/list"
,
searchForm
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
tableList
=
res
.
data
||
[{}];
this
.
tableList
=
res
.
data
&&
res
.
data
.
courseList
||
[];
this
.
totalRows
=
res
.
data
.
totalSize
||
0
;
// this.protocolInfo = res.data;
}
});
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录