From 1c684aad3c5b368cb1dffa6a7ae8eb701ac243a9 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Thu, 27 Jul 2023 16:48:55 +0800
Subject: [PATCH] 新增响应措施和修改
---
src/views/Admin/list.vue | 27 +++++++++++++++++++++------
1 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/src/views/Admin/list.vue b/src/views/Admin/list.vue
index 008c24f..47941e9 100644
--- a/src/views/Admin/list.vue
+++ b/src/views/Admin/list.vue
@@ -30,7 +30,7 @@
/>
</a-col>
<a-col :span="4">
- <a-button type="primary" @click="getData">查询</a-button>
+ <a-button type="primary" @click="searchData">查询</a-button>
<a-button style="margin-left: 12px" @click="resetSearch">重置</a-button>
</a-col>
</a-row>
@@ -262,14 +262,20 @@
let blob = new Blob([res.data],{type: res.data.type})
link.style.display = "none";
link.href = URL.createObjectURL(blob); // 创建URL
- link.setAttribute("download", item.attachmentName);
- document.body.appendChild(link);
- link.click();
- document.body.removeChild(link);
+ window.open(link.href)
+ // link.setAttribute("download", item.attachmentName);
+ // document.body.appendChild(link);
+ // link.click();
+ // document.body.removeChild(link);
} else {
this.$message.error('获取文件失败')
}
})
+ },
+
+ searchData(){
+ this.search.pageIndex = 1
+ this.getData()
},
resetSearch(){
@@ -299,6 +305,15 @@
responseMsg(id).then(res=>{
if(res.data.code == 100){
t.$message.success('信息叫应成功');
+ t.search = {
+ pageIndex: 1,
+ pageSize: 10,
+ searchParams:{
+ responseStatus: null,
+ startTime: '',
+ endTime: ''
+ }
+ },
t.getData()
}else{
t.$message.warning(res.data.msg);
@@ -316,7 +331,7 @@
getReviewDetailByWorker(data.warnInfoId).then(res=>{
if(res.data.code == 100){
if(res.data.data){
- t.$refs.msgEdit.openMod(type,res.data.data)
+ t.$refs.msgEdit.openMod(type,res.data.data,data.id)
}else{
t.$message.error('查询信息详情失败')
}
--
Gitblit v1.9.2