From 1f6893d24ba87313d4114c68813073ead53b2e12 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期五, 30 八月 2024 09:26:22 +0800 Subject: [PATCH] 群发新通讯录懒加载 --- src/views/Admin/release.vue | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/Admin/release.vue b/src/views/Admin/release.vue index 330525d..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' }, @@ -179,9 +178,8 @@ }, riskOptions: [ {name: '地震',value: 1}, - {name: '洪涝',value: 2}, {name: '气象',value: 3}, - {name: '泥石流',value: 4}, + {name: '地质灾害',value: 4}, {name: '水旱',value: 5}, {name: '森林草原火灾',value: 6} ], @@ -203,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){ @@ -212,7 +210,7 @@ }else{ this.$message.error(res.data.msg) } - }, + },1000), openList(id){ const t = this -- Gitblit v1.9.2