ith5 преди 5 месеца
родител
ревизия
5e265b55c2

+ 6 - 1
src/components/media-select/index.vue

@@ -1,6 +1,11 @@
 <template>
   <a-select :model-value="modelValue" @change="onUpdate" placeholder="请选择媒体类型" :multiple="multiple" allow-clear>
-    <a-option :maxTagCount="1" v-for="item in mediaOptions" :key="item.id" :value="item.id" :label="`${item.name}`" />
+    <a-option
+      :maxTagCount="1"
+      v-for="item in mediaOptions"
+      :key="item.id"
+      :value="item.id"
+      :label="`${item.id}:${item.name}`" />
   </a-select>
 </template>
 <script setup>

+ 75 - 92
src/views/v1/advert/callbackPushLog/index.vue

@@ -1,77 +1,47 @@
 <template>
   <div class="ma-content-block">
-    <sa-table
-      ref="crudRef"
-      :options="options"
-      :columns="columns"
-      :searchForm="searchForm"
-    >
+    <sa-table ref="crudRef" :options="options" :columns="columns" :searchForm="searchForm">
       <!-- 搜索区 tableSearch -->
       <template #tableSearch>
         <a-col :sm="8" :xs="24">
           <a-form-item label="用户名" field="user_name">
-            <a-input
-              v-model="searchForm.user_name"
-              placeholder="请输入用户名"
-              allow-clear
-            />
+            <a-input v-model="searchForm.user_name" placeholder="请输入用户名" allow-clear />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
           <a-form-item label="渠道ID" field="agent_id">
-            <a-input
-              v-model="searchForm.agent_id"
-              placeholder="请输入渠道ID"
-              allow-clear
-            />
+            <a-input v-model="searchForm.agent_id" placeholder="请输入渠道ID" allow-clear />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
           <a-form-item label="广告位ID" field="site_id">
-            <a-input
-              v-model="searchForm.site_id"
-              placeholder="请输入广告位ID"
-              allow-clear
-            />
+            <a-input v-model="searchForm.site_id" placeholder="请输入广告位ID" allow-clear />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="注册时间" field="reg_time">
-            <a-range-picker
-              class="w-full"
-              v-model="searchForm.reg_time"
-              :show-time="true"
-              mode="date"
-            />
+          <a-form-item label="注册日期" field="reg_time">
+            <a-date-picker class="w-full" v-model="searchForm.reg_time" mode="date" />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="上报时间" field="add_time">
-            <a-range-picker
-              class="w-full"
-              v-model="searchForm.add_time"
-              :show-time="true"
-              mode="date"
-            />
+          <a-form-item label="上报日期" field="create_time">
+            <a-date-picker class="w-full" v-model="searchForm.create_time" mode="date" />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
           <a-form-item label="上报类型" field="step">
-            <sa-select
-              v-model="searchForm.step"
-              dict="callback_step"
-              placeholder="请选择上报类型"
-              allow-clear
-            />
+            <sa-select v-model="searchForm.step" dict="callback_step" placeholder="请选择上报类型" allow-clear />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
           <a-form-item label="媒体类型" field="media_id">
-            <a-input
-              v-model="searchForm.media_id"
-              placeholder="请输入媒体类型"
-              allow-clear
-            />
+            <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>
       </template>
@@ -85,81 +55,94 @@
 </template>
 
 <script setup>
-import { onMounted, ref, reactive } from "vue";
-import { Message } from "@arco-design/web-vue";
-import EditForm from "./edit.vue";
-import api from "../../api/advert/callbackPushLog";
+import { onMounted, ref, reactive } from 'vue'
+import { Message } from '@arco-design/web-vue'
+import EditForm from './edit.vue'
+import commonAdvertApi from '../../api/common'
+import api from '../../api/advert/callbackPushLog'
+import dayjs from 'dayjs'
 
 // 引用定义
-const crudRef = ref();
-const editRef = ref();
-const viewRef = ref();
+const crudRef = ref()
+const editRef = ref()
+const mediaOptions = ref()
 
 // 搜索表单
 const searchForm = ref({
-  user_name: "",
-  agent_id: "",
-  site_id: "",
-  reg_time: [],
-  add_time: [],
-  step: "",
-  media_id: "",
-});
+  user_name: '',
+  agent_id: '',
+  site_id: '',
+  reg_time: '',
+  create_time: '',
+  step: '',
+  media_id: '',
+})
 
 // SaTable 基础配置
 const options = reactive({
   api: api.getPageList,
   rowSelection: { showCheckedAll: true },
   operationColumn: false,
-});
+})
 
 // SaTable 列配置
 const columns = reactive([
   {
-    title: "类型",
-    dataIndex: "step",
-    type: "dict",
-    dict: "callback_step",
+    title: '类型',
+    dataIndex: 'step',
+    type: 'dict',
+    dict: 'callback_step',
     width: 120,
   },
-  { title: "用户名", dataIndex: "user_name", width: 120 },
-  { title: "上报游戏", dataIndex: "game_id", width: 120 },
-  { title: "上报渠道", dataIndex: "agent_id", width: 120 },
-  { title: "上报广告位", dataIndex: "site_id", width: 120 },
-  { title: "上报时间", dataIndex: "add_time", width: 120 },
+  { title: '用户名', dataIndex: 'user_name', width: 120 },
+  { title: '上报游戏', dataIndex: 'game_id', width: 120 },
+  { title: '上报渠道', dataIndex: 'agent_id', width: 120 },
+  { title: '上报广告位', dataIndex: 'site_id', width: 120 },
+  { title: '上报时间', dataIndex: 'create_time', width: 120 },
 
-  { title: "注册游戏", dataIndex: "reg_game_id", width: 120 },
-  { title: "注册渠道", dataIndex: "reg_agent_id", width: 120 },
-  { title: "注册广告位", dataIndex: "reg_site_id", width: 120 },
-  { title: "注册时间", dataIndex: "reg_time", width: 120 },
+  { title: '注册游戏', dataIndex: 'reg_game_id', width: 120 },
+  { title: '注册渠道', dataIndex: 'reg_agent_id', width: 120 },
+  { title: '注册广告位', dataIndex: 'reg_site_id', width: 120 },
+  { title: '注册时间', dataIndex: 'reg_time', width: 120 },
 
-  { title: "上报金额", dataIndex: "money", width: 180 },
-  { title: "上报设备号", dataIndex: "imei", width: 280 },
-  { title: "上报IP", dataIndex: "ip", width: 180 },
+  { title: '上报金额', dataIndex: 'money', width: 180 },
+  { title: '上报设备号', dataIndex: 'imei', width: 280 },
+  { title: '上报IP', dataIndex: 'ip', width: 180 },
 
-  { title: "系统版本", dataIndex: "system_version", width: 120 },
-  { title: "sdk版本", dataIndex: "sdk_version", width: 120 },
-  { title: "包名", dataIndex: "packname", width: 120 },
+  { title: '系统版本', dataIndex: 'system_version', width: 120 },
+  { title: 'sdk版本', dataIndex: 'sdk_version', width: 120 },
+  { title: '包名', dataIndex: 'packname', width: 120 },
   {
-    title: "接口",
-    dataIndex: "media_type",
-    type: "dict",
-    dict: "callback_media_type",
+    title: '接口',
+    dataIndex: 'media_type',
+    type: 'dict',
+    dict: 'callback_media_type',
     width: 120,
   },
-]);
+])
+
+// 获取媒体类型
+const getMediaOptions = async () => {
+  const resp = await commonAdvertApi.getMediaOptionsApi()
+  if (resp.code === 200) {
+    mediaOptions.value = resp.data
+  }
+}
 
 // 页面数据初始化
-const initPage = async () => {};
+const initPage = async () => {
+  await getMediaOptions()
+  searchForm.value.create_time = dayjs().format('YYYY-MM-DD')
+}
 
 // SaTable 数据请求
 const refresh = async () => {
-  crudRef.value?.refresh();
-};
+  crudRef.value?.refresh()
+}
 
 // 页面加载完成执行
 onMounted(async () => {
-  initPage();
-  refresh();
-});
+  initPage()
+  refresh()
+})
 </script>

+ 2 - 2
src/views/v1/advert/gamePackage/index.vue

@@ -4,8 +4,8 @@
       <!-- 搜索区 tableSearch -->
       <template #tableSearch>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="媒体ID" field="media_id">
-            <a-select v-model="searchForm.media_id" placeholder="请选择媒体ID" allow-clear>
+          <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"

+ 1 - 0
src/views/v1/advert/gamePackageLog/index.vue

@@ -64,6 +64,7 @@ const searchForm = ref({
 const options = reactive({
   api: api.getPageList,
   operationColumn: false,
+  showSort: false,
   add: {
     show: false,
     auth: ['/v1/gameLog/GamePackLog/save'],

+ 1 - 1
src/views/v1/advert/mediaCost/index.vue

@@ -152,7 +152,7 @@ const initPage = async () => {
 
 // 获取媒体类型
 const getMediaOptions = async () => {
-  const resp = await commonAdvertApi.getAgentOptionsApi()
+  const resp = await commonAdvertApi.getMediaOptionsApi()
   if (resp.code === 200) {
     mediaOptions.value = resp.data
   }

+ 2 - 2
src/views/v1/center/game/index.vue

@@ -20,7 +20,7 @@
         </a-col>
         <a-col :sm="8" :xs="24">
           <a-form-item label="状态" field="status">
-            <sa-select v-model="searchForm.status" dict="data_status" placeholder="请选择状态" allow-clear />
+            <sa-select v-model="searchForm.status" dict="data_status" placeholder="请选择状态" />
           </a-form-item>
         </a-col>
       </template>
@@ -63,7 +63,7 @@ const searchForm = ref({
   main_id: '',
   name: '',
   os: '',
-  status: '',
+  status: 1,
 })
 
 // SaTable 基础配置

+ 32 - 40
src/views/v1/center/gameGroup/index.vue

@@ -1,20 +1,11 @@
 <template>
   <div class="ma-content-block">
-    <sa-table
-      ref="crudRef"
-      :options="options"
-      :columns="columns"
-      :searchForm="searchForm"
-    >
+    <sa-table ref="crudRef" :options="options" :columns="columns" :searchForm="searchForm">
       <!-- 搜索区 tableSearch -->
       <template #tableSearch>
         <a-col :sm="8" :xs="24">
           <a-form-item label="分组名" field="name">
-            <a-input
-              v-model="searchForm.name"
-              placeholder="请输入分组名"
-              allow-clear
-            />
+            <a-input v-model="searchForm.name" placeholder="请输入分组名" allow-clear />
           </a-form-item>
         </a-col>
       </template>
@@ -29,75 +20,76 @@
 </template>
 
 <script setup>
-import { onMounted, ref, reactive } from "vue";
-import { Message } from "@arco-design/web-vue";
-import EditForm from "./edit.vue";
-import ViewForm from "./view.vue";
-import api from "../../api/center/gameGroup";
+import { onMounted, ref, reactive } from 'vue'
+import { Message } from '@arco-design/web-vue'
+import EditForm from './edit.vue'
+import ViewForm from './view.vue'
+import api from '../../api/center/gameGroup'
 
 // 引用定义
-const crudRef = ref();
-const editRef = ref();
-const viewRef = ref();
+const crudRef = ref()
+const editRef = ref()
+const viewRef = ref()
 
 // 搜索表单
 const searchForm = ref({
-  name: "",
-});
+  name: '',
+})
 
 // SaTable 基础配置
 const options = reactive({
   api: api.getPageList,
   rowSelection: { showCheckedAll: true },
+  showSort: false,
   view: {
     show: true,
-    auth: ["/v1/center/GameGroup/view"],
+    auth: ['/v1/center/GameGroup/view'],
     func: async (record) => {
-      viewRef.value?.open(record);
+      viewRef.value?.open(record)
     },
   },
   add: {
     show: true,
-    auth: ["/v1/center/GameGroup/save"],
+    auth: ['/v1/center/GameGroup/save'],
     func: async () => {
-      editRef.value?.open();
+      editRef.value?.open()
     },
   },
   edit: {
     show: true,
-    auth: ["/v1/center/GameGroup/update"],
+    auth: ['/v1/center/GameGroup/update'],
     func: async (record) => {
-      editRef.value?.open("edit");
-      editRef.value?.setFormData(record);
+      editRef.value?.open('edit')
+      editRef.value?.setFormData(record)
     },
   },
   delete: {
     show: true,
-    auth: ["/v1/center/GameGroup/destroy"],
+    auth: ['/v1/center/GameGroup/destroy'],
     func: async (params) => {
-      const resp = await api.destroy(params);
+      const resp = await api.destroy(params)
       if (resp.code === 200) {
-        Message.success(`删除成功!`);
-        crudRef.value?.refresh();
+        Message.success(`删除成功!`)
+        crudRef.value?.refresh()
       }
     },
   },
-});
+})
 
 // SaTable 列配置
-const columns = reactive([{ title: "分组名", dataIndex: "name", width: 180 }]);
+const columns = reactive([{ title: '分组名', dataIndex: 'name', width: 180 }])
 
 // 页面数据初始化
-const initPage = async () => {};
+const initPage = async () => {}
 
 // SaTable 数据请求
 const refresh = async () => {
-  crudRef.value?.refresh();
-};
+  crudRef.value?.refresh()
+}
 
 // 页面加载完成执行
 onMounted(async () => {
-  initPage();
-  refresh();
-});
+  initPage()
+  refresh()
+})
 </script>

