Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
dd1ea82b
Commit
dd1ea82b
authored
Oct 13, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
27e880a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
19 deletions
+10
-19
catagory.vue
src/pages/course/catagory.vue
+4
-4
course.vue
src/pages/course/course.vue
+6
-15
No files found.
src/pages/course/catagory.vue
View file @
dd1ea82b
...
...
@@ -11,7 +11,7 @@
</div>
</div>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
icon=
"add"
label=
"新增分类"
@
click=
"Edit
Menu
(null)"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
icon=
"add"
label=
"新增分类"
@
click=
"Edit
Category
(null)"
/>
</div>
</div>
<div
class=
"page-content"
>
...
...
@@ -23,10 +23,10 @@
<div
class=
"text-weight-bold text-primary"
>
{{
prop
.
node
.
CateName
}}
</div>
<template
v-if=
"prop.node.ChildList && prop.node.ChildList.length>0"
>
<q-btn
round
icon=
"add"
size=
"xs"
@
click=
"Edit
Menu
(null)"
/>
<q-btn
round
icon=
"add"
size=
"xs"
@
click=
"Edit
Category
(null)"
/>
</
template
>
<q-btn
round
icon=
"edit"
size=
"xs"
@
click=
"Edit
Menu
(prop.node)"
/>
<q-btn
round
icon=
"edit"
size=
"xs"
@
click=
"Edit
Category
(prop.node)"
/>
</div>
</template>
</q-tree>
...
...
@@ -86,7 +86,7 @@
})
},
//新增修改角色
Edit
Menu
(
obj
)
{
Edit
Category
(
obj
)
{
if
(
obj
)
{
this
.
categoryObj
=
obj
}
else
{
...
...
src/pages/course/course.vue
View file @
dd1ea82b
...
...
@@ -4,11 +4,7 @@
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.MenuName"
label=
"菜单名称"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.MenuUrl"
label=
"菜单地址"
/>
label=
"课程名称"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
v-model=
"msg.MenuType"
:options=
"MenuTypeOpts"
...
...
@@ -24,12 +20,12 @@
</div>
</div>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
icon=
"add"
label=
"新增
菜单"
@
click=
"EditMenu
(null)"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
icon=
"add"
label=
"新增
课程"
@
click=
"EditCourse
(null)"
/>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
separator=
"none"
title=
"
菜单
信息"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
separator=
"none"
title=
"
课程
信息"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:body-cell-Status=
"props"
>
<q-td
:props=
"props"
>
<q-badge
:color=
"props.value==1?'negative':'primary'"
:label=
"props.value==0?'正常':'禁用'"
/>
...
...
@@ -42,7 +38,7 @@
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"Edit
Menu
(props.row)"
/>
@
click=
"Edit
Course
(props.row)"
/>
</q-td>
</
template
>
</q-table>
...
...
@@ -163,16 +159,10 @@
}
},
mounted
()
{
this
.
initData
();
this
.
currentUrl
=
this
.
$route
.
path
this
.
getcourselist
()
},
methods
:
{
//初始化下拉框
initData
()
{
this
.
MenuTypeOpts
=
getMenuTypeList
();
this
.
MenuLevelOpts
=
getMenuLevelList
();
},
//重新查询
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
...
...
@@ -189,6 +179,7 @@
queryCoursePage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
this
.
data
=
res
.
Data
.
PageData
console
.
log
(
"this.data"
,
this
.
data
);
this
.
pageCount
=
res
.
Data
.
PageCount
}).
catch
(()
=>
{
this
.
loading
=
false
...
...
@@ -207,7 +198,7 @@
this
.
getmenulist
()
},
//新增修改菜单
Edit
Menu
(
obj
)
{
Edit
Course
(
obj
)
{
if
(
obj
)
{
this
.
menuObjOption
=
obj
}
else
{
...
...
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