Commit 80d9deee by baihong

add:查询活动缴费设置

parent 77bd81a8
...@@ -2,3 +2,6 @@ import { $http } from '@/libs/http' ...@@ -2,3 +2,6 @@ import { $http } from '@/libs/http'
export const activityClocks = (data) => { export const activityClocks = (data) => {
return $http.get('/cms/activityClocks', data) return $http.get('/cms/activityClocks', data)
} }
export const getActivityConfigByPay = (data) => {
return $http.get('/cms/configs/getActivityConfigByPay', data)
}
\ No newline at end of file
...@@ -40,21 +40,8 @@ ...@@ -40,21 +40,8 @@
<template slot-scope="{ row }" slot="created_at"> <template slot-scope="{ row }" slot="created_at">
<span>{{ row.created_at | format }}</span> <span>{{ row.created_at | format }}</span>
</template> </template>
<template slot-scope="{ row }" slot="enable">
<i-switch
:value="row.is_enable === 1 ? true : false"
@on-change="
value => {
change(value, row);
}
"
/>
</template>
<template slot-scope="{ row }" slot="action"> <template slot-scope="{ row }" slot="action">
<a @click="edit(row)">编辑</a> <a @click="edit(row)">详情</a>
</template>
<template slot-scope="{ row }" slot="edit">
<a @click="goTheme(row)">编辑</a>
</template> </template>
</Table> </Table>
<Pager <Pager
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
border border
ref="selection" ref="selection"
:columns="daycolumns" :columns="daycolumns"
:data="data" :data="payData"
> >
<template slot-scope="{ row }" slot="created_at"> <template slot-scope="{ row }" slot="created_at">
<span>{{ row.created_at | format }}</span> <span>{{ row.created_at | format }}</span>
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
</template> </template>
<script> <script>
import { getScenes, delScenes, editScenes } from "@/api/scenes"; import { getActivityConfigByPay } from "@/api/clock/activityClocks";
import Editor from "_c/editor"; import Editor from "_c/editor";
export default { export default {
name: "categories", name: "categories",
...@@ -180,6 +180,7 @@ export default { ...@@ -180,6 +180,7 @@ export default {
}, },
data() { data() {
return { return {
payData:[],
modalVisible: true, modalVisible: true,
formValidate: { formValidate: {
name: "" name: ""
...@@ -198,19 +199,19 @@ export default { ...@@ -198,19 +199,19 @@ export default {
daycolumns: [ daycolumns: [
{ {
title: "休息时间", title: "休息时间",
key: "created_at" key: "break_time"
}, },
{ {
title: "打卡时间", title: "打卡时间",
slot: "name" slot: "clock_time"
}, },
{ {
title: "结算时间", title: "结算时间",
slot: "name" slot: "close_time"
}, },
{ {
title: "缴费数值", title: "缴费数值",
slot: "name" slot: "pay_amount"
}, },
{ {
title: "操作", title: "操作",
...@@ -256,7 +257,11 @@ export default { ...@@ -256,7 +257,11 @@ export default {
}; };
}, },
methods: {}, methods: {},
mounted() {} mounted() {
getActivityConfigByPay().then(res => {
this.payData = [res]
});
}
}; };
</script> </script>
......
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