From fc996151eac7275ea4ce5eeff5a142fb3d793396 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Fri, 08 Sep 2023 13:34:06 +0800
Subject: [PATCH] 修复弹窗bug
---
src/views/Admin/list.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/Admin/list.vue b/src/views/Admin/list.vue
index 47941e9..d296879 100644
--- a/src/views/Admin/list.vue
+++ b/src/views/Admin/list.vue
@@ -29,7 +29,7 @@
style="width: 100%"
/>
</a-col>
- <a-col :span="4">
+ <a-col :span="6">
<a-button type="primary" @click="searchData">查询</a-button>
<a-button style="margin-left: 12px" @click="resetSearch">重置</a-button>
</a-col>
@@ -76,8 +76,8 @@
<!-- </div>-->
<!-- </template>-->
<template #operation="text, record, index">
- <a-button type="primary" v-if="record.responseStatus == 1" style="margin-right: 12px" @click="confirmResponce(record.id)">确认已收到</a-button>
- <a-button type="primary" @click="openMod('repost',record)">转发</a-button>
+ <a-button type="primary" v-if="record.responseStatus == 1 && userInfo.unittype !== 4" style="margin-right: 12px" @click="confirmResponce(record.id)">确认已收到</a-button>
+ <a-button type="primary" @click="openMod('repost',record)" v-if="userInfo.unittype !== 4">转发</a-button>
<a-button type="link" @click="openDetails(record,record.warnInfoId)">查看详情</a-button>
</template>
</a-table>
@@ -176,7 +176,7 @@
{
title: '操作',
dataIndex: 'operation',
- width: '15%',
+ width: '18%',
scopedSlots: {
customRender: 'operation'
},
@@ -200,9 +200,8 @@
confirmLoading: false,
riskOptions: [
{name: '地震',value: 1},
- {name: '洪涝',value: 2},
{name: '气象',value: 3},
- {name: '泥石流',value: 4},
+ {name: '地质灾害',value: 4},
{name: '水旱',value: 5},
{name: '森林草原火灾',value: 6}
],
@@ -345,6 +344,7 @@
const t = this
t.read(data.id)
t.$refs.msgDetail.getDetails(id)
+ t.$refs.msgDetail.getMeasures(data.id)
t.$refs.msgDetail.visible = true
},
--
Gitblit v1.9.2