|
@@ -4,7 +4,7 @@
|
|
|
<div class="center_css">
|
|
|
<div class="top_css">
|
|
|
<el-row>
|
|
|
- <el-col :span="16" style="height: 45px">
|
|
|
+ <el-col :span="14" style="height: 45px">
|
|
|
<span type="primary" class="batch_text">
|
|
|
<i class="el-icon-tickets"></i>数据列表</span>
|
|
|
<el-button type="danger" plain icon="el-icon-delete" size="small" @click="delBtn()">删除</el-button>
|
|
@@ -14,7 +14,7 @@
|
|
|
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
</el-date-picker>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" style="height: 45px">
|
|
|
+ <el-col :span="10" style="height: 45px">
|
|
|
<div class="screen">
|
|
|
<el-input class="find" placeholder="可按系统模块,操作人员进行筛选" @keyup.enter.native="find" v-model="searchkeyWord"
|
|
|
clearable @change="find"></el-input>
|
|
@@ -185,9 +185,9 @@
|
|
|
let a = document.createElement("a");
|
|
|
//由于后台返回文件名称是通过response返回的
|
|
|
//因此需要从response headers中content-disposition响应头中获取文件名称fileName,如上图所示
|
|
|
- let headers = response.headers;
|
|
|
- let fileName = headers["content-disposition"];
|
|
|
- fileName = fileName.split('=')[1]
|
|
|
+ // let headers = response.headers;
|
|
|
+ // let fileName = headers["content-disposition"];
|
|
|
+ // fileName = fileName.split('=')[1]
|
|
|
//download是a标签的一个属性,可以自定义文件名称
|
|
|
a.download = "日志记录.xlsx";
|
|
|
let binaryData = [];
|
|
@@ -197,12 +197,6 @@
|
|
|
document.body.appendChild(a);
|
|
|
a.click();
|
|
|
document.body.removeChild(a);
|
|
|
- // downloadFile({
|
|
|
- // res: response,
|
|
|
- // fileName: `导出日志记录`,
|
|
|
- // type: "xls",
|
|
|
- // });
|
|
|
-
|
|
|
});
|
|
|
// const {
|
|
|
// data
|
|
@@ -362,6 +356,7 @@
|
|
|
text-align: center;
|
|
|
line-height: 40px;
|
|
|
color: #666666;
|
|
|
+ min-width: 80px;
|
|
|
}
|
|
|
}
|
|
|
|