From 1e2bd6710762860f1735baef0f61be1d8edb2fe2 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期二, 12 十一月 2024 11:16:45 +0800
Subject: [PATCH] 责任人

---
 src/views/Admin/release.vue |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/views/Admin/release.vue b/src/views/Admin/release.vue
index 5ee9721..5443cc8 100644
--- a/src/views/Admin/release.vue
+++ b/src/views/Admin/release.vue
@@ -26,7 +26,7 @@
                 style="width: 100%"
             />
           </a-col>
-          <a-col :span="4">
+          <a-col :span="6">
             <a-button type="primary" @click="getData">查询</a-button>
             <a-button style="margin-left: 12px" @click="resetSearch">重置</a-button>
           </a-col>
@@ -83,6 +83,7 @@
 import axios from "axios";
 import Cookies from "js-cookie";
 import {getUserInfo} from "@/util/storage";
+import {debounce} from "@/util/debounce";
   const columns = [{
 			title: '序号',
 			dataIndex: 'index',
@@ -107,7 +108,6 @@
     {
       title: '灾种',
       dataIndex: 'disasterType',
-      width: '8%',
       scopedSlots: {
         customRender: 'disasterType'
       }
@@ -123,7 +123,6 @@
 		{
 			title: '信息标题',
 			dataIndex: 'title',
-			width: '16%',
 		},
 		{
 			title: '附件',
@@ -136,7 +135,6 @@
 		{
 			title: '叫应情况',
 			dataIndex: 'responsesRate',
-			width: '10%',
 			scopedSlots: {
 				customRender: 'responsesRate'
 			}, //设置定制化表格数据
@@ -144,6 +142,7 @@
 		{
 			title: '操作',
 			dataIndex: 'operation',
+      width: '14%',
 			scopedSlots: {
 				customRender: 'operation'
 			},
@@ -202,7 +201,7 @@
       t.getData()
     },
 		methods: {
-      async getData(){
+      getData: debounce(async function(){
         const t = this
         const res = await getPublishRecord(this.search)
         if(res.data.code == 100){
@@ -211,7 +210,7 @@
         }else{
           this.$message.error(res.data.msg)
         }
-      },
+      },1000),
 
       openList(id){
         const t = this

--
Gitblit v1.9.2