Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea_resources_pc
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_pc
Commits
1ef4529b
Commit
1ef4529b
authored
May 23, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug 72120
parent
144d45fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
2 deletions
+49
-2
page.js
src/mixins/page.js
+14
-1
purchased.vue
src/views/learningCenter/children/purchased.vue
+35
-1
No files found.
src/mixins/page.js
View file @
1ef4529b
...
@@ -15,7 +15,11 @@ export default {
...
@@ -15,7 +15,11 @@ export default {
// 重新渲染表格状态
// 重新渲染表格状态
refreshTable
:
true
,
refreshTable
:
true
,
tableData
:
[],
tableData
:
[],
total
:
0
total
:
0
,
// 未发布列表集合
unPublishTableData
:
[],
// 已发版列表集合
publishTableData
:
[]
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -24,6 +28,8 @@ export default {
...
@@ -24,6 +28,8 @@ export default {
beforeRouteLeave
(
to
,
from
,
next
)
{
beforeRouteLeave
(
to
,
from
,
next
)
{
console
.
log
(
'beforeRouteLeave'
)
console
.
log
(
'beforeRouteLeave'
)
this
.
tableData
=
[]
this
.
tableData
=
[]
this
.
unPublishTableData
=
[]
this
.
publishTableData
=
[]
next
()
next
()
},
},
methods
:
{
methods
:
{
...
@@ -68,7 +74,14 @@ export default {
...
@@ -68,7 +74,14 @@ export default {
}
}
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
publishTableData
=
[]
this
.
unPublishTableData
=
[]
this
.
tableData
=
res
.
records
?
res
.
records
:
res
.
rows
this
.
tableData
=
res
.
records
?
res
.
records
:
res
.
rows
this
.
tableData
.
forEach
(
item
=>
{
if
(
item
.
flag
&&
item
.
flag
!==
''
)
{
item
.
flag
===
'1'
?
this
.
publishTableData
.
push
(
item
)
:
this
.
unPublishTableData
.
push
(
item
)
}
})
Object
.
freeze
(
this
.
tableData
)
Object
.
freeze
(
this
.
tableData
)
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
loading
=
false
this
.
loading
=
false
...
...
src/views/learningCenter/children/purchased.vue
View file @
1ef4529b
...
@@ -43,13 +43,30 @@
...
@@ -43,13 +43,30 @@
</div>
</div>
<div
v-if=
"tableData.length > 0"
v-loading=
"loading"
>
<div
v-if=
"tableData.length > 0"
v-loading=
"loading"
>
<!-- 已发布列表 -->
<classesItem
<classesItem
v-for=
"(i, key) in
t
ableData"
v-for=
"(i, key) in
publishT
ableData"
:key=
"key"
:key=
"key"
type=
"1"
type=
"1"
:item=
"i"
:item=
"i"
@
refresh=
"loadData()"
@
refresh=
"loadData()"
/>
/>
<div
v-if=
"unPublishTableData.length > 0"
>
<!-- 分隔线 -->
<div
class=
"purchasedSeparation"
></div>
<!-- 未发布标题 -->
<div
class=
"purchaseContainer"
>
<spam
class=
"purchaseTitle"
>
未发布课程
</spam>
</div>
<!-- 未发布列表 -->
<classesItem
v-for=
"(i, key) in unPublishTableData"
:key=
"key"
type=
"1"
:item=
"i"
@
refresh=
"loadData()"
/>
</div>
<div
v-show=
"total > 0"
class=
"pagination-list"
>
<div
v-show=
"total > 0"
class=
"pagination-list"
>
<pagination
<pagination
:total=
"total"
:total=
"total"
...
@@ -155,6 +172,23 @@ export default {
...
@@ -155,6 +172,23 @@ export default {
transform
:
rotate
(
45deg
)
scaleY
(
1
);
transform
:
rotate
(
45deg
)
scaleY
(
1
);
transform-origin
:
center
transform-origin
:
center
}
}
.purchaseContainer
{
margin-bottom
:
32px
;
.purchaseTitle
{
font-size
:
20px
;
font-family
:
Source
Han
Sans
CN
,
Source
Han
Sans
CN-700
;
font-weight
:
700
;
color
:
#292929
;
line-height
:
23px
;
}
}
.purchasedSeparation
{
margin-bottom
:
32px
;
width
:
100%
;
height
:
0px
;
border
:
2px
dashed
#005dbd
;
}
.no-data
{
.no-data
{
::v-deep
.el-image
{
::v-deep
.el-image
{
width
:
162px
;
width
:
162px
;
...
...
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