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 92eb8de8
authored
Dec 19, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整,同步接口联调
1 parent
fdf9e632
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
6 deletions
src/api/modules/record.js
src/styles/common.scss
src/views/activityRecord/index.vue
src/views/activityRecord/viewRecord.vue
src/api/modules/record.js
View file @
92eb8de
...
@@ -56,10 +56,22 @@ const delActivityRecord = params => {
...
@@ -56,10 +56,22 @@ const delActivityRecord = params => {
})
})
}
}
// 同步活动记录
const
activityRecordSync
=
params
=>
{
params
.
method
=
'entmicro.api.business.activityRecord.syn'
return
http
({
url
:
url
,
method
:
'post'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
getActivityRecord
,
getActivityRecord
,
addActivityRecord
,
addActivityRecord
,
getActivityRecordDetail
,
getActivityRecordDetail
,
delActivityRecord
,
delActivityRecord
,
updateActivityRecord
updateActivityRecord
,
activityRecordSync
}
}
src/styles/common.scss
View file @
92eb8de
...
@@ -116,3 +116,47 @@
...
@@ -116,3 +116,47 @@
.statusText
{
.statusText
{
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
.dot
{
display
:
inline-flex
;
align-items
:
center
;
div
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
margin-right
:
8px
;
}
.normal
{
background-color
:
#2cca74
;
}
.draft
{
background-color
:
#fdb757
;
}
.dot1
{
background-color
:
#fdb757
;
}
.dot2
{
background-color
:
#2cca74
;
}
.dot3
{
background-color
:
#999999
;
}
.dot4
{
background-color
:
#eb4e4e
;
}
.dot5
{
background-color
:
#fdb757
;
}
.dot6
{
background-color
:
#5850FF
;
}
}
\ No newline at end of file
\ No newline at end of file
src/views/activityRecord/index.vue
View file @
92eb8de
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
</div>
</div>
<!-- 状态 -->
<!-- 状态 -->
<div
slot=
"status"
class=
"dot"
slot-scope=
"scope"
>
<div
slot=
"status"
class=
"dot"
slot-scope=
"scope"
>
<
span
:class=
"recordStatus[scope.scope.status]"
></span
>
<
div
:class=
"recordCss[scope.scope.status]"
></div
>
{{
scope
.
scope
.
status
}}
{{
recordStatus
[
scope
.
scope
.
status
]
}}
</div>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
-->
<!--
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
-->
...
@@ -33,15 +33,22 @@
...
@@ -33,15 +33,22 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
const
recordCss
=
{
0
:
'draft'
,
1
:
'dot6'
,
2
:
'dot3'
}
const
recordStatus
=
{
const
recordStatus
=
{
正常
:
'normal'
,
0
:
'未开始'
,
草稿
:
'draft'
1
:
'进行中'
,
2
:
'已结束'
}
}
export
default
{
export
default
{
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
recordStatus
:
recordStatus
,
recordStatus
:
recordStatus
,
recordCss
,
searchForm
:
{
searchForm
:
{
activityName
:
''
,
activityName
:
''
,
merchantName
:
''
merchantName
:
''
...
...
src/views/activityRecord/viewRecord.vue
View file @
92eb8de
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<div
class=
"record-flex record-center record-bottom"
>
<div
class=
"record-flex record-center record-bottom"
>
<div
class=
"record-type"
>
活动ID:
</div>
<div
class=
"record-type"
>
活动ID:
</div>
<div
class=
"record-text"
>
{{
recordForm
.
crowdFundActivityId
}}
</div>
<div
class=
"record-text"
>
{{
recordForm
.
crowdFundActivityId
}}
</div>
<el-button
size=
"small"
type=
"primary"
>
更新数据
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"activityRecordSync"
>
更新数据
</el-button>
</div>
</div>
<!-- 活动详情 -->
<!-- 活动详情 -->
<div
class=
"activity-detail"
>
<div
class=
"activity-detail"
>
...
@@ -119,6 +119,19 @@ export default {
...
@@ -119,6 +119,19 @@ export default {
},
},
goback
()
{
goback
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
},
// 同步活动
activityRecordSync
()
{
let
params
=
{
id
:
this
.
routeInfo
.
id
,
crowdFundActivityId
:
this
.
routeInfo
.
crowdFundActivityId
}
this
.
$apis
.
record
.
activityRecordSync
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
recordForm
=
res
}
})
}
}
}
}
}
}
...
...
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