+ 33 - 41
src/views/v1/center/gameMain/index.vue

@@ -1,20 +1,11 @@
 <template>
   <div class="ma-content-block">
-    <sa-table
-      ref="crudRef"
-      :options="options"
-      :columns="columns"
-      :searchForm="searchForm"
-    >
+    <sa-table ref="crudRef" :options="options" :columns="columns" :searchForm="searchForm">
       <!-- 搜索区 tableSearch -->
       <template #tableSearch>
         <a-col :sm="8" :xs="24">
           <a-form-item label="名称" field="name">
-            <a-input
-              v-model="searchForm.name"
-              placeholder="请输入名称"
-              allow-clear
-            />
+            <a-input v-model="searchForm.name" placeholder="请输入名称" allow-clear />
           </a-form-item>
         </a-col>
       </template>
@@ -22,7 +13,7 @@
       <!-- Table 自定义渲染 -->
       <template #status="{ record }">
         <a-tag :color="record.status === 1 ? 'green' : 'red'">
-          {{ record.status === 1 ? "正常" : "停用" }}
+          {{ record.status === 1 ? '正常' : '停用' }}
         </a-tag>
       </template>
     </sa-table>
@@ -33,71 +24,72 @@
 </template>
 
 <script setup>
-import { onMounted, ref, reactive } from "vue";
-import { Message } from "@arco-design/web-vue";
-import EditForm from "./edit.vue";
-import api from "../../api/center/gameMain";
+import { onMounted, ref, reactive } from 'vue'
+import { Message } from '@arco-design/web-vue'
+import EditForm from './edit.vue'
+import api from '../../api/center/gameMain'
 
 // 引用定义
-const crudRef = ref();
-const editRef = ref();
-const viewRef = ref();
+const crudRef = ref()
+const editRef = ref()
+const viewRef = ref()
 
 // 搜索表单
 const searchForm = ref({
-  name: "",
-});
+  name: '',
+})
 
 // SaTable 基础配置
 const options = reactive({
   api: api.getPageList,
+  showSort: false,
   rowSelection: { showCheckedAll: true },
   add: {
     show: true,
-    auth: ["/v1/center/GameMain/save"],
+    auth: ['/v1/center/GameMain/save'],
     func: async () => {
-      editRef.value?.open();
+      editRef.value?.open()
     },
   },
   edit: {
     show: true,
-    auth: ["/v1/center/GameMain/update"],
+    auth: ['/v1/center/GameMain/update'],
     func: async (record) => {
-      editRef.value?.open("edit");
-      editRef.value?.setFormData(record);
+      editRef.value?.open('edit')
+      editRef.value?.setFormData(record)
     },
   },
   delete: {
     show: true,
-    auth: ["/v1/center/GameMain/destroy"],
+    auth: ['/v1/center/GameMain/destroy'],
     func: async (params) => {
-      const resp = await api.destroy(params);
+      const resp = await api.destroy(params)
       if (resp.code === 200) {
-        Message.success(`删除成功!`);
-        crudRef.value?.refresh();
+        Message.success(`删除成功!`)
+        crudRef.value?.refresh()
       }
     },
   },
-});
+})
 
 // SaTable 列配置
 const columns = reactive([
-  { title: "名称", dataIndex: "name", width: 180 },
-  { title: "研发主体", dataIndex: "company", width: 180 },
-  { title: "状态", dataIndex: "status", width: 180 },
-]);
+  { title: '名称', dataIndex: 'name', width: 180 },
+  { title: '研发主体', dataIndex: 'company', width: 180 },
+  { title: '状态', dataIndex: 'status', width: 180 },
+])
 
 // 页面数据初始化
-const initPage = async () => {};
+const initPage = async () => {}
 
 // SaTable 数据请求
 const refresh = async () => {
-  crudRef.value?.refresh();
-};
+  crudRef.value?.refresh()
+}
 
 // 页面加载完成执行
 onMounted(async () => {
-  initPage();
-  refresh();
-});
+  initPage()
+  refresh()
+})
 </script>

+ 1 - 1
src/views/v1/center/gamePayChannel/index.vue

@@ -39,7 +39,7 @@ const searchForm = ref({
 // SaTable 基础配置
 const options = reactive({
   api: api.getPageList,
-  rowSelection: { showCheckedAll: true },
+  showSort: false,
   add: {
     show: true,
     auth: ['/v1/center/GamePayChannel/save'],

+ 7 - 6
src/views/v1/center/iosPayWay/index.vue

@@ -40,6 +40,7 @@ const searchForm = ref({
 // SaTable 基础配置
 const options = reactive({
   api: api.getPageList,
+  showSort: false,
   rowSelection: { showCheckedAll: true },
   add: {
     show: true,
@@ -72,12 +73,12 @@ const options = reactive({
 // SaTable 列配置
 const columns = reactive([
   { title: '游戏', dataIndex: 'game_id', width: 180 },
-  { title: '开启时间', dataIndex: 'pay_stime', width: 180 },
-  { title: '结束时间', dataIndex: 'pay_etime', width: 180 },
-  { title: '充值金额', dataIndex: 'pay_money', width: 180 },
-  { title: '充值次数', dataIndex: 'pay_num', width: 180 },
-  { title: '注册天数', dataIndex: 'reg_day', width: 180 },
-  { title: '屏蔽地区', dataIndex: 'city', width: 180 },
+  { title: '开启时间', dataIndex: 'pay_stime', width: 120 },
+  { title: '结束时间', dataIndex: 'pay_etime', width: 120 },
+  { title: '充值金额', dataIndex: 'pay_money', width: 120 },
+  { title: '充值次数', dataIndex: 'pay_num', width: 120 },
+  { title: '注册天数', dataIndex: 'reg_day', width: 120 },
+  { title: '屏蔽地区', dataIndex: 'city', width: 120 },
 
   {
     title: '充值渠道开关',

+ 1 - 0
src/views/v1/center/qxSwitch/index.vue

@@ -70,6 +70,7 @@ const changeStatus = async (status, record, field) => {
 // SaTable 基础配置
 const options = reactive({
   api: api.getPageList,
+  showSort: false,
   rowSelection: { showCheckedAll: true },
   add: {
     show: true,

+ 21 - 6
src/views/v1/gameLog/roleData/index.vue

@@ -20,8 +20,14 @@
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="媒体ID" field="media_id">
-            <a-input v-model="searchForm.media_id" placeholder="请输入媒体ID" allow-clear />
+          <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="8" :xs="24">
@@ -30,8 +36,8 @@
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="负责人ID" field="auth_id">
-            <a-input v-model="searchForm.auth_id" placeholder="请输入负责人ID" allow-clear />
+          <a-form-item label="负责人" field="auth_id">
+            <auth-select v-model="searchForm.auth_id" />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
@@ -68,15 +74,15 @@
 
 <script setup>
 import { onMounted, ref, reactive } from 'vue'
-import { Message } from '@arco-design/web-vue'
 import api from '../../api/gameLog/roleData'
 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'
 
 // 引用定义
 const crudRef = ref()
-const gameList = ref([])
+const mediaOptions = ref([])
 
 // 搜索表单
 const searchForm = ref({
@@ -109,8 +115,17 @@ const columns = reactive([
   { title: '负责人', dataIndex: 'auth_name', width: 120 },
 ])
 
+// 获取媒体类型
+const getMediaOptions = async () => {
+  const resp = await commonApi.getMediaOptionsApi()
+  if (resp.code === 200) {
+    mediaOptions.value = resp.data
+  }
+}
+
 // 页面数据初始化
 const initPage = async () => {
+  await getMediaOptions()
   searchForm.value.reg_time = dayjs().format('YYYY-MM-DD')
 }
 

+ 21 - 7
src/views/v1/gameLog/sdkLoginLog/index.vue

@@ -25,8 +25,14 @@
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="媒体ID" field="media_id">
-            <a-input v-model="searchForm.media_id" placeholder="请输入媒体ID" allow-clear />
+          <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="8" :xs="24">
@@ -40,8 +46,8 @@
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="负责人ID" field="auth_id">
-            <a-input v-model="searchForm.auth_id" placeholder="请输入负责人ID" allow-clear />
+          <a-form-item label="负责人" field="auth_id">
+            <auth-select v-model="searchForm.auth_id" />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
@@ -82,18 +88,17 @@
 
 <script setup>
 import { onMounted, ref, reactive } from 'vue'
-import { Message } from '@arco-design/web-vue'
 import EditForm from './edit.vue'
 import api from '../../api/gameLog/sdkLoginLog'
 import commonApi from '../../api/common'
 import dayjs from 'dayjs'
 import GameSelect from '@/components/game-select/index.vue'
-const gameList = ref([])
+import AuthSelect from '@/components/auth-select/index.vue'
 
 // 引用定义
 const crudRef = ref()
 const editRef = ref()
-const viewRef = ref()
+const mediaOptions = ref()
 
 // 搜索表单
 const searchForm = ref({
@@ -136,8 +141,17 @@ const columns = reactive([
   { title: '负责人', dataIndex: 'auth_name', width: 100 },
 ])
 
+// 获取媒体类型
+const getMediaOptions = async () => {
+  const resp = await commonApi.getMediaOptionsApi()
+  if (resp.code === 200) {
+    mediaOptions.value = resp.data
+  }
+}
+
 // 页面数据初始化
 const initPage = async () => {
+  await getMediaOptions()
   searchForm.value.login_time = dayjs().format('YYYY-MM-DD')
 }
 

+ 20 - 4
src/views/v1/gameLog/sdkOrderRank/index.vue

@@ -20,13 +20,19 @@
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="媒体ID" field="media_id">
-            <a-select v-model="searchForm.media_id" :options="[]" placeholder="请选择媒体ID" allow-clear />
+          <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="8" :xs="24">
           <a-form-item label="负责人" field="auth_id">
-            <a-select v-model="searchForm.auth_id" :options="[]" placeholder="请选择负责人" allow-clear />
+            <auth-select v-model="searchForm.auth_id" />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
@@ -101,10 +107,11 @@ import api from '../../api/gameLog/sdkOrderRank'
 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'
 
 // 引用定义
 const crudRef = ref()
-const gameList = ref([])
+const mediaOptions = ref([])
 
 // 搜索表单
 const searchForm = ref({
@@ -157,8 +164,17 @@ const columns = reactive([
   { title: '负责人', dataIndex: 'auth_name', width: 180 },
 ])
 
+// 获取媒体类型
+const getMediaOptions = async () => {
+  const resp = await commonApi.getMediaOptionsApi()
+  if (resp.code === 200) {
+    mediaOptions.value = resp.data
+  }
+}
+
 // 页面数据初始化
 const initPage = async () => {
+  await getMediaOptions()
   searchForm.value.pay_date = [dayjs().format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')]
 }
 

+ 20 - 5
src/views/v1/gameLog/sdkOrderSuccess/index.vue

@@ -29,13 +29,19 @@
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="媒体ID" field="media_id">
-            <a-select v-model="searchForm.media_id" :options="[]" placeholder="请选择媒体ID" allow-clear />
+          <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="8" :xs="24">
           <a-form-item label="负责人" field="auth_id">
-            <a-select v-model="searchForm.auth_id" :options="[]" placeholder="请选择负责人" allow-clear />
+            <auth-select v-model="searchForm.auth_id" />
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
@@ -71,17 +77,17 @@
 
 <script setup>
 import { onMounted, ref, reactive } from 'vue'
-import { Message } from '@arco-design/web-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'
 
 // 引用定义
 const crudRef = ref()
 const editRef = ref()
-const gameList = ref([])
+const mediaOptions = ref([])
 
 // 搜索表单
 const searchForm = ref({
@@ -139,8 +145,17 @@ const columns = reactive([
   { title: '负责人', dataIndex: 'auth_name', width: 180 },
 ])
 
+// 获取媒体类型
+const getMediaOptions = async () => {
+  const resp = await commonApi.getMediaOptionsApi()
+  if (resp.code === 200) {
+    mediaOptions.value = resp.data
+  }
+}
+
 // 页面数据初始化
 const initPage = async () => {
+  await getMediaOptions()
   searchForm.value.pay_date = [dayjs().format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')]
 }
 

+ 20 - 5
src/views/v1/gameLog/sdkRegLog/index.vue

@@ -25,8 +25,14 @@
           </a-form-item>
         </a-col>
         <a-col :sm="8" :xs="24">
-          <a-form-item label="媒体ID" field="media_id">
-            <a-input v-model="searchForm.media_id" placeholder="请输入媒体ID" allow-clear />
+          <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="8" :xs="24">
@@ -80,8 +86,7 @@ import GameSelect from '@/components/game-select/index.vue'
 // 引用定义
 const crudRef = ref()
 const editRef = ref()
-const viewRef = ref()
-const gameList = ref([])
+const mediaOptions = ref()
 
 // 搜索表单
 const searchForm = ref({
@@ -122,8 +127,18 @@ const columns = reactive([
   { title: '负责人', dataIndex: 'auth_name', width: 180 },
 ])
 
+// 获取媒体类型
+const getMediaOptions = async () => {
+  const resp = await commonApi.getMediaOptionsApi()
+  if (resp.code === 200) {
+    mediaOptions.value = resp.data
+  }
+}
+
 // 页面数据初始化
-const initPage = async () => {}
+const initPage = async () => {
+  await getMediaOptions()
+}
 
 // SaTable 数据请求
 const refresh = async () => {