Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
ca0bebba
提交
ca0bebba
编写于
5月 29, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、倒序
2、第一次进来的默认值
上级
ad188a23
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
11 行删除
+15
-11
course-list.vue
src/components/education/custom/course-list.vue
+3
-3
course-select.vue
src/components/education/custom/course-select.vue
+2
-2
edit-custom.vue
src/views/education/edit-custom.vue
+10
-6
未找到文件。
src/components/education/custom/course-list.vue
浏览文件 @
ca0bebba
...
...
@@ -25,7 +25,7 @@
</div>
</li>
</ul>
<div
v-if=
"courseList.list.length"
class=
"list-wrapper"
>
<div
v-if=
"courseList
&& courseList.list && courseList
.list.length"
class=
"list-wrapper"
>
<ul
class=
"list"
>
<li
class=
"course"
...
...
@@ -59,7 +59,7 @@
</div>
<div
v-else
class=
"no-list"
>
<img
src=
"../../../assets/custom/icon/img-no-content.png"
alt
/>
<span
class=
"tips"
>
未查询到课程,请重新选择课程分类或课程等级吧!
</span>
<span
class=
"tips"
>
没有找到相关结果,请重新查询
</span>
</div>
<div
class=
"page-wrapper"
>
...
...
@@ -139,7 +139,7 @@ export default {
this
.
dialogObj
.
visible
=
true
;
return
;
}
this
.
cartList
.
push
(
item
);
this
.
cartList
.
unshift
(
item
);
// 倒序
}
else
{
let
delItemIndex
=
this
.
cartList
.
findIndex
(
course
=>
{
return
course
.
courseId
==
item
.
courseId
;
...
...
src/components/education/custom/course-select.vue
浏览文件 @
ca0bebba
...
...
@@ -234,9 +234,9 @@ export default {
this
.
allLabelList
.
forEach
((
item
,
index
)
=>
{
item
.
checked
=
false
;
item
.
subList
.
forEach
((
sub
,
subIndex
)
=>
{
sub
.
checked
=
fals
e
;
sub
.
checked
=
tru
e
;
});
});
});
this
.
setSubLabelList
(
this
.
allLabelList
[
0
].
subList
);
this
.
allLabelList
[
0
].
checked
=
true
;
this
.
selectLevel
(
0
);
...
...
src/views/education/edit-custom.vue
浏览文件 @
ca0bebba
...
...
@@ -159,7 +159,8 @@ export default {
projectStatus
:
1
,
//1.草稿 2.未上架 3.审核中/待审核 4.已上架 5.已下架 6.已拒绝/未上架
status4Flag
:
0
,
//0表示没有上过架,1表示上过架
isPreview
:
0
,
// 1表示是查看信息
maxLimitCreatedCustomProjectCountInYear
:
20
// 同一个用户每年能够创建的项目数
maxLimitCreatedCustomProjectCountInYear
:
20
,
// 同一个用户每年能够创建的项目数
allSubList
:
[],
};
},
computed
:
{
...
...
@@ -204,16 +205,15 @@ export default {
"setCourseLimitCount"
,
]),
initPageParams
()
{
initPageParams
(
labelIdList
)
{
let
searchParam
=
{
orderBy
:
2
,
dir
:
1
,
grade
:
0
,
pageNo
:
1
,
pageSize
:
10
,
labelIdList
:
[]
labelIdList
:
labelIdList
||
[]
};
this
.
setSearchParam
(
searchParam
);
this
.
setCartList
([]);
this
.
setCourseList
([]);
this
.
setAllLabelList
([]);
...
...
@@ -221,6 +221,7 @@ export default {
this
.
courseLimitCount
();
this
.
getLabelList
();
this
.
setSearchParam
(
searchParam
);
// this.getCourseList(searchParam);
},
...
...
@@ -240,22 +241,24 @@ export default {
// 先将所有的标签添加checked字段
let
labelList
=
res
.
data
;
let
allSubList
=
[];
let
labelIdList
=
[];
labelList
.
forEach
((
item
,
index
)
=>
{
item
.
checked
=
false
;
item
.
subList
.
forEach
((
sub
,
subIndex
)
=>
{
sub
.
parentIndex
=
index
;
sub
.
checked
=
fals
e
;
sub
.
checked
=
tru
e
;
if
(
subIndex
==
0
)
{
sub
.
id
=
`subid-
${
index
}
`
;
// 将二级中的“全部”id改为可以识别的
}
else
{
allSubList
.
push
(
sub
);
labelIdList
.
push
(
sub
.
id
);
}
});
});
// 构建其子标签
allSubList
.
unshift
({
name
:
"全部"
,
checked
:
fals
e
,
checked
:
tru
e
,
id
:
'parentid-0'
});
// 添加一级的“全部”标签,并构建其子标签
...
...
@@ -267,6 +270,7 @@ export default {
this
.
setAllLabelList
(
labelList
);
this
.
setSubLabelList
(
allSubList
);
}
this
.
initPageParams
(
labelIdList
);
});
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录