|
@@ -1,206 +1,297 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="ma-content-block">
|
|
<div class="ma-content-block">
|
|
|
- <sa-table ref="crudRef" :options="options" :columns="columns" :searchForm="searchForm">
|
|
|
|
|
- <!-- 搜索区 tableSearch -->
|
|
|
|
|
- <template #tableSearch>
|
|
|
|
|
- <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
- <a-form-item label="游戏" field="game_id">
|
|
|
|
|
- <game-select v-model="searchForm.game_id" multiple />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :sm="24" :md="17" :lg="17" :xl="12" :xxl="8" :xs="24">
|
|
|
|
|
- <a-form-item label="充值日期" field="pay_time">
|
|
|
|
|
- <a-space>
|
|
|
|
|
- <a-range-picker class="w-full" v-model="searchForm.pay_time" :show-time="false" mode="date" />
|
|
|
|
|
- <a-button size="mini" type="outline" @click="refreshDay('yesterday')">前一天</a-button>
|
|
|
|
|
- <a-button size="mini" type="outline" @click="refreshDay('today')">当天</a-button>
|
|
|
|
|
- <a-button size="mini" type="outline" @click="refreshDay('tomorrow')">后一天</a-button>
|
|
|
|
|
- </a-space>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
- <a-form-item label="注册日期" field="reg_time">
|
|
|
|
|
- <a-range-picker class="w-full" v-model="searchForm.reg_time" :show-time="false" mode="date" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
- <a-form-item label="服务器ID" field="server_id">
|
|
|
|
|
- <a-input v-model="searchForm.server_id" placeholder="请输入服务器ID" allow-clear />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
- <a-form-item label="服务器名" field="server_name">
|
|
|
|
|
- <a-input v-model="searchForm.server_name" placeholder="请输入服务器名" allow-clear />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
- <a-form-item label="媒体类型" field="media_id">
|
|
|
|
|
- <a-select v-model="searchForm.media_id" placeholder="请选择媒体类型" allow-clear allow-search>
|
|
|
|
|
- <a-option
|
|
|
|
|
- v-for="item in mediaOptions"
|
|
|
|
|
- :key="item.id"
|
|
|
|
|
- :value="item.id"
|
|
|
|
|
- :label="`${item.id}:${item.name}`" />
|
|
|
|
|
- </a-select>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
- <a-form-item label="负责人" field="auth_id">
|
|
|
|
|
- <auth-select v-model="searchForm.auth_id" multiple />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
- <a-form-item label="渠道ID" field="agent_id">
|
|
|
|
|
- <a-input v-model="searchForm.agent_id" placeholder="请输入渠道ID" allow-clear />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
- <a-form-item label="广告位ID" field="site_id">
|
|
|
|
|
- <a-input v-model="searchForm.site_id" placeholder="请输入广告位ID" allow-clear />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
- <a-form-item label="用户名" field="user_name">
|
|
|
|
|
- <a-input v-model="searchForm.user_name" placeholder="请输入用户名" allow-clear />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #tableSearchExtend>
|
|
|
|
|
- <a-space> </a-space>
|
|
|
|
|
- </template>
|
|
|
|
|
- <!-- Table 自定义渲染 -->
|
|
|
|
|
-
|
|
|
|
|
- <template #first_payment="{ record }">
|
|
|
|
|
- <span>
|
|
|
|
|
- {{ record.first_payment === 1 ? '是' : '否' }}
|
|
|
|
|
- </span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </sa-table>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 编辑表单 -->
|
|
|
|
|
- <edit-form ref="editRef" @success="refresh" />
|
|
|
|
|
|
|
+ <a-tabs v-model:activeKey="activeTab" type="line">
|
|
|
|
|
+ <a-tab-pane key="payment" title="支付订单">
|
|
|
|
|
+ <sa-table
|
|
|
|
|
+ ref="crudRef"
|
|
|
|
|
+ :options="options"
|
|
|
|
|
+ :columns="columns"
|
|
|
|
|
+ :searchForm="searchForm"
|
|
|
|
|
+ >
|
|
|
|
|
+ <!-- 搜索区 tableSearch -->
|
|
|
|
|
+ <template #tableSearch>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="游戏" field="game_id">
|
|
|
|
|
+ <game-select v-model="searchForm.game_id" multiple />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="24" :md="17" :lg="17" :xl="12" :xxl="8" :xs="24">
|
|
|
|
|
+ <a-form-item label="充值日期" field="pay_time">
|
|
|
|
|
+ <a-space>
|
|
|
|
|
+ <a-range-picker
|
|
|
|
|
+ class="w-full"
|
|
|
|
|
+ v-model="searchForm.pay_time"
|
|
|
|
|
+ :show-time="false"
|
|
|
|
|
+ mode="date"
|
|
|
|
|
+ />
|
|
|
|
|
+ <a-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="outline"
|
|
|
|
|
+ @click="refreshDay('yesterday')"
|
|
|
|
|
+ >前一天</a-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="outline"
|
|
|
|
|
+ @click="refreshDay('today')"
|
|
|
|
|
+ >当天</a-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="outline"
|
|
|
|
|
+ @click="refreshDay('tomorrow')"
|
|
|
|
|
+ >后一天</a-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </a-space>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="注册日期" field="reg_time">
|
|
|
|
|
+ <a-range-picker
|
|
|
|
|
+ class="w-full"
|
|
|
|
|
+ v-model="searchForm.reg_time"
|
|
|
|
|
+ :show-time="false"
|
|
|
|
|
+ mode="date"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="服务器ID" field="server_id">
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.server_id"
|
|
|
|
|
+ placeholder="请输入服务器ID"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="媒体类型" field="media_id">
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ v-model="searchForm.media_id"
|
|
|
|
|
+ placeholder="请选择媒体类型"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ allow-search
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-option
|
|
|
|
|
+ v-for="item in mediaOptions"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ :label="`${item.id}:${item.name}`"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="负责人" field="auth_id">
|
|
|
|
|
+ <auth-select v-model="searchForm.auth_id" multiple />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="渠道ID" field="agent_id">
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.agent_id"
|
|
|
|
|
+ placeholder="请输入渠道ID"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="广告位ID" field="site_id">
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.site_id"
|
|
|
|
|
+ placeholder="请输入广告位ID"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="用户名" field="user_name">
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.user_name"
|
|
|
|
|
+ placeholder="请输入用户名"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="订单号" field="order_id">
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.order_id"
|
|
|
|
|
+ placeholder="请输订单号"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="CP订单号" field="cp_order_id">
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.cp_order_id"
|
|
|
|
|
+ placeholder="请输CP订单号"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
|
|
+ <a-form-item label="角色ID" field="role_id">
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.role_id"
|
|
|
|
|
+ placeholder="请输角色ID"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #tableSearchExtend>
|
|
|
|
|
+ <a-space> </a-space>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- Table 自定义渲染 -->
|
|
|
|
|
+
|
|
|
|
|
+ <template #first_payment="{ record }">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ {{ record.first_payment === 1 ? "是" : "否" }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </sa-table>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 编辑表单 -->
|
|
|
|
|
+ <edit-form ref="editRef" @success="refresh" />
|
|
|
|
|
+ </a-tab-pane>
|
|
|
|
|
+
|
|
|
|
|
+ <a-tab-pane key="supplement" title="补单管理">
|
|
|
|
|
+ <Reissue />
|
|
|
|
|
+ </a-tab-pane>
|
|
|
|
|
+ </a-tabs>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import { onMounted, ref, reactive } from 'vue'
|
|
|
|
|
-import EditForm from './edit.vue'
|
|
|
|
|
-import api from '../../api/gameLog/sdkOrderSuccess'
|
|
|
|
|
-import dayjs from 'dayjs'
|
|
|
|
|
-import commonApi from '../../api/common'
|
|
|
|
|
-import GameSelect from '@/components/game-select/index.vue'
|
|
|
|
|
-import AuthSelect from '@/components/auth-select/index.vue'
|
|
|
|
|
|
|
+import { onMounted, ref, reactive } from "vue";
|
|
|
|
|
+import EditForm from "./edit.vue";
|
|
|
|
|
+import api from "../../api/gameLog/sdkOrderSuccess";
|
|
|
|
|
+import dayjs from "dayjs";
|
|
|
|
|
+import commonApi from "../../api/common";
|
|
|
|
|
+import GameSelect from "@/components/game-select/index.vue";
|
|
|
|
|
+import AuthSelect from "@/components/auth-select/index.vue";
|
|
|
|
|
+import Reissue from "./reissue.vue";
|
|
|
|
|
|
|
|
// 引用定义
|
|
// 引用定义
|
|
|
-const crudRef = ref()
|
|
|
|
|
-const editRef = ref()
|
|
|
|
|
-const mediaOptions = ref([])
|
|
|
|
|
|
|
+const crudRef = ref();
|
|
|
|
|
+const editRef = ref();
|
|
|
|
|
+const mediaOptions = ref([]);
|
|
|
|
|
+const activeTab = ref("payment");
|
|
|
|
|
|
|
|
// 搜索表单
|
|
// 搜索表单
|
|
|
const searchForm = ref({
|
|
const searchForm = ref({
|
|
|
- game_id: '',
|
|
|
|
|
- media_id: '',
|
|
|
|
|
- auth_id: '',
|
|
|
|
|
- agent_id: '',
|
|
|
|
|
- site_id: '',
|
|
|
|
|
- user_name: '',
|
|
|
|
|
- server_id: '',
|
|
|
|
|
- server_name: '',
|
|
|
|
|
|
|
+ game_id: "",
|
|
|
|
|
+ media_id: "",
|
|
|
|
|
+ auth_id: "",
|
|
|
|
|
+ agent_id: "",
|
|
|
|
|
+ site_id: "",
|
|
|
|
|
+ user_name: "",
|
|
|
|
|
+ server_id: "",
|
|
|
|
|
+ server_name: "",
|
|
|
reg_time: [],
|
|
reg_time: [],
|
|
|
- pay_time: [dayjs().format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')],
|
|
|
|
|
-})
|
|
|
|
|
|
|
+ pay_time: [dayjs().format("YYYY-MM-DD"), dayjs().format("YYYY-MM-DD")],
|
|
|
|
|
+});
|
|
|
|
|
|
|
|
// SaTable 基础配置
|
|
// SaTable 基础配置
|
|
|
const options = reactive({
|
|
const options = reactive({
|
|
|
api: api.getPageList,
|
|
api: api.getPageList,
|
|
|
- pk: 'order_id',
|
|
|
|
|
|
|
+ pk: "order_id",
|
|
|
rowSelection: { showCheckedAll: true },
|
|
rowSelection: { showCheckedAll: true },
|
|
|
showSort: false,
|
|
showSort: false,
|
|
|
export: {
|
|
export: {
|
|
|
// // 导出url
|
|
// // 导出url
|
|
|
// url: "v1/gameLog/sdkOrderSuccess/export",
|
|
// url: "v1/gameLog/sdkOrderSuccess/export",
|
|
|
- url: 'v1/gameLog/UserLog/exportRechargeDetailList',
|
|
|
|
|
|
|
+ url: "v1/gameLog/UserLog/exportRechargeDetailList",
|
|
|
// 显示导出按钮的权限
|
|
// 显示导出按钮的权限
|
|
|
- auth: ['v1/gameLog/sdkOrderSuccess/export'],
|
|
|
|
|
|
|
+ auth: ["v1/gameLog/sdkOrderSuccess/export"],
|
|
|
// 按钮文案
|
|
// 按钮文案
|
|
|
- text: '导出',
|
|
|
|
|
|
|
+ text: "导出",
|
|
|
// 是否显示
|
|
// 是否显示
|
|
|
show: true,
|
|
show: true,
|
|
|
},
|
|
},
|
|
|
operationColumn: false,
|
|
operationColumn: false,
|
|
|
-})
|
|
|
|
|
|
|
+});
|
|
|
|
|
|
|
|
// SaTable 列配置
|
|
// SaTable 列配置
|
|
|
const columns = reactive([
|
|
const columns = reactive([
|
|
|
- { title: '订单号', dataIndex: 'order_id', width: 110 },
|
|
|
|
|
- { title: '用户名', dataIndex: 'user_name', width: 120 },
|
|
|
|
|
- { title: '渠道ID', dataIndex: 'agent_id', width: 80 },
|
|
|
|
|
- { title: '广告位ID', dataIndex: 'site_id', width: 80 },
|
|
|
|
|
|
|
+ { title: "订单号", dataIndex: "order_id", width: 110 },
|
|
|
|
|
+ { title: "用户名", dataIndex: "user_name", width: 120 },
|
|
|
|
|
+ { title: "渠道ID", dataIndex: "agent_id", width: 80 },
|
|
|
|
|
+ { title: "广告位ID", dataIndex: "site_id", width: 80 },
|
|
|
|
|
|
|
|
- { title: '游戏名', dataIndex: 'game_name', width: 120 },
|
|
|
|
|
|
|
+ { title: "游戏名", dataIndex: "game_name", width: 120 },
|
|
|
|
|
|
|
|
- { title: '服务器ID', dataIndex: 'server_id', width: 80 },
|
|
|
|
|
- { title: '服务器名', dataIndex: 'server_name', width: 90 },
|
|
|
|
|
|
|
+ { title: "服务器ID", dataIndex: "server_id", width: 80 },
|
|
|
|
|
+ { title: "服务器名", dataIndex: "server_name", width: 90 },
|
|
|
|
|
|
|
|
- { title: '支付方式', dataIndex: 'pay_channel_name', width: 120 },
|
|
|
|
|
- { title: '充值金额', dataIndex: 'money', width: 100 },
|
|
|
|
|
|
|
+ { title: "支付方式", dataIndex: "pay_channel_name", width: 120 },
|
|
|
|
|
+ { title: "充值金额", dataIndex: "money", width: 100 },
|
|
|
|
|
|
|
|
- { title: '充值日期', dataIndex: 'pay_date', width: 140 },
|
|
|
|
|
- { title: '注册日期', dataIndex: 'reg_date', width: 140 },
|
|
|
|
|
- { title: '首次充值', dataIndex: 'first_payment', width: 80 },
|
|
|
|
|
|
|
+ { title: "充值日期", dataIndex: "pay_date", width: 140 },
|
|
|
|
|
+ { title: "注册日期", dataIndex: "reg_date", width: 140 },
|
|
|
|
|
+ { title: "首次充值", dataIndex: "first_payment", width: 80 },
|
|
|
|
|
|
|
|
- { title: '渠道名', dataIndex: 'agent_name', width: 120 },
|
|
|
|
|
- { title: '负责人', dataIndex: 'auth_name', width: 70 },
|
|
|
|
|
-])
|
|
|
|
|
|
|
+ { title: "渠道名", dataIndex: "agent_name", width: 120 },
|
|
|
|
|
+ { title: "负责人", dataIndex: "auth_name", width: 70 },
|
|
|
|
|
+]);
|
|
|
|
|
|
|
|
// 获取媒体类型
|
|
// 获取媒体类型
|
|
|
const getMediaOptions = async () => {
|
|
const getMediaOptions = async () => {
|
|
|
- const resp = await commonApi.getMediaOptionsApi()
|
|
|
|
|
|
|
+ const resp = await commonApi.getMediaOptionsApi();
|
|
|
if (resp.code === 200) {
|
|
if (resp.code === 200) {
|
|
|
- mediaOptions.value = resp.data
|
|
|
|
|
|
|
+ mediaOptions.value = resp.data;
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
// 页面数据初始化
|
|
// 页面数据初始化
|
|
|
const initPage = async () => {
|
|
const initPage = async () => {
|
|
|
- await getMediaOptions()
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ await getMediaOptions();
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
const refreshDay = async (day) => {
|
|
const refreshDay = async (day) => {
|
|
|
switch (day) {
|
|
switch (day) {
|
|
|
- case 'yesterday':
|
|
|
|
|
|
|
+ case "yesterday":
|
|
|
|
|
+ searchForm.value.pay_time = [
|
|
|
|
|
+ dayjs(searchForm.value.pay_time[0])
|
|
|
|
|
+ .subtract(1, "day")
|
|
|
|
|
+ .format("YYYY-MM-DD"),
|
|
|
|
|
+ dayjs(searchForm.value.pay_time[1])
|
|
|
|
|
+ .subtract(1, "day")
|
|
|
|
|
+ .format("YYYY-MM-DD"),
|
|
|
|
|
+ ];
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "today":
|
|
|
searchForm.value.pay_time = [
|
|
searchForm.value.pay_time = [
|
|
|
- dayjs(searchForm.value.pay_time[0]).subtract(1, 'day').format('YYYY-MM-DD'),
|
|
|
|
|
- dayjs(searchForm.value.pay_time[1]).subtract(1, 'day').format('YYYY-MM-DD'),
|
|
|
|
|
- ]
|
|
|
|
|
- break
|
|
|
|
|
- case 'today':
|
|
|
|
|
- searchForm.value.pay_time = [dayjs().format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')]
|
|
|
|
|
- break
|
|
|
|
|
- case 'tomorrow':
|
|
|
|
|
|
|
+ dayjs().format("YYYY-MM-DD"),
|
|
|
|
|
+ dayjs().format("YYYY-MM-DD"),
|
|
|
|
|
+ ];
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "tomorrow":
|
|
|
searchForm.value.pay_time = [
|
|
searchForm.value.pay_time = [
|
|
|
- dayjs(searchForm.value.pay_time[0]).add(1, 'day').format('YYYY-MM-DD'),
|
|
|
|
|
- dayjs(searchForm.value.pay_time[1]).add(1, 'day').format('YYYY-MM-DD'),
|
|
|
|
|
- ]
|
|
|
|
|
- break
|
|
|
|
|
|
|
+ dayjs(searchForm.value.pay_time[0]).add(1, "day").format("YYYY-MM-DD"),
|
|
|
|
|
+ dayjs(searchForm.value.pay_time[1]).add(1, "day").format("YYYY-MM-DD"),
|
|
|
|
|
+ ];
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
- break
|
|
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
- refresh()
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ refresh();
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
// SaTable 数据请求
|
|
// SaTable 数据请求
|
|
|
const refresh = async () => {
|
|
const refresh = async () => {
|
|
|
- crudRef.value?.refresh()
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ crudRef.value?.refresh();
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
// 页面加载完成执行
|
|
// 页面加载完成执行
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
|
- initPage()
|
|
|
|
|
- refresh()
|
|
|
|
|
-})
|
|
|
|
|
|
|
+ initPage();
|
|
|
|
|
+ refresh();
|
|
|
|
|
+});
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-export default { name: 'v1/user-logs/sdkOrderSuccess' }
|
|
|
|
|
|
|
+export default { name: "v1/user-logs/sdkOrderSuccess" };
|
|
|
</script>
|
|
</script>
|