Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 64c770a0
authored
Jan 09, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.3.0_kuangyq_dev' into 'v3.4.0-0117'
线上问题修复 See merge request
!27
2 parents
dd6578f8
464d3f05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
src/views/activityRecord/addRecord.vue
src/views/activityRecord/viewRecord.vue
src/views/activityRecord/addRecord.vue
View file @
64c770a
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
template
v-if=
"recordForm.imageUrlArr
&& recordForm.imageUrlArr
.length < 9"
>
<
template
v-if=
"recordForm.imageUrlArr.length < 9"
>
<div
class=
"upload-img"
>
<div
class=
"upload-img"
>
<i
class=
"el-icon-plus avatar-uploader-desc-icon"
></i>
<i
class=
"el-icon-plus avatar-uploader-desc-icon"
></i>
<div
class=
"avatar-uploader-desc-word"
>
上传照片
</div>
<div
class=
"avatar-uploader-desc-word"
>
上传照片
</div>
...
@@ -143,6 +143,7 @@ export default {
...
@@ -143,6 +143,7 @@ export default {
getActivityRecordDetail
(
id
)
{
getActivityRecordDetail
(
id
)
{
this
.
$apis
.
record
.
getActivityRecordDetail
({
Id
:
id
}).
then
(
res
=>
{
this
.
$apis
.
record
.
getActivityRecordDetail
({
Id
:
id
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
if
(
!
res
.
imageUrlArr
)
res
.
imageUrlArr
=
[]
this
.
recordForm
=
res
this
.
recordForm
=
res
}
}
})
})
...
@@ -328,6 +329,7 @@ export default {
...
@@ -328,6 +329,7 @@ export default {
default
:
default
:
this
.
recordForm
.
videoUrl
=
''
this
.
recordForm
.
videoUrl
=
''
}
}
console
.
log
(
this
.
recordForm
,
'==='
)
},
},
handleCancel
()
{
handleCancel
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
...
@@ -344,6 +346,9 @@ export default {
...
@@ -344,6 +346,9 @@ export default {
return
return
}
}
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
recordForm
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
recordForm
))
if
(
!
params
.
imageUrlArr
.
length
)
{
params
.
imageUrlArr
=
''
}
// 创建
// 创建
if
(
this
.
routeInfo
.
addOrEdit
==
1
)
{
if
(
this
.
routeInfo
.
addOrEdit
==
1
)
{
let
detailData
=
await
this
.
$apis
.
record
.
findActivity
({
activityId
:
this
.
recordForm
.
crowdFundActivityId
})
let
detailData
=
await
this
.
$apis
.
record
.
findActivity
({
activityId
:
this
.
recordForm
.
crowdFundActivityId
})
...
@@ -376,6 +381,7 @@ export default {
...
@@ -376,6 +381,7 @@ export default {
}
else
{
}
else
{
// 编辑
// 编辑
params
.
id
=
this
.
routeInfo
.
id
params
.
id
=
this
.
routeInfo
.
id
console
.
log
(
params
,
'--'
)
this
.
$apis
.
record
.
updateActivityRecord
(
params
).
then
(
res
=>
{
this
.
$apis
.
record
.
updateActivityRecord
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$message
({
this
.
$message
({
...
...
src/views/activityRecord/viewRecord.vue
View file @
64c770a
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
v-else
>
无
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment