From 6c153ca68080df99f9ec8ad1666413f65b6a5881 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Tue, 06 Feb 2024 16:50:29 +0800
Subject: [PATCH] 添加状态
---
src/views/purchase/person.vue | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/views/purchase/person.vue b/src/views/purchase/person.vue
index 7bf62bb..6915551 100644
--- a/src/views/purchase/person.vue
+++ b/src/views/purchase/person.vue
@@ -121,13 +121,12 @@
<div class="basic_search" >
<el-button style="margin-left: 10px;" type="primary" @click="reset()" size="small">重置</el-button>
<el-button style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="searchProductSearch('查询','')" size="small">查询</el-button>
- <el-button style="margin-left: 10px;" type="primary" icon="el-icon-download" @click="exportToExcel" size="small">导出</el-button>
+ <el-button style="margin-left: 10px;" type="primary" icon="el-icon-download" @click="exportToExcel" v-long-re-click size="small">导出</el-button>
</div>
</div>
</div>
</div>
- <p style="color:red">提示:2023年1月13日(08:00~18:00)系统服务器升级期间,销售数据可能产生个别偏差,1月13日销售数据请以线下手工台账为准。</p>
<div class="table_content">
<el-table
v-loading="listLoading"
@@ -193,6 +192,17 @@
/>
<br>
</div>
+ <el-dialog
+ title="提示"
+ center
+ :visible.sync="reClickTip"
+ width="50%">
+ <span style="color: red">由于导出数据量大,请各监管单位导出数据时不要连续点击,导出按钮已限制30s内只允许点击一次。</span>
+ <span slot="footer" class="dialog-footer">
+ <el-button @click="reClickTip = false">取 消</el-button>
+ <el-button type="primary" @click="reClickTip = false">确 定</el-button>
+ </span>
+ </el-dialog>
<personPurchaseDetail ref="person"></personPurchaseDetail>
<upload-dialog ref="upload" @refresh="refresh"></upload-dialog>
</div>
@@ -207,11 +217,12 @@
import Cookies from "js-cookie";
export default {
- name: "addSelfExam",
+ name: "person",
data(){
return{
tableKey:'',
validTime:['',''],
+ reClickTip: false,
listQuery: {
pageSize:10,
pageIndex:1,
@@ -283,6 +294,7 @@
uploadDialog
},
created() {
+ console.log('Component created:', this.$options.name);
this.initValidTime()
this.getPersonProductList()
this.getProvince()
@@ -329,8 +341,10 @@
},
async exportToExcel(){
+ this.reClickTip = true
let res = await exportPerson(this.listQuery)
if(res.data.code === '200'){
+ this.reClickTip = false
if(res.data.result === null ||res.data.result === [] || res.data.result.length === 0){
this.$message({
type:'warning',
--
Gitblit v1.9.2