zhouwx
2024-11-12 1e2bd6710762860f1735baef0f61be1d8edb2fe2
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