|
|
@@ -7,23 +7,29 @@
|
|
|
*
|
|
|
-->
|
|
|
<script setup lang="ts">
|
|
|
-import type { TableFieldInfo, TablePaginationSetting, TableToolsConfig } from '@/types/table'
|
|
|
+import {
|
|
|
+ FilterType,
|
|
|
+ type QueryInfo,
|
|
|
+ type TableFieldInfo,
|
|
|
+ type TablePaginationSetting,
|
|
|
+ type TableToolsConfig
|
|
|
+} from '@/types/table.ts'
|
|
|
import type { FormRules } from 'element-plus'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
-import type { FormField } from '@/types/form'
|
|
|
-import { FormFieldType } from '@/types/form'
|
|
|
-import type { DialogConfig } from '@/types/dialog'
|
|
|
+import type { FormField } from '@/types/form.ts'
|
|
|
+import { FormFieldType } from '@/types/form.ts'
|
|
|
+import type { DialogConfig } from '@/types/dialog.ts'
|
|
|
|
|
|
-import { FieldSpecialEffectType, TagType, TextType } from '@/types/tableText'
|
|
|
+import { FieldSpecialEffectType, TagType, TextType } from '@/types/tableText.ts'
|
|
|
import { reactive, ref } from 'vue'
|
|
|
-import { useRequest } from '@/hooks/useRequest'
|
|
|
-import { useCommonStore } from '@/stores/useCommon'
|
|
|
-import { useAnalysis } from '@/hooks/useAnalysis'
|
|
|
-import { usePage } from '@/hooks/usePage'
|
|
|
+import { useRequest } from '@/hooks/useRequest.ts'
|
|
|
+import { useCommonStore } from '@/stores/useCommon.ts'
|
|
|
+import { useAnalysis } from '@/hooks/useAnalysis.ts'
|
|
|
+import { usePage } from '@/hooks/usePage.ts'
|
|
|
|
|
|
import Dialog from '@/components/common/CustomDialog.vue'
|
|
|
import Table from '@/components/table/CustomTable.vue'
|
|
|
-import axiosInstance from '@/utils/axios/axiosInstance'
|
|
|
+import axiosInstance from '@/utils/axios/axiosInstance.ts'
|
|
|
|
|
|
const { watchPageChange } = usePage()
|
|
|
const { updateReqConfig } = useAnalysis()
|
|
|
@@ -60,6 +66,16 @@ const requestConfig = reactive({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+// 查询字段设置
|
|
|
+const queryInfo: Array<QueryInfo> = [
|
|
|
+ {
|
|
|
+ name: 'search',
|
|
|
+ label: '昵称/OpenID',
|
|
|
+ type: FilterType.INPUT,
|
|
|
+ placeholder: '输入openID或昵称进行搜索'
|
|
|
+ }
|
|
|
+]
|
|
|
+
|
|
|
// 工具栏配置
|
|
|
const tableToolsConfig: TableToolsConfig = {
|
|
|
add: false,
|
|
|
@@ -248,9 +264,10 @@ watchPageChange(() => [selectInfo.gid, selectInfo.pf], backupSelect, updateSelec
|
|
|
ref="playerTableRef"
|
|
|
:tools="tableToolsConfig"
|
|
|
:table-fields-info="fieldsInfo"
|
|
|
- :open-filter-query="false"
|
|
|
+ :open-filter-query="true"
|
|
|
:request-config="requestConfig"
|
|
|
:pagination-config="paginationConfig"
|
|
|
+ :query-info="queryInfo"
|
|
|
>
|
|
|
<template #tableOperation>
|
|
|
<el-table-column label="操作" align="center">
|