| | |
| | | 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> |
| | |
| | | import axios from "axios"; |
| | | import Cookies from "js-cookie"; |
| | | import {getUserInfo} from "@/util/storage"; |
| | | import {debounce} from "@/util/debounce"; |
| | | const columns = [{ |
| | | title: '序号', |
| | | dataIndex: 'index', |
| | |
| | | { |
| | | title: '灾种', |
| | | dataIndex: 'disasterType', |
| | | width: '8%', |
| | | scopedSlots: { |
| | | customRender: 'disasterType' |
| | | } |
| | |
| | | { |
| | | title: '信息标题', |
| | | dataIndex: 'title', |
| | | width: '16%', |
| | | }, |
| | | { |
| | | title: '附件', |
| | |
| | | { |
| | | title: '叫应情况', |
| | | dataIndex: 'responsesRate', |
| | | width: '10%', |
| | | scopedSlots: { |
| | | customRender: 'responsesRate' |
| | | }, //设置定制化表格数据 |
| | |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'operation', |
| | | width: '14%', |
| | | scopedSlots: { |
| | | customRender: 'operation' |
| | | }, |
| | |
| | | t.getData() |
| | | }, |
| | | methods: { |
| | | async getData(){ |
| | | getData: debounce(async function(){ |
| | | const t = this |
| | | const res = await getPublishRecord(this.search) |
| | | if(res.data.code == 100){ |
| | |
| | | }else{ |
| | | this.$message.error(res.data.msg) |
| | | } |
| | | }, |
| | | },1000), |
| | | |
| | | openList(id){ |
| | | const t = this |