Commit 7c83ca29 by baihong

活动详情

parent ea613da2
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<span>{{ row.created_at | format }}</span> <span>{{ row.created_at | format }}</span>
</template> </template>
<template slot-scope="{ row }" slot="action"> <template slot-scope="{ row }" slot="action">
<a @click="edit(row)">详情</a> <a @click="goDetail(row)">详情</a>
</template> </template>
</Table> </Table>
<Pager <Pager
...@@ -142,8 +142,8 @@ export default { ...@@ -142,8 +142,8 @@ export default {
this.pageSize = pager.size; this.pageSize = pager.size;
this.search(); this.search();
}, },
goDetail() { goDetail(row) {
this.$router.push({ path: "/signIn/detail", query: { id: "new" } }); this.$router.push({ path: "/clockEarly/userAcDetail", query: { row: row } });
} }
}, },
mounted() { mounted() {
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<Card dis-hover :padding="30"> <Card dis-hover :padding="30">
<p slot="title">基础信息</p> <p slot="title">基础信息</p>
<Row> <Row>
<Col span="8">活动日期:2020-2-12</Col> <Col span="8">活动日期:{{row.activity_date | format}}</Col>
<Col span="8">可获得真我币:1000</Col> <Col span="8">可获得真我币:{{row.expense_amount}}</Col>
<Col span="8">签到人数:1000</Col> <Col span="8">签到人数:{{row.sign_in_num}}</Col>
</Row> </Row>
</Card> </Card>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class="left"> <div class="left">
用户搜索: 用户搜索:
<Input style="width:200px" enter-button placeholder="请输入" /> <Input style="width:200px" enter-button placeholder="请输入" />
<Button type="primary" @click="goDetail">查 询</Button> <Button type="primary" >查 询</Button>
</div> </div>
</div> </div>
<Table <Table
...@@ -39,13 +39,19 @@ ...@@ -39,13 +39,19 @@
</template> </template>
<script> <script>
import { getScenes, delScenes, editScenes } from "@/api/scenes"; import { formatDate } from "@/libs/util";
export default { export default {
name: "categories", name: "categories",
components: {}, components: {},
filters: {
format(value) {
return formatDate(value);
}
},
data() { data() {
return { return {
tab: "1", tab: "1",
row: this.$route.query.row,
data: [], data: [],
columns: [ columns: [
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment