|
|
@ -76,7 +76,7 @@ |
|
|
|
<el-table-column v-if="checkTab === 'pending'" fixed="right" prop="operation" label="操作" width="400px"> |
|
|
|
<template #default="scope"> |
|
|
|
<div class="operation"> |
|
|
|
<el-popconfirm title="确定要通过此条记录吗?" @confirm="handleApprove(scope.row)"> |
|
|
|
<el-popconfirm title="确定要通过此条记录吗?" @confirm="throttledHandleApprove(scope.row)"> |
|
|
|
<template #reference> |
|
|
|
<el-button :disabled="scope.row.status === 1 || scope.row.status === 2" type="primary" |
|
|
|
text> |
|
|
@ -120,6 +120,7 @@ import API from '@/util/http' |
|
|
|
import moment from 'moment' |
|
|
|
import {useAdminStore} from "@/store/index.js"; |
|
|
|
import {storeToRefs} from "pinia"; |
|
|
|
import _ from 'lodash' |
|
|
|
const defaultTime = [ |
|
|
|
new Date(2000, 1, 1, 0, 0, 0), |
|
|
|
new Date(2000, 2, 1,23 , 59, 59), |
|
|
@ -414,6 +415,11 @@ const handleCurrentChange = function (val) { |
|
|
|
pagination.value.pageNum = val |
|
|
|
get() |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const throttledHandleApprove = _.throttle(handleApprove, 5000, { |
|
|
|
trailing: false |
|
|
|
}) |
|
|
|
onMounted(async () => { |
|
|
|
getmarkets() |
|
|
|
get() |
|
|
|