|
@@ -85,7 +85,7 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
|
|
- <a-table :data="data" stripe hoverable column-resizable class="table" :loading="loading" :scroll="{
|
|
|
|
|
|
|
+ <a-table :data="data" stripe hoverable class="table" :loading="loading" :scroll="{
|
|
|
x: 1600
|
|
x: 1600
|
|
|
}" :pagination="{
|
|
}" :pagination="{
|
|
|
showPageSize: true,
|
|
showPageSize: true,
|
|
@@ -95,7 +95,6 @@
|
|
|
current: pagination.current,
|
|
current: pagination.current,
|
|
|
total: pagination.total
|
|
total: pagination.total
|
|
|
}" @page-change="handlePageChange" @page-size-change="handlePageSizeChange">
|
|
}" @page-change="handlePageChange" @page-size-change="handlePageSizeChange">
|
|
|
-
|
|
|
|
|
<template #name-filter="{ filterValue, setFilterValue, handleFilterConfirm, handleFilterReset }">
|
|
<template #name-filter="{ filterValue, setFilterValue, handleFilterConfirm, handleFilterReset }">
|
|
|
<div class="custom-filter">
|
|
<div class="custom-filter">
|
|
|
<a-space direction="vertical">
|
|
<a-space direction="vertical">
|
|
@@ -203,12 +202,10 @@
|
|
|
{{ autoTimeLabel(record.auto_time) }}
|
|
{{ autoTimeLabel(record.auto_time) }}
|
|
|
</template>
|
|
</template>
|
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
- <a-table-column title="累计次数" data-index="total_num" :width="110" ellipsis tooltip :sortable="{
|
|
|
|
|
- sortDirections: ['ascend', 'descend']
|
|
|
|
|
- }"></a-table-column>
|
|
|
|
|
- <a-table-column title="剩余次数" :width="110" ellipsis tooltip>
|
|
|
|
|
|
|
+ <a-table-column title="累计次数" :width="110" ellipsis tooltip>
|
|
|
<template #cell="{ record }">
|
|
<template #cell="{ record }">
|
|
|
- {{ record.term_num - record.total_num > 0 ? (record.term_num - record.total_num) : '已完成' }}
|
|
|
|
|
|
|
+ {{ record.term_num - record.total_num > 0 ? `${record.total_num} / ${record.term_num}` :
|
|
|
|
|
+ '已完成' }}
|
|
|
</template>
|
|
</template>
|
|
|
</a-table-column>
|
|
</a-table-column>
|
|
|
<a-table-column title="添加时间" :width="170" ellipsis tooltip :sortable="{
|
|
<a-table-column title="添加时间" :width="170" ellipsis tooltip :sortable="{
|
|
@@ -317,7 +314,7 @@ const pagination = reactive({
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const handleSearch = (value) => {
|
|
const handleSearch = (value) => {
|
|
|
- const emailSuffix = ["qq.com", "ctbu.edu.cn"]
|
|
|
|
|
|
|
+ const emailSuffix = ["qq.com", "ctbu.edu.cn", "163.com"]
|
|
|
const input = (value || "").trim()
|
|
const input = (value || "").trim()
|
|
|
|
|
|
|
|
if (!input) {
|
|
if (!input) {
|
|
@@ -484,7 +481,7 @@ const handleBeforeOk = async (done) => {
|
|
|
|
|
|
|
|
Message.success('保存成功!')
|
|
Message.success('保存成功!')
|
|
|
done()
|
|
done()
|
|
|
- getAccounts()
|
|
|
|
|
|
|
+ getAccountsAsync()
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
Notification.error({
|
|
Notification.error({
|
|
|
title: '保存乐跑账号失败!',
|
|
title: '保存乐跑账号失败!',
|