Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
602d12af
提交
602d12af
authored
11月 13, 2025
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 新增全媒体运营
上级
c72cfcea
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
311 行增加
和
0 行删除
+311
-0
api.ts
src/modules/operations/api.ts
+11
-0
Steps.vue
src/modules/operations/components/Steps.vue
+151
-0
index.ts
src/modules/operations/index.ts
+17
-0
Index.vue
src/modules/operations/views/Index.vue
+121
-0
menu.ts
src/stores/menu.ts
+11
-0
没有找到文件。
src/modules/operations/api.ts
0 → 100644
浏览文件 @
602d12af
import
httpRequest
from
'@/utils/axios'
// 获取全媒体运营方案详情
export
function
getOperations
(
params
?:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/lab/v1/experiment/operation/detail'
,
{
params
})
}
// 保存全媒体运营方案
export
function
saveOperations
(
data
:
{
content
:
string
})
{
return
httpRequest
.
post
(
'/api/lab/v1/experiment/operation/save'
,
data
)
}
src/modules/operations/components/Steps.vue
0 → 100644
浏览文件 @
602d12af
<
script
setup
>
import
AppEditor
from
'@/components/base/AppEditor.vue'
import
{
useFileDialog
}
from
'@vueuse/core'
import
{
upload
}
from
'@/utils/upload'
import
{
Delete
}
from
'@element-plus/icons-vue'
const
form
=
defineModel
(
'form'
,
{
type
:
Object
,
default
:
()
=>
({}),
})
const
props
=
defineProps
({
steps
:
{
type
:
Array
,
default
:
()
=>
[]
},
})
const
activeTab
=
ref
(
1
)
const
handleNext
=
()
=>
{
activeTab
.
value
++
}
const
handlePrev
=
()
=>
{
activeTab
.
value
--
}
const
handleSave
=
()
=>
{
emit
(
'save'
,
form
)
}
const
emit
=
defineEmits
([
'save'
])
const
{
open
,
onChange
}
=
useFileDialog
({
accept
:
'image/*,video/*'
,
})
const
currentItem
=
computed
(()
=>
{
return
props
.
steps
.
find
((
item
)
=>
item
.
name
===
activeTab
.
value
)
})
const
key
=
computed
(()
=>
{
return
currentItem
.
value
?.
key
})
const
handleUpload
=
async
()
=>
{
if
(
currentItem
.
value
.
isImage
)
{
open
({
accept
:
'image/*'
})
}
else
if
(
currentItem
.
value
.
isVideo
)
{
open
({
accept
:
'video/*'
})
}
}
const
isLoading
=
ref
(
false
)
onChange
(
async
(
files
)
=>
{
if
(
!
files
)
return
const
[
file
]
=
files
isLoading
.
value
=
true
const
res
=
await
upload
(
file
)
if
(
currentItem
.
value
.
isImage
)
{
form
.
value
[
key
.
value
]
=
form
.
value
[
key
.
value
]
?
[...
form
.
value
[
key
.
value
],
res
]
:
[
res
]
}
else
{
form
.
value
[
key
.
value
]
=
res
}
isLoading
.
value
=
false
})
const
handleDelete
=
(
url
)
=>
{
form
.
value
[
key
.
value
]
=
form
.
value
[
key
.
value
].
filter
((
item
)
=>
item
!==
url
)
}
</
script
>
<
template
>
<AppCard>
<el-tabs
stretch
v-model=
"activeTab"
class=
"operations-tabs"
>
<el-tab-pane
:label=
"item.label"
:name=
"item.name"
v-for=
"item in steps"
:key=
"item.name"
>
<AppCard
:title=
"item.title"
>
<div
style=
"background: #ecf2f7; padding: 40px; border-radius: 20px; min-height: 200px"
>
<el-button
type=
"primary"
round
@
click=
"handleUpload"
:loading=
"isLoading"
v-if=
"item.isImage || item.isVideo"
>
点击上传
</el-button
>
<AppEditor
v-model=
"form[item.key]"
v-else
/>
<div
class=
"upload-list"
>
<ul
class=
"image-list"
v-if=
"item.isImage"
>
<li
v-for=
"url in form[item.key]"
:key=
"url"
>
<el-icon
@
click=
"handleDelete(url)"
><Delete
/></el-icon>
<img
:src=
"url"
/>
</li>
</ul>
<video
class=
"video-player"
v-if=
"item.isVideo && form[item.key]"
:src=
"form[item.key]"
controls
></video>
</div>
</div>
</AppCard>
</el-tab-pane>
</el-tabs>
<el-row
justify=
"center"
>
<el-button
type=
"primary"
plain
@
click=
"handlePrev"
v-if=
"activeTab > 1"
>
上一步
</el-button>
<el-button
type=
"primary"
@
click=
"handleSave"
style=
"width: 200px"
>
保存
</el-button>
<el-button
type=
"primary"
plain
@
click=
"handleNext"
v-if=
"activeTab
<
steps
.
length
"
>
下一步
</el-button>
</el-row>
</AppCard>
</
template
>
<
style
lang=
"scss"
scoped
>
.operations-tabs
{
:deep
(
.el-tabs__header
)
{
width
:
800px
;
margin
:
0
auto
20px
;
}
:deep
(
.el-tabs__nav-wrap
::after
)
{
display
:
none
;
}
}
.upload-list
{
margin
:
20px
0
;
}
.image-list
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
20px
;
li
{
position
:
relative
;
width
:
180px
;
height
:
240px
;
background-color
:
#fff
;
border
:
1px
solid
#eee
;
img
{
width
:
100%
;
height
:
100%
;
object-fit
:
contain
;
}
.el-icon
{
display
:
none
;
position
:
absolute
;
top
:
10px
;
right
:
10px
;
cursor
:
pointer
;
color
:
#999
;
font-size
:
22px
;
}
&
:hover
{
.el-icon
{
display
:
block
;
}
}
}
}
.video-player
{
max-height
:
400px
;
}
</
style
>
src/modules/operations/index.ts
0 → 100644
浏览文件 @
602d12af
import
type
{
RouteRecordRaw
}
from
'vue-router'
import
Layout
from
'@/components/layout/Index.vue'
const
routes
:
RouteRecordRaw
[]
=
[
{
path
:
'/operations'
,
component
:
Layout
,
redirect
:
'/operations/plan'
,
children
:
[
{
path
:
'plan'
,
component
:
()
=>
import
(
'./views/Index.vue'
),
props
:
{
type
:
'plan'
}
},
{
path
:
'audiovisual'
,
component
:
()
=>
import
(
'./views/Index.vue'
),
props
:
{
type
:
'audiovisual'
}
},
{
path
:
'flow'
,
component
:
()
=>
import
(
'./views/Index.vue'
),
props
:
{
type
:
'flow'
}
},
],
},
]
export
{
routes
}
src/modules/operations/views/Index.vue
0 → 100644
浏览文件 @
602d12af
<
script
setup
>
import
Steps
from
'../components/Steps.vue'
import
{
getOperations
,
saveOperations
}
from
'../api'
import
{
ElMessage
}
from
'element-plus'
defineProps
({
type
:
{
type
:
String
,
default
:
'plan'
}
})
const
typeMap
=
{
plan
:
{
steps
:
[
{
name
:
1
,
label
:
'第一步'
,
title
:
'全媒体运营的主题(方向)描述(4分)'
,
key
:
'theme'
,
},
{
name
:
2
,
label
:
'第二步'
,
title
:
'运营的渠道路径(5分)'
,
key
:
'path'
,
},
{
name
:
3
,
label
:
'第三步'
,
title
:
'运营的重点和难点(5分)'
,
key
:
'difficulty'
,
},
{
name
:
4
,
label
:
'第四步'
,
title
:
'运营策划框架方案(从媒介技术、加工匹配、传播、反馈等,要点式表述)(6分)'
,
key
:
'framework'
,
},
],
},
audiovisual
:
{
steps
:
[
{
name
:
1
,
label
:
'第一步'
,
title
:
'综合稿件标题(5分)'
,
key
:
'title'
,
},
{
name
:
2
,
label
:
'第二步'
,
title
:
'导语(5分)'
,
key
:
'intro'
,
},
{
name
:
3
,
label
:
'第三步'
,
title
:
'正文报道文字(不少于200字)(5分)'
,
key
:
'content'
,
},
{
name
:
4
,
label
:
'第四步'
,
title
:
'主题活动(场景)现场照片(不少于2张)(10分)'
,
key
:
'images'
,
isImage
:
true
,
},
{
name
:
5
,
label
:
'第五步'
,
title
:
'原创视频短片(不少于60秒)。该视频至少包括:字幕、音乐或音效、一段同期声采访(或现场声)等要素。(30分)'
,
key
:
'video'
,
isVideo
:
true
,
},
],
},
flow
:
{
steps
:
[
{
name
:
1
,
label
:
'第一步'
,
title
:
'上述全媒体综合文稿拟分发的媒体平台并逐一说明理由(10分)'
,
key
:
'platforms'
,
},
{
name
:
2
,
label
:
'第二步'
,
title
:
'流量运营及直播运营的预期成效分析(5分)'
,
key
:
'traffic'
,
},
{
name
:
3
,
label
:
'第三步'
,
title
:
'运营风险管控解析(5分)'
,
key
:
'risk'
,
},
],
},
}
const
form
=
reactive
({
plan
:
{},
audiovisual
:
{},
flow
:
{}
})
const
fetchInfo
=
async
()
=>
{
const
res
=
await
getOperations
()
const
detail
=
res
.
data
.
detail
try
{
const
parsed
=
JSON
.
parse
(
detail
.
content
)
Object
.
assign
(
form
,
parsed
)
}
catch
(
error
)
{
console
.
error
(
error
)
}
}
onMounted
(
fetchInfo
)
const
handleSave
=
async
()
=>
{
await
saveOperations
({
content
:
JSON
.
stringify
(
form
)
})
ElMessage
.
success
(
'保存成功'
)
}
</
script
>
<
template
>
<AppCard>
<Steps
v-model:form=
"form[type]"
:steps=
"typeMap[type].steps"
@
save=
"handleSave"
/>
</AppCard>
</
template
>
src/stores/menu.ts
浏览文件 @
602d12af
...
...
@@ -397,6 +397,17 @@ const adminMenus: IMenuItem[] = [
{
id
:
30
,
name
:
'营销分析'
,
path
:
'/analyze/marketing'
},
],
},
{
id
:
40
,
name
:
'全媒体运营'
,
path
:
'/operations'
,
icon
:
markRaw
(
IconMarket
),
children
:
[
{
id
:
401
,
name
:
'创意策划方案'
,
path
:
'/operations/plan'
},
{
id
:
402
,
name
:
'视听运营'
,
path
:
'/operations/audiovisual'
},
{
id
:
403
,
name
:
'流量运营'
,
path
:
'/operations/flow'
},
],
},
]
export
const
useMenuStore
=
defineStore
({
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论