Commit 92eb8de8 by 前端

样式调整,同步接口联调

1 parent fdf9e632
......@@ -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 {
getActivityRecord,
addActivityRecord,
getActivityRecordDetail,
delActivityRecord,
updateActivityRecord
updateActivityRecord,
activityRecordSync
}
......@@ -115,4 +115,48 @@
}
.statusText {
vertical-align: middle;
}
\ 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
......@@ -19,8 +19,8 @@
</div>
<!-- 状态 -->
<div slot="status" class="dot" slot-scope="scope">
<span :class="recordStatus[scope.scope.status]"></span>
{{ scope.scope.status }}
<div :class="recordCss[scope.scope.status]"></div>
{{ recordStatus[scope.scope.status] }}
</div>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- <GLTableButton :buttonList="buttonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> -->
......@@ -33,15 +33,22 @@
</div>
</template>
<script>
const recordCss = {
0: 'draft',
1: 'dot6',
2: 'dot3'
}
const recordStatus = {
正常: 'normal',
草稿: 'draft'
0: '未开始',
1: '进行中',
2: '已结束'
}
export default {
name: '',
data() {
return {
recordStatus: recordStatus,
recordCss,
searchForm: {
activityName: '',
merchantName: ''
......
......@@ -6,7 +6,7 @@
<div class="record-flex record-center record-bottom">
<div class="record-type">活动ID:</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 class="activity-detail">
......@@ -119,6 +119,19 @@ export default {
},
goback() {
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!