Commit 80d9deee by baihong

add:查询活动缴费设置

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