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
438d5aaf
Commit
438d5aaf
authored
Dec 23, 2024
by
冷玲鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动管理、公告管理:修改数据库字段
parent
888ed0d2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
26 deletions
+70
-26
index.vue
src/views/contentManagement/activity/index.vue
+31
-22
index.vue
src/views/contentManagement/activity/info/index.vue
+38
-2
index.vue
src/views/contentManagement/banner/index.vue
+1
-1
index.vue
src/views/contentManagement/notice/index.vue
+0
-1
No files found.
src/views/contentManagement/activity/index.vue
View file @
438d5aaf
...
...
@@ -75,7 +75,6 @@
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"title"
label=
"活动标题"
min-width=
"230"
show-overflow-tooltip
/>
<el-table-column
align=
"center"
prop=
"summary"
label=
"活动摘要"
min-width=
"230"
show-overflow-tooltip
/>
<el-table-column
align=
"center"
label=
"封面"
min-width=
"120"
prop=
"pictureId"
>
<!-- <template slot-scope="scope">
<div :id="step(scope.$index)">
...
...
@@ -114,9 +113,9 @@
<el-tag
v-if=
"scope.row.isRecommended === 1"
type=
"warning"
size=
"medium "
>
推荐
</el-tag>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"
participant
Count"
label=
"报名人数"
min-width=
"80"
>
<el-table-column
align=
"center"
prop=
"
application
Count"
label=
"报名人数"
min-width=
"80"
>
<
template
slot-scope=
"scope"
>
<el-link
type=
"primary"
@
click=
"handleClick(scope.row)"
>
{{
scope
.
row
.
participant
Count
||
0
}}
</el-link>
<el-link
type=
"primary"
@
click=
"handleClick(scope.row)"
>
{{
scope
.
row
.
application
Count
||
0
}}
</el-link>
</
template
>
</el-table-column>
<el-table-column
label=
"排序"
prop=
"weight"
:show-overflow-tooltip=
"true"
min-width=
"55"
>
...
...
@@ -135,12 +134,12 @@
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"
registr
ationFee"
label=
"报名费用"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"
applic
ationFee"
label=
"报名费用"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
{{
numberFormatter
(
scope
.
row
.
registr
ationFee
,
2
)
||
'-'
}}
{{
numberFormatter
(
scope
.
row
.
applic
ationFee
,
2
)
||
'-'
}}
</
template
>
<!-- <template slot-scope="scope">
<span>{{ scope.row.
registr
ationFee }}</span>
<span>{{ scope.row.
applic
ationFee }}</span>
</template>-->
</el-table-column>
<!-- <el-table-column align="center" prop="createUser" label="提交人" show-overflow-tooltip>
...
...
@@ -153,6 +152,16 @@
<span>
{{
scope
.
row
.
publishDate
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"startTime"
label=
"结束时间"
min-width=
"120"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
startTime
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"endTime"
label=
"发布日期"
min-width=
"120"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
endTime
}}
</span>
</
template
>
</el-table-column>
<!-- <el-table-column align="left" prop="createDate" label="提交时间" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{ scope.row.createDate }}</span>
...
...
@@ -200,9 +209,9 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"900px"
append-to-body
>
<el-form
ref=
"queryForm"
style=
"margin: 0 0 0 -15px"
:model=
"queryParams1"
:inline=
"true"
>
<el-form-item>
<el-select
v-model=
"queryParams1.
registration
"
>
<el-select
v-model=
"queryParams1.
status
"
>
<el-option
v-for=
"item in
registration
Options"
v-for=
"item in
status
Options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
...
...
@@ -237,7 +246,7 @@
>
{{ commonField.resetName }}
</el-button>
</el-form-item>
</el-form>
<div
v-if=
"queryParams1.
registration ==='已报名
'"
class=
"app-container1"
>
<div
v-if=
"queryParams1.
status ==='1
'"
class=
"app-container1"
>
<el-table
:data=
"gridData"
height=
"300px"
>
<el-table-column
align=
"center"
prop=
"id"
label=
"序号"
min-width=
"55px"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -273,7 +282,7 @@
@
pagination=
"loadData1"
/>
</div>
<div
v-if=
"queryParams1.
registration ==='取消报名
'"
class=
"app-container1"
>
<div
v-if=
"queryParams1.
status ==='2
'"
class=
"app-container1"
>
<el-table
:data=
"gridData1"
height=
"300px"
>
<el-table-column
align=
"center"
prop=
"id"
label=
"序号"
min-width=
"55px"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -407,14 +416,14 @@ export default {
}
],
// 发布状态
registration
Options
:
[
status
Options
:
[
{
label
:
'已报名'
,
value
:
'
已报名
'
value
:
'
1
'
},
{
label
:
'取消报名'
,
value
:
'
取消报名
'
value
:
'
2
'
}
],
// 上传提交
...
...
@@ -434,7 +443,7 @@ export default {
page
:
1
,
rows
:
10
,
flag
:
''
,
registration
:
'已报名
'
status
:
'1
'
},
// pagination
total
:
0
,
...
...
@@ -530,7 +539,7 @@ export default {
this
.
queryParams
=
{
page
:
1
,
rows
:
10
,
registration
:
'已报名
'
status
:
'1
'
}
this
.
dateRange
=
[]
this
.
loadData
()
...
...
@@ -550,7 +559,7 @@ export default {
// 过滤 gridData
const
filteredGridData
=
this
.
gridData
.
filter
(
item
=>
{
return
(
(
!
this
.
queryParams1
.
registration
||
item
.
registration
===
this
.
queryParams1
.
registration
)
&&
(
!
this
.
queryParams1
.
status
||
item
.
status
===
this
.
queryParams1
.
status
)
&&
(
!
this
.
queryParams1
.
name
||
item
.
name
.
includes
(
this
.
queryParams1
.
name
))
)
})
...
...
@@ -558,7 +567,7 @@ export default {
// 过滤 gridData1
const
filteredGridData1
=
this
.
gridData1
.
filter
(
item
=>
{
return
(
(
!
this
.
queryParams1
.
registration
||
item
.
registration
===
this
.
queryParams1
.
registration
)
&&
(
!
this
.
queryParams1
.
status
||
item
.
status
===
this
.
queryParams1
.
status
)
&&
(
!
this
.
queryParams1
.
name
||
item
.
name
.
includes
(
this
.
queryParams1
.
name
))
)
})
...
...
@@ -576,7 +585,7 @@ export default {
this
.
queryParams1
=
{
page
:
1
,
rows
:
10
,
registration
:
'已报名
'
status
:
'1
'
}
// 重置表单
this
.
$refs
.
queryForm
.
resetFields
()
...
...
@@ -608,22 +617,22 @@ export default {
this
.
queryParams1
=
{
page
:
1
,
rows
:
10
,
registration
:
'已报名
'
status
:
'1
'
}
this
.
title
=
'报名人数'
const
activityId
=
row
.
businessId
const
participantCount
=
row
.
participant
Count
||
0
const
applicationCount
=
row
.
application
Count
||
0
// 调用后端接口查询与该活动对应的子表数据
this
.
fetchSubTableData
(
activityId
)
// 显示报名人数
this
.
participantCount
=
participant
Count
this
.
applicationCount
=
application
Count
},
/** 查询子表数据 */
fetchSubTableData
(
activityId
)
{
// 将 activityId 传递给后端,查询子表数据
listCmsApplication
({
activityId
:
activityId
})
.
then
(
response
=>
{
const
data
=
response
.
rows
||
[]
const
data
=
response
.
data
||
[]
// 清空原始数据(如果有需要的话)
this
.
gridData
=
[]
this
.
gridData1
=
[]
...
...
src/views/contentManagement/activity/info/index.vue
View file @
438d5aaf
...
...
@@ -119,7 +119,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<!--
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"活动摘要:"
...
...
@@ -138,7 +138,7 @@
/>
</el-form-item>
</el-col>
</el-row>
</el-row>
-->
<el-row>
<el-col
:span=
"24"
>
<el-form-item
...
...
@@ -196,6 +196,42 @@
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"开始时间:"
prop=
"startTime"
:rules=
"
{ required: !(controls.isOperation === '3'), message: '请选择开始时间', trigger: 'blur' }"
>
<el-date-picker
v-model=
"form.releaseDate"
type=
"date"
placeholder=
"选择发布日期"
:disabled=
"secondFromDisabled"
size=
"small"
class=
"normalInput"
value-format=
"yyyy-MM-dd"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"结束时间:"
prop=
"endTime"
:rules=
"
{ required: !(controls.isOperation === '3'), message: '请选择结束时间', trigger: 'blur' }"
>
<el-date-picker
v-model=
"form.releaseDate"
type=
"date"
placeholder=
"选择发布日期"
:disabled=
"secondFromDisabled"
size=
"small"
class=
"normalInput"
value-format=
"yyyy-MM-dd"
/>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
...
...
src/views/contentManagement/banner/index.vue
View file @
438d5aaf
...
...
@@ -51,7 +51,7 @@
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"图片"
prop=
"
bannerPicture
"
min-width=
"120"
>
<el-table-column
align=
"center"
label=
"图片"
prop=
"
pictureId
"
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
<div
:id=
"step(scope.$index)"
>
<el-image
...
...
src/views/contentManagement/notice/index.vue
View file @
438d5aaf
...
...
@@ -67,7 +67,6 @@
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"title"
label=
"公告标题"
min-width=
"200"
show-overflow-tooltip
/>
<el-table-column
align=
"center"
prop=
"summary"
label=
"公告摘要"
min-width=
"200"
show-overflow-tooltip
/>
<el-table-column
align=
"center"
label=
"封面"
min-width=
"120"
prop=
"pictureId"
>
<!-- <template slot-scope="scope">
<div :id="step(scope.$index)">
...
...
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