Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mengchangaigc
Project
Project
Details
Activity
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
姚珂
mengchangaigc
Commits
93b4c33f
Commit
93b4c33f
authored
Aug 20, 2026
by
黄同智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
布局图片管理的详情,音频管理的详情页和交互
parent
83a3b8c0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
11 deletions
+34
-11
index.ts
apps/web-vue/src/router/index.ts
+12
-0
Item.vue
apps/web-vue/src/views/resource/audio/components/Item.vue
+1
-1
detail.vue
apps/web-vue/src/views/resource/audio/detail.vue
+0
-0
index.vue
apps/web-vue/src/views/resource/audio/index.vue
+9
-2
detail.vue
apps/web-vue/src/views/resource/image/detail.vue
+0
-0
index.vue
apps/web-vue/src/views/resource/image/index.vue
+9
-2
detail.vue
apps/web-vue/src/views/resource/material/detail.vue
+3
-6
No files found.
apps/web-vue/src/router/index.ts
View file @
93b4c33f
...
...
@@ -69,11 +69,23 @@ const routes = [
meta
:
{
title
:
'图片管理'
,
icon
:
''
,
affix
:
true
}
},
{
path
:
'image/detail/:id'
,
// 动态参数 :id
name
:
'ImageDetail'
,
component
:
()
=>
import
(
'@/views/resource/image/detail.vue'
),
meta
:
{
title
:
'图片详情'
,
hidden
:
true
}
// hidden: true 表示不在左侧菜单显示
},
{
path
:
'audio'
,
name
:
'Audio'
,
component
:
()
=>
import
(
'@/views/resource/audio/index.vue'
),
meta
:
{
title
:
'音频管理'
,
icon
:
''
,
affix
:
true
}
},
{
path
:
'audio/detail/:id'
,
// 动态参数 :id
name
:
'AudioDetail'
,
component
:
()
=>
import
(
'@/views/resource/audio/detail.vue'
),
meta
:
{
title
:
'音频详情'
,
hidden
:
true
}
// hidden: true 表示不在左侧菜单显示
},
]
},
...
...
apps/web-vue/src/views/resource/audio/components/Item.vue
View file @
93b4c33f
...
...
@@ -11,7 +11,7 @@
<div
class=
"flex-items-center audio-progress-only mt-10"
>
<audio
ref=
"audioRef"
src=
"../../../../../public/houlai.mp3"
@
timeupdate=
"onTimeUpdate"
@
ended=
"onEnded"
@
loadedmetadata=
"onLoadedMetadata"
></audio>
<div
@
click=
"togglePlay"
class=
"minw-44 h-44 round flex-center mr-16 play"
>
{{
isPlaying
?
'⏸️'
:
'▶'
}}
<div
@
click
.
stop
=
"togglePlay"
class=
"minw-44 h-44 round flex-center mr-16 play"
>
{{
isPlaying
?
'⏸️'
:
'▶'
}}
</div>
<el-slider
v-model=
"currentTime"
:max=
"duration"
:step=
"0.1"
:show-tooltip=
"false"
@
change=
"onSliderChange"
@
drag-start=
"isDragging = true"
@
drag-end=
"isDragging = false"
size=
"small"
/>
...
...
apps/web-vue/src/views/resource/audio/detail.vue
0 → 100644
View file @
93b4c33f
This diff is collapsed.
Click to expand it.
apps/web-vue/src/views/resource/audio/index.vue
View file @
93b4c33f
...
...
@@ -19,8 +19,8 @@
</div>
<div
class=
"flex flex-wrap gap-20"
>
<el-checkbox-group
v-model=
"checkedList"
class=
"flex flex-wrap gap-20 w-full"
>
<div
v-for=
"(item, index) in list"
:key=
"index"
class=
"bg-fff round-12 relative hidden flex-item"
<div
v-for=
"(item, index) in list"
:key=
"index"
@
click=
"goDetail(item)"
class=
"bg-fff round-12 relative hidden
pointer
flex-item"
:class=
"
{ 'is-selected': checkedList.includes(item.id) }">
<Item
:item=
"item"
:isCheck=
"isCheck"
/>
</div>
...
...
@@ -32,9 +32,11 @@
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
import
Classify
from
'../components/Classify.vue'
;
import
Item
from
'@/views/resource/audio/components/Item.vue'
const
router
=
useRouter
()
const
checkedList
=
ref
<
any
>
([])
const
btnIndex
=
ref
(
0
)
const
isCheck
=
ref
(
false
)
...
...
@@ -44,6 +46,11 @@ const switchCheck = () => {
isCheck
.
value
=
!
isCheck
.
value
checkedList
.
value
=
[]
}
const
goDetail
=
(
item
:
any
)
=>
{
if
(
isCheck
.
value
)
return
router
.
push
(
`/resource/audio/detail/
${
item
.
id
}
`
)
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
apps/web-vue/src/views/resource/image/detail.vue
0 → 100644
View file @
93b4c33f
This diff is collapsed.
Click to expand it.
apps/web-vue/src/views/resource/image/index.vue
View file @
93b4c33f
...
...
@@ -19,8 +19,8 @@
</div>
<div
class=
"flex flex-wrap gap-20"
>
<el-checkbox-group
v-model=
"checkedList"
class=
"flex flex-wrap gap-20 w-full"
>
<div
v-for=
"(item, index) in list"
:key=
"index"
class=
"w-200 bg-fff round-12 relative hidden flex-item"
<div
v-for=
"(item, index) in list"
:key=
"index"
@
click=
"goDetail(item)"
class=
"w-200 bg-fff round-12 relative hidden
pointer
flex-item"
:class=
"
{ 'is-selected': checkedList.includes(item.id) }">
<Item
:item=
"item"
:isCheck=
"isCheck"
/>
</div>
...
...
@@ -33,10 +33,12 @@
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
import
Classify
from
'../components/Classify.vue'
;
import
Item
from
'@/views/resource/image/components/Item.vue'
import
UploadDialog
from
'./components/UploadDialog.vue'
;
const
router
=
useRouter
()
const
checkedList
=
ref
<
any
>
([])
const
btnIndex
=
ref
(
0
)
const
isCheck
=
ref
(
false
)
...
...
@@ -47,6 +49,11 @@ const switchCheck = () => {
checkedList
.
value
=
[]
}
const
goDetail
=
(
item
:
any
)
=>
{
if
(
isCheck
.
value
)
return
router
.
push
(
`/resource/image/detail/
${
item
.
id
}
`
)
}
// 上传视频的弹窗内容
...
...
apps/web-vue/src/views/resource/material/detail.vue
View file @
93b4c33f
...
...
@@ -197,6 +197,9 @@ const ascOptions = [
color
:
rgba
(
var
(
--
main-color
)
,
1
);
// flex: 0 0 calc((100% - 10px * 2) / 3);
}
.bordedr
{
box-shadow
:
0
0
0
1px
rgba
(
var
(
--
main-color
)
,
.1
);
}
.active
{
background-color
:
rgba
(
var
(
--
main-color
)
,
1
);
...
...
@@ -235,12 +238,6 @@ const ascOptions = [
box-shadow
:
0
0
0
1px
#eee
;
}
:deep
(
.myselect
)
{
.el-select__wrapper
{
border-radius
:
12px
;
}
}
/* 1600px 以下:一行 5 个 */
@media
(
max-width
:
1500px
)
{
.flex-item1
{
...
...
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