Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_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
张伯涛
cust_web
Commits
d5154675
Commit
d5154675
authored
Dec 19, 2024
by
冷玲鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改:banner管理、活动管理、公告管理
parent
b72bd30d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
299 additions
and
65 deletions
+299
-65
application.js
src/api/contentManagement/application.js
+29
-0
index.vue
src/views/contentManagement/activity/index.vue
+228
-50
index.vue
src/views/contentManagement/activity/info/index.vue
+2
-2
index.vue
src/views/contentManagement/banner/index.vue
+39
-12
index.vue
src/views/contentManagement/notice/info/index.vue
+1
-1
No files found.
src/api/contentManagement/application.js
0 → 100644
View file @
d5154675
import
request
from
'@/utils/request'
import
Qs
from
'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询报名表
export
function
listCmsApplication
(
query
)
{
return
request
({
url
:
'/cmsApplication/queryCmsApplicationByPagination'
,
method
:
'get'
,
params
:
query
})
}
// 2. 查询报名表详细信息
export
function
getCmsApplication
(
businessId
)
{
return
request
({
url
:
'/cmsApplication/detail/'
+
businessId
,
method
:
'get'
})
}
src/views/contentManagement/activity/index.vue
View file @
d5154675
This diff is collapsed.
Click to expand it.
src/views/contentManagement/activity/info/index.vue
View file @
d5154675
...
@@ -100,12 +100,12 @@
...
@@ -100,12 +100,12 @@
<el-form-item
<el-form-item
label=
"排序:"
label=
"排序:"
prop=
"weight"
prop=
"weight"
:disabled=
"secondFromDisabled"
:rules=
"
{ required: !(controls.isOperation === '3'), message: '请选择排序号', trigger: 'change' }"
:rules=
"
{ required: !(controls.isOperation === '3'), message: '请选择排序号', trigger: 'change' }"
>
>
<el-input-number
<el-input-number
v-model
.
trim=
"form.weight"
v-model
.
trim=
"form.weight"
style=
"width: 100%"
style=
"width: 100%"
:disabled=
"secondFromDisabled"
controls-position=
"right"
controls-position=
"right"
placeholder=
"请选择排序号"
placeholder=
"请选择排序号"
:min=
"0"
:min=
"0"
...
@@ -212,7 +212,7 @@
...
@@ -212,7 +212,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
<el-form-item
label=
"报名费用:"
label=
"报名费用:"
...
...
src/views/contentManagement/banner/index.vue
View file @
d5154675
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<div
v-show=
"showSwitch.courseContent"
class=
"courseContent"
>
<div
class=
"search"
>
<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"
>
<el-form-item
label=
"名称:"
prop=
"bannerName"
>
<el-form-item
label=
"名称:"
prop=
"bannerName"
>
<el-input
<el-input
...
@@ -11,7 +13,7 @@
...
@@ -11,7 +13,7 @@
style=
"width: 150px"
style=
"width: 150px"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"链接地址:"
prop=
"linkUrl"
>
<!--
<el-form-item
label=
"链接地址:"
prop=
"linkUrl"
>
<el-input
<el-input
v-model
.
trim=
"queryParams.linkUrl"
v-model
.
trim=
"queryParams.linkUrl"
placeholder=
"请输入链接地址"
placeholder=
"请输入链接地址"
...
@@ -20,7 +22,7 @@
...
@@ -20,7 +22,7 @@
size=
"small"
size=
"small"
style=
"width: 150px"
style=
"width: 150px"
/>
/>
</el-form-item>
</el-form-item>
-->
<el-form-item>
<el-form-item>
<el-button
<el-button
:class=
"commonField.queryClass"
:class=
"commonField.queryClass"
...
@@ -49,7 +51,9 @@
...
@@ -49,7 +51,9 @@
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
<div
style=
"padding:5px 10px"
>
</div>
<div
style=
"padding:5px 10px"
>
<div
class=
"tableTitle"
>
banner管理
</div>
<el-table
v-loading=
"loading"
border
:data=
"cmsBannerList"
:row-style=
"
{'textAlign': 'center'}">
<el-table
v-loading=
"loading"
border
:data=
"cmsBannerList"
:row-style=
"
{'textAlign': 'center'}">
<el-table-column
prop=
"id"
label=
"序号"
min-width=
"55px"
>
<el-table-column
prop=
"id"
label=
"序号"
min-width=
"55px"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -87,10 +91,15 @@
...
@@ -87,10 +91,15 @@
</div>
</div>
</template>-->
</template>-->
<el-table-column
align=
"center"
label=
"分类"
prop=
"type"
:show-overflow-tooltip=
"true"
min-width=
"80"
>
<el-table-column
align=
"center"
label=
"分类"
prop=
"type"
:show-overflow-tooltip=
"true"
min-width=
"80"
>
<!-- <template slot-scope="scope">
<span>
{{ getTypeValue(scope.row.type) || '-' }}
</span>
</template>-->
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<
span>
<span
v-if=
"scope.row.type=='0'"
>
首页
</
span>
{{
getTypeValue
(
scope
.
row
.
type
)
||
'-'
}}
<span
v-else-if=
"scope.row.type=='1'"
>
活动
</span>
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
...
@@ -109,11 +118,11 @@
...
@@ -109,11 +118,11 @@
<!-- </template>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table-column>-->
<el-table-column
label=
"链接地址"
prop=
"linkUrl"
min-width=
"250"
:show-overflow-tooltip=
"true"
>
<!--
<el-table-column label="链接地址" prop="linkUrl" min-width="250" :show-overflow-tooltip="true">
<template slot-scope="scope">
<template slot-scope="scope">
{{ scope.row.linkUrl || '-' }}
{{ scope.row.linkUrl || '-' }}
</template>
</template>
</el-table-column>
</el-table-column>
-->
<el-table-column
label=
"排序"
prop=
"weight"
:show-overflow-tooltip=
"true"
min-width=
"55"
>
<el-table-column
label=
"排序"
prop=
"weight"
:show-overflow-tooltip=
"true"
min-width=
"55"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
weight
||
'-'
}}
{{
scope
.
row
.
weight
||
'-'
}}
...
@@ -165,6 +174,7 @@
...
@@ -165,6 +174,7 @@
:limit
.
sync=
"queryParams.rows"
:limit
.
sync=
"queryParams.rows"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
</div>
<!-- 添加或修改banner管理配置对话框 -->
<!-- 添加或修改banner管理配置对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"90px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"90px"
>
...
@@ -204,9 +214,9 @@
...
@@ -204,9 +214,9 @@
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"链接地址:"
prop=
"linkUrl"
>
<!--
<el-form-item label="链接地址:" prop="linkUrl">
<el-input v-model.trim="form.linkUrl" show-word-limit :maxlength="255" placeholder="请输入链接地址" />
<el-input v-model.trim="form.linkUrl" show-word-limit :maxlength="255" placeholder="请输入链接地址" />
</el-form-item>
</el-form-item>
-->
<el-form-item
label=
"排序:"
prop=
"weight"
>
<el-form-item
label=
"排序:"
prop=
"weight"
>
<el-input-number
v-model
.
trim=
"form.weight"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
/>
<el-input-number
v-model
.
trim=
"form.weight"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
/>
</el-form-item>
</el-form-item>
...
@@ -253,9 +263,14 @@ export default {
...
@@ -253,9 +263,14 @@ export default {
name
:
'CmsBanner'
,
name
:
'CmsBanner'
,
data
()
{
data
()
{
return
{
return
{
// 显示开关
showSwitch
:
{
courseContent
:
true
,
curCat
:
false
},
imageUrl
:
''
,
imageUrl
:
''
,
fileUpload
:
'/dev-api/common/fileUpload?file='
+
this
.
file
+
'&temp='
+
'development'
,
/*fileUpload: '/dev-api/common/fileUpload?file=' + this.file + '&temp=' + 'development',*/
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 总条数
// 总条数
...
@@ -366,6 +381,18 @@ export default {
...
@@ -366,6 +381,18 @@ export default {
* @return:
* @return:
**/
**/
handleUpload
(
file
)
{
handleUpload
(
file
)
{
// 获取上传的文件
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
file
.
file
);
// 模拟本地上传,将图片保存到本地某个目录(如:assets/images)
const
localPath
=
this
.
getImagePath
(
file
.
file
);
// 获取本地存储的路径
// 假设你将本地路径保存到 form.bannerPicture 中
this
.
imageUrl
=
localPath
;
// 显示图片路径
this
.
form
.
bannerPicture
=
localPath
;
// 保存到表单字段中
},
/* handleUpload(file) {
const formData = new FormData()
const formData = new FormData()
formData.append('file', file.file)
formData.append('file', file.file)
formData.append('temp', 'CmsBanner')
formData.append('temp', 'CmsBanner')
...
@@ -375,7 +402,7 @@ export default {
...
@@ -375,7 +402,7 @@ export default {
this.showImg = true
this.showImg = true
this.form.bannerPicture = res.data.businessId
this.form.bannerPicture = res.data.businessId
})
})
},
},
*/
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
console
.
log
(
'res'
,
res
)
console
.
log
(
'res'
,
res
)
// this.imageUrl = URL.createObjectURL(file.raw)
// this.imageUrl = URL.createObjectURL(file.raw)
...
...
src/views/contentManagement/notice/info/index.vue
View file @
d5154675
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
import
{
import
{
addCmsNotice
,
addCmsNotice
,
getCmsNotice
,
updateCmsNotice
getCmsNotice
,
updateCmsNotice
}
from
'@/api/contentManagement/
activity
'
}
from
'@/api/contentManagement/
notice
'
import
{
updatePagesRes
,
updateRes
,
updateResonseUrl
,
updateResponseUrl
}
from
'@/utils/updateUrl'
import
{
updatePagesRes
,
updateRes
,
updateResonseUrl
,
updateResponseUrl
}
from
'@/utils/updateUrl'
import
{
VueEditor
}
from
'vue2-editor'
import
{
VueEditor
}
from
'vue2-editor'
import
{
yesOrNo
,
enableOrDisable
}
from
"@/utils/allPageData"
;
import
{
yesOrNo
,
enableOrDisable
}
from
"@/utils/allPageData"
;
...
...
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