Commit 92eb8de8 by 前端

样式调整,同步接口联调

1 parent fdf9e632
...@@ -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
} }
...@@ -115,4 +115,48 @@ ...@@ -115,4 +115,48 @@
} }
.statusText { .statusText {
vertical-align: middle; vertical-align: middle;
}
\ No newline at end of file \ No newline at end of file
}
.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
...@@ -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: ''
......
...@@ -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
}
})
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!