|
|
@@ -3,23 +3,12 @@
|
|
|
<sa-table ref="crudRef" :options="options" :columns="columns" :searchForm="searchForm">
|
|
|
<!-- 搜索区 tableSearch -->
|
|
|
<template #tableSearch>
|
|
|
- <a-col :sm="6" :xs="24">
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
<a-form-item label="游戏名" field="game_id">
|
|
|
- <!-- <a-tree-select
|
|
|
- v-model="searchForm.game_id"
|
|
|
- :data="gameList"
|
|
|
- placeholder="请选择游戏"
|
|
|
- allow-clear
|
|
|
- :field-names="{ title: 'name', key: 'id' }"
|
|
|
- allow-search
|
|
|
- tree-checked-strategy="child"
|
|
|
- :tree-checkable="true"
|
|
|
- :max-tag-count="1"
|
|
|
- /> -->
|
|
|
<game-select v-model="searchForm.game_id" multiple />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :sm="6" :xs="24">
|
|
|
+ <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
|
|
|
@@ -30,44 +19,49 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :sm="6" :xs="24">
|
|
|
+ <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="6" :xs="24">
|
|
|
+ <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="6" :xs="24">
|
|
|
+ <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="6" :xs="24">
|
|
|
+ <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="6" :xs="24">
|
|
|
+ <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="6" :xs="24">
|
|
|
+ <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="6" :xs="24">
|
|
|
+ <a-col :sm="12" :md="6" :lg="7" :xl="6" :xxl="4" :xs="24">
|
|
|
<a-form-item label="注册日期" field="reg_time">
|
|
|
<a-range-picker v-model="searchForm.reg_time" :show-time="false" mode="date" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :sm="6" :xs="24">
|
|
|
+ <a-col :sm="24" :md="17" :lg="17" :xl="12" :xxl="8" :xs="24">
|
|
|
<a-form-item label="充值日期" field="pay_time">
|
|
|
- <a-range-picker v-model="searchForm.pay_time" :show-time="false" mode="date" />
|
|
|
+ <a-space>
|
|
|
+ <a-range-picker v-model="searchForm.pay_time" :show-time="false" mode="date" />
|
|
|
+ <a-button size="mini" type="primary" @click="refreshDay('yesterday')">前一天</a-button>
|
|
|
+ <a-button size="mini" type="primary" @click="refreshDay('today')">当天</a-button>
|
|
|
+ <a-button size="mini" type="primary" @click="refreshDay('tomorrow')">后一天</a-button>
|
|
|
+ </a-space>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</template>
|
|
|
@@ -95,13 +89,7 @@
|
|
|
<template #pay_time="{ record }">
|
|
|
{{ record.pay_time ? dayjs(record.pay_time * 1000).format('YYYY-MM-DD HH:mm:ss') : '-' }}
|
|
|
</template>
|
|
|
- <template #tableSearchExtend>
|
|
|
- <a-space>
|
|
|
- <a-button type="primary" @click="refreshDay('yesterday')">前一天</a-button>
|
|
|
- <a-button type="primary" @click="refreshDay('today')">当天</a-button>
|
|
|
- <a-button type="primary" @click="refreshDay('tomorrow')">后一天</a-button>
|
|
|
- </a-space>
|
|
|
- </template>
|
|
|
+
|
|
|
<!-- Table 自定义渲染 -->
|
|
|
</sa-table>
|
|
|
</div>
|