Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
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
张伯涛
tea-resources-web
Commits
4349254d
Commit
4349254d
authored
Mar 25, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程管理页面功能样式调整
parent
d0be02c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
34 deletions
+81
-34
test.png
src/assets/image/test.png
+0
-0
index.vue
src/views/courseInformation/courseManagement/index.vue
+81
-34
No files found.
src/assets/image/test.png
0 → 100644
View file @
4349254d
11.5 KB
src/views/courseInformation/courseManagement/index.vue
View file @
4349254d
<
template
>
<
template
>
<!-- 课程管理 -->
<!-- 课程管理 -->
<div
id=
"courseManage"
v-loading
.
fullscreen
.
lock=
"fullscreenLoading"
>
<div
id=
"courseManage"
>
<div
class=
"courseContent"
v-show=
"showSwitch.courseContent"
>
<div
class=
"courseContent"
v-show=
"showSwitch.courseContent"
>
<div
class=
"search"
style=
"border-bottom: 14px solid #f4f4f4"
>
<div
class=
"search"
style=
"border-bottom: 14px solid #f4f4f4"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
...
@@ -18,15 +18,48 @@
...
@@ -18,15 +18,48 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"info"
icon=
"search"
class=
"boot"
@
click=
"loadData(1,8)"
>
搜索
</el-button>
<!-- //查询按钮-->
<el-button
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:icon=
"commonField.queryIcon"
:size=
"commonField.smallSize"
@
click=
"loadData"
>
{{
commonField
.
queryName
}}
</el-button>
<!-- //重置按钮-->
<el-button
:class=
"commonField.resetClass"
:icon=
"commonField.resetIcon"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
>
{{
commonField
.
resetName
}}
</el-button>
</el-form-item>
</el-form-item>
<div
style=
"float: right"
>
<div
style=
"float: right"
>
<el-form-item>
<el-form-item>
<el-button
type=
"info"
@
click=
"dialogFormVisible=true"
>
+ 新增
</el-button>
<!-- //新增按钮-->
<el-button
type=
"success"
class=
"mould"
@
click=
"exportmould"
>
下载模板
<i
class=
"el-icon-upload el-icon--right"
></i>
<el-button
</el-button>
:class=
"commonField.addClass"
<el-button
type=
"success"
class=
"mould"
@
click=
"importmould"
>
导入课程信息
<i
class=
"el-icon-upload el-icon--right"
></i>
:type=
"commonField.typePrimary"
</el-button>
:icon=
"commonField.addIcon"
:size=
"commonField.smallSize"
@
click=
"dialogFormVisible=true"
>
{{
commonField
.
addName
}}
</el-button>
<!-- //下载模板按钮-->
<el-button
:class=
"commonField.importClass"
:type=
"commonField.typeWarning"
:icon=
"commonField.importIcon"
:size=
"commonField.smallSize"
@
click=
"exportmould"
>
下载模板
</el-button>
<!-- //导入按钮-->
<el-button
:class=
"commonField.importClass"
:type=
"commonField.typeWarning"
:icon=
"commonField.importIcon"
:size=
"commonField.smallSize"
@
click=
"importmould"
>
{{
commonField
.
importName
}}
</el-button>
<input
type=
"file"
id=
"btn_file"
style=
"display:none"
@
change=
"fileupload"
>
<input
type=
"file"
id=
"btn_file"
style=
"display:none"
@
change=
"fileupload"
>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -68,7 +101,7 @@
...
@@ -68,7 +101,7 @@
<!--------------------------------------------------------课程功能块---------------------------------------------------->
<!--------------------------------------------------------课程功能块---------------------------------------------------->
<div
style=
"padding:5px 10px"
>
<div
style=
"padding:5px 10px"
>
<div
class=
"tableTitle"
>
课程管理列表
</div>
<div
class=
"tableTitle"
>
课程管理列表
</div>
<el-table
:data=
"tableData"
border
sortable=
"true"
>
<el-table
v-loading=
"fullscreenLoading"
:data=
"tableData"
border
sortable=
"true"
>
<span
slot=
"empty"
>
{{
tableDataTips
}}
</span>
<span
slot=
"empty"
>
{{
tableDataTips
}}
</span>
<el-table-column
align=
"center"
prop=
"id"
label=
"序号"
width=
"55px"
>
<el-table-column
align=
"center"
prop=
"id"
label=
"序号"
width=
"55px"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -125,7 +158,7 @@
...
@@ -125,7 +158,7 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"封面"
prop=
"imageSrc"
>
<el-table-column
align=
"center"
label=
"封面"
prop=
"imageSrc"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<img
:src=
"
scope.row.
imageSrc"
style=
"width:100%;height:100%;"
@
mouseover=
"justEnter($event)"
@
mouseout=
"justOut($event)"
/>
<img
:src=
"imageSrc"
style=
"width:100%;height:100%;"
@
mouseover=
"justEnter($event)"
@
mouseout=
"justOut($event)"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"方向"
prop=
"directionName"
>
<el-table-column
align=
"center"
label=
"方向"
prop=
"directionName"
>
...
@@ -153,6 +186,13 @@
...
@@ -153,6 +186,13 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
:limit
.
sync=
"queryParams.rows"
@
pagination=
"loadData"
/>
<el-dialog
<el-dialog
title=
"提示"
title=
"提示"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
...
@@ -174,15 +214,6 @@
...
@@ -174,15 +214,6 @@
<el-button
type=
"info"
@
click=
"confirm"
>
保 存
</el-button>
<el-button
type=
"info"
@
click=
"confirm"
>
保 存
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
<!--------------------------------------------------------分页功能块---------------------------------------------------->
<div
align=
"center"
class=
"pages"
>
<div
class=
"block"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-size=
"pagesize"
layout=
"total, prev, pager, next, jumper"
:total=
"total"
style=
"margin-bottom: 20px;"
>
</el-pagination>
</div>
</div>
<footer></footer>
<footer></footer>
</div>
</div>
<!--------------------------------------------------------目录功能块(组件)---------------------------------------------------->
<!--------------------------------------------------------目录功能块(组件)---------------------------------------------------->
...
@@ -198,11 +229,17 @@
...
@@ -198,11 +229,17 @@
<
script
>
<
script
>
import
CurCat
from
'../courseManagement/courseCatalogues.vue'
import
CurCat
from
'../courseManagement/courseCatalogues.vue'
import
{
queryBLessonsByPagination
}
from
'@/api/courseManagement/indexApi'
import
{
queryBLessonsByPagination
}
from
'@/api/courseManagement/indexApi'
import
commonField
from
"@/utils/commonField"
;
export
default
{
export
default
{
name
:
"index"
,
name
:
"index"
,
components
:{
components
:{
CurCat
CurCat
},
},
computed
:
{
commonField
()
{
return
commonField
}
},
data
()
{
data
()
{
var
checkid
=
(
rule
,
value
,
callback
)
=>
{
var
checkid
=
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
{
if
(
!
value
)
{
...
@@ -254,6 +291,7 @@ export default {
...
@@ -254,6 +291,7 @@ export default {
}
}
};
};
return
{
return
{
imageSrc
:
require
(
'@/assets/image/test.png'
),
//显示开关
//显示开关
showSwitch
:
{
showSwitch
:
{
courseContent
:
true
,
courseContent
:
true
,
...
@@ -298,12 +336,12 @@ export default {
...
@@ -298,12 +336,12 @@ export default {
coursename
:
''
,
coursename
:
''
,
queryParams
:
{
queryParams
:
{
page
:
1
,
rows
:
10
,
coursekey
:
''
,
coursekey
:
''
,
searchByDirection
:
''
,
searchByDirection
:
''
,
},
},
//pagination
//pagination
currentPage
:
1
,
pagesize
:
8
,
total
:
0
,
total
:
0
,
actionUrl
:
''
,
actionUrl
:
''
,
...
@@ -355,7 +393,7 @@ export default {
...
@@ -355,7 +393,7 @@ export default {
created
()
{
created
()
{
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
loadData
(
this
.
currentPage
,
this
.
pagesize
);
this
.
loadData
();
},
},
methods
:
{
methods
:
{
// 获取课程方向
// 获取课程方向
...
@@ -381,7 +419,17 @@ export default {
...
@@ -381,7 +419,17 @@ export default {
}
}
)
)
},
},
loadData
(
page
,
rows
)
{
/** 重置按钮操作 */
resetQuery
()
{
this
.
queryParams
=
{
page
:
1
,
rows
:
10
,
coursekey
:
''
,
searchByDirection
:
''
,
}
this
.
loadData
()
},
loadData
()
{
//列表渲染数据
//列表渲染数据
var
data
=
[];
var
data
=
[];
let
url
=
'BLesson/queryBLessonsByPagination'
;
let
url
=
'BLesson/queryBLessonsByPagination'
;
...
@@ -389,8 +437,8 @@ export default {
...
@@ -389,8 +437,8 @@ export default {
this
.
tableData
=
[];
this
.
tableData
=
[];
_this
.
fullscreenLoading
=
true
;
_this
.
fullscreenLoading
=
true
;
const
params
=
{
const
params
=
{
page
:
page
,
page
:
_this
.
queryParams
.
page
,
rows
:
rows
,
rows
:
_this
.
queryParams
.
rows
,
condition
:
_this
.
queryParams
.
coursekey
,
condition
:
_this
.
queryParams
.
coursekey
,
directionId
:
_this
.
queryParams
.
searchByDirection
,
directionId
:
_this
.
queryParams
.
searchByDirection
,
sort
:
'create_date desc'
sort
:
'create_date desc'
...
@@ -459,7 +507,7 @@ export default {
...
@@ -459,7 +507,7 @@ export default {
});
});
that
.
fullscreenLoading
=
false
;
that
.
fullscreenLoading
=
false
;
if
(
type
==
'success'
)
{
if
(
type
==
'success'
)
{
that
.
loadData
(
that
.
currentPage
,
that
.
pagesize
);
that
.
loadData
();
}
}
},
function
(
err
)
{
},
function
(
err
)
{
...
@@ -472,7 +520,7 @@ export default {
...
@@ -472,7 +520,7 @@ export default {
return
false
;
return
false
;
}
}
});
});
this
.
loadData
(
this
.
currentPage
,
this
.
pagesize
);
this
.
loadData
();
},
},
callOf
(
formName
)
{
callOf
(
formName
)
{
this
.
dialogFormVisible
=
false
;
this
.
dialogFormVisible
=
false
;
...
@@ -525,7 +573,7 @@ export default {
...
@@ -525,7 +573,7 @@ export default {
message
:
res
.
message
,
message
:
res
.
message
,
type
:
'success'
type
:
'success'
});
});
_this
.
loadData
(
_this
.
currentPage
,
_this
.
pagesize
);
_this
.
loadData
();
}
else
{
}
else
{
_this
.
$notify
({
_this
.
$notify
({
title
:
'失败'
,
title
:
'失败'
,
...
@@ -595,7 +643,7 @@ export default {
...
@@ -595,7 +643,7 @@ export default {
message
:
'您已恢复默认封面'
,
message
:
'您已恢复默认封面'
,
type
:
'success'
type
:
'success'
});
});
that
.
loadData
(
that
.
currentPage
,
that
.
pagesize
);
that
.
loadData
();
}
else
{
}
else
{
that
.
$notify
({
that
.
$notify
({
title
:
'提示'
,
title
:
'提示'
,
...
@@ -643,7 +691,7 @@ export default {
...
@@ -643,7 +691,7 @@ export default {
message
:
message
,
message
:
message
,
type
:
type
type
:
type
});
});
_this
.
loadData
(
_this
.
currentPage
,
_this
.
pagesize
);
_this
.
loadData
();
_this
.
filelist
=
[];
_this
.
filelist
=
[];
},
err
=>
{
},
err
=>
{
...
@@ -700,7 +748,7 @@ export default {
...
@@ -700,7 +748,7 @@ export default {
message
:
message
,
message
:
message
,
type
:
type
type
:
type
});
});
that
.
loadData
(
that
.
currentPage
,
that
.
pagesize
);
that
.
loadData
();
$
(
'.el-popover'
).
css
(
"display"
,
"none"
);
$
(
'.el-popover'
).
css
(
"display"
,
"none"
);
})
})
,
(
function
(
err
)
{
,
(
function
(
err
)
{
...
@@ -728,11 +776,11 @@ export default {
...
@@ -728,11 +776,11 @@ export default {
//打印页
//打印页
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
pagesize
=
val
;
this
.
pagesize
=
val
;
this
.
loadData
(
this
.
currentPage
,
this
.
pagesize
);
this
.
loadData
();
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
currentPage
=
val
;
this
.
currentPage
=
val
;
this
.
loadData
(
this
.
currentPage
,
this
.
pagesize
);
this
.
loadData
();
},
},
//search
//search
removeCourse
(
index
)
{
removeCourse
(
index
)
{
...
@@ -760,7 +808,7 @@ export default {
...
@@ -760,7 +808,7 @@ export default {
message
:
message
,
message
:
message
,
type
:
type
type
:
type
});
});
that
.
loadData
(
that
.
currentPage
,
that
.
pagesize
);
that
.
loadData
();
})
})
,
(
function
(
err
)
{
,
(
function
(
err
)
{
that
.
fullscreenLoading
=
false
;
that
.
fullscreenLoading
=
false
;
...
@@ -856,7 +904,6 @@ export default {
...
@@ -856,7 +904,6 @@ export default {
#courseManage
.breadNav
{
margin-left
:
0
;}
#courseManage
.breadNav
{
margin-left
:
0
;}
#courseManage
.search_area
{
margin
:
1em
0
;}
#courseManage
.search_area
{
margin
:
1em
0
;}
#courseManage
.info_change
{
margin-left
:
0
;}
#courseManage
.info_change
{
margin-left
:
0
;}
#courseManage
.boot
{
margin
:
0
1em
;}
#courseManage
.search_area
div
{
width
:
190px
;}
#courseManage
.search_area
div
{
width
:
190px
;}
input
::-webkit-outer-spin-button
,
input
::-webkit-outer-spin-button
,
input
::-webkit-inner-spin-button
{
-webkit-appearance
:
none
;}
input
::-webkit-inner-spin-button
{
-webkit-appearance
:
none
;}
...
...
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