|
@@ -108,7 +108,7 @@
|
|
|
|
|
|
|
|
<a-table row-key="id" :loading="loading" :pagination="pagination" :summary="true" summary-text="汇总"
|
|
<a-table row-key="id" :loading="loading" :pagination="pagination" :summary="true" summary-text="汇总"
|
|
|
:columns="(cloneColumns as TableColumnData[])" :data="renderData" :bordered="{ headerCell: true }"
|
|
:columns="(cloneColumns as TableColumnData[])" :data="renderData" :bordered="{ headerCell: true }"
|
|
|
- :row-class="getRowClass" :size="size" @page-change="onPageChange">
|
|
|
|
|
|
|
+ :row-class="getRowClass" :size="size" @page-change="onPageChange" @page-size-change="onPageSizeChange">
|
|
|
<template #index="{ record }">
|
|
<template #index="{ record }">
|
|
|
{{ record.id }}
|
|
{{ record.id }}
|
|
|
</template>
|
|
</template>
|
|
@@ -133,6 +133,10 @@
|
|
|
<a-tag v-if="record.parse_type" size="small" bordered color="blue">
|
|
<a-tag v-if="record.parse_type" size="small" bordered color="blue">
|
|
|
{{ record.parse_type }}
|
|
{{ record.parse_type }}
|
|
|
</a-tag>
|
|
</a-tag>
|
|
|
|
|
+
|
|
|
|
|
+ <a-tag v-if="record.riskStrategy" size="small" bordered color="orange">
|
|
|
|
|
+ {{ record.riskStrategy }}-{{ record.launchScene }}
|
|
|
|
|
+ </a-tag>
|
|
|
</template>
|
|
</template>
|
|
|
<template #status="{ record }">
|
|
<template #status="{ record }">
|
|
|
<a-tag v-if="record.status" bordered color="green" @click="changeStatus(record.id, false)">
|
|
<a-tag v-if="record.status" bordered color="green" @click="changeStatus(record.id, false)">
|
|
@@ -267,24 +271,12 @@
|
|
|
</a-card>
|
|
</a-card>
|
|
|
|
|
|
|
|
<!-- Cookie 更新 Modal -->
|
|
<!-- Cookie 更新 Modal -->
|
|
|
- <a-modal
|
|
|
|
|
- v-model:visible="cookieModalVisible"
|
|
|
|
|
- title="更新Cookie"
|
|
|
|
|
- @ok="handleCookieUpdate"
|
|
|
|
|
- @cancel="handleCookieCancel"
|
|
|
|
|
- :confirm-loading="cookieLoading"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <a-modal v-model:visible="cookieModalVisible" title="更新Cookie" @ok="handleCookieUpdate"
|
|
|
|
|
+ @cancel="handleCookieCancel" :confirm-loading="cookieLoading">
|
|
|
<a-form ref="cookieFormRef" :model="cookieFormData">
|
|
<a-form ref="cookieFormRef" :model="cookieFormData">
|
|
|
- <a-form-item
|
|
|
|
|
- field="cookie"
|
|
|
|
|
- label="Cookie"
|
|
|
|
|
- :rules="[{ required: true, message: '请输入Cookie' }]"
|
|
|
|
|
- >
|
|
|
|
|
- <a-textarea
|
|
|
|
|
- v-model="cookieFormData.cookie"
|
|
|
|
|
- placeholder="请粘贴Cookie内容"
|
|
|
|
|
- :auto-size="{ minRows: 10, maxRows: 20 }"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <a-form-item field="cookie" label="Cookie" :rules="[{ required: true, message: '请输入Cookie' }]">
|
|
|
|
|
+ <a-textarea v-model="cookieFormData.cookie" placeholder="请粘贴Cookie内容"
|
|
|
|
|
+ :auto-size="{ minRows: 10, maxRows: 20 }" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-form>
|
|
</a-form>
|
|
|
</a-modal>
|
|
</a-modal>
|
|
@@ -346,7 +338,11 @@ const currentRecord = ref<PddPoolRecord | null>(null);
|
|
|
|
|
|
|
|
const basePagination: Pagination = {
|
|
const basePagination: Pagination = {
|
|
|
current: 1,
|
|
current: 1,
|
|
|
- pageSize: 500,
|
|
|
|
|
|
|
+ pageSize: 50,
|
|
|
|
|
+ showPageSize: true,
|
|
|
|
|
+ showTotal: true,
|
|
|
|
|
+ pageSizeOptions: [10, 20, 50, 100, 200, 500]
|
|
|
|
|
+
|
|
|
};
|
|
};
|
|
|
const pagination = reactive({
|
|
const pagination = reactive({
|
|
|
...basePagination,
|
|
...basePagination,
|
|
@@ -581,6 +577,17 @@ const onPageChange = (current: number) => {
|
|
|
fetchData({ ...basePagination, current });
|
|
fetchData({ ...basePagination, current });
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+const onPageSizeChange = (current: number) => {
|
|
|
|
|
+ basePagination.pageSize = current;
|
|
|
|
|
+ pagination.pageSize = current;
|
|
|
|
|
+ fetchData({
|
|
|
|
|
+ ...basePagination,
|
|
|
|
|
+ ...formModel.value,
|
|
|
|
|
+ current: 1,
|
|
|
|
|
+ });
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
fetchData();
|
|
fetchData();
|
|
|
const reset = () => {
|
|
const reset = () => {
|
|
|
formModel.value = generateFormModel();
|
|
formModel.value = generateFormModel();
|