This commit is contained in:
parent
6b6354636c
commit
cab92335ff
|
|
@ -26,7 +26,6 @@
|
|||
:coloumData="coloumData"
|
||||
isShowPagination
|
||||
:paginationParam="paginationParam"
|
||||
isShowSelection
|
||||
@changeSize="handleSizeChange"
|
||||
@changePage="handlePageChange"
|
||||
>
|
||||
|
|
@ -135,7 +134,7 @@ export default {
|
|||
disabled: false
|
||||
},
|
||||
{
|
||||
label: "设备图片",
|
||||
label: "防区图片",
|
||||
type: "img",
|
||||
model: "img",
|
||||
disabled: false
|
||||
|
|
@ -178,11 +177,11 @@ export default {
|
|||
prop: "endTime",
|
||||
align: "center"
|
||||
},
|
||||
{
|
||||
label: "是否打击",
|
||||
prop: "isattacked",
|
||||
align: "center"
|
||||
},
|
||||
// {
|
||||
// label: "是否打击",
|
||||
// prop: "isattacked",
|
||||
// align: "center"
|
||||
// },
|
||||
{
|
||||
slot: "operate",
|
||||
label: "操作",
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
:coloumData="coloumData"
|
||||
isShowPagination
|
||||
:paginationParam="paginationParam"
|
||||
isShowSelection
|
||||
@changeSize="handleSizeChange"
|
||||
@changePage="handlePageChange"
|
||||
@selectionChange="handleSelectionChange"
|
||||
|
|
@ -243,10 +242,10 @@ export default {
|
|||
],
|
||||
tableData: [],
|
||||
coloumData: [
|
||||
{
|
||||
slot: "img",
|
||||
label: "设备图片"
|
||||
},
|
||||
// {
|
||||
// slot: "img",
|
||||
// label: "设备图片"
|
||||
// },
|
||||
{
|
||||
type: "text",
|
||||
label: "设备名称",
|
||||
|
|
|
|||
|
|
@ -18,9 +18,6 @@
|
|||
>
|
||||
查询
|
||||
</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="exportData()">
|
||||
导出
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="table-container">
|
||||
<my-table
|
||||
|
|
@ -89,36 +86,6 @@ export default {
|
|||
search() {
|
||||
this.headdenForm({}, "search");
|
||||
},
|
||||
async exportData() {
|
||||
try {
|
||||
const response = await axios.get(
|
||||
process.env.VUE_APP_API_URL +
|
||||
"/api/Log/export?page=" +
|
||||
this.$refs.myForm.ruleForm.key,
|
||||
{
|
||||
responseType: "blob"
|
||||
}
|
||||
); // 请求后端接口
|
||||
|
||||
const url = URL.createObjectURL(new Blob([response.data])); // 创建URL对象
|
||||
|
||||
const link = document.createElement("a"); // 创建隐藏的<a>元素
|
||||
|
||||
link.href = url;
|
||||
|
||||
link.download = "data.xlsx"; // 设置下载文件的名称
|
||||
|
||||
document.body.appendChild(link);
|
||||
|
||||
link.click(); // 触发点击事件
|
||||
|
||||
document.body.removeChild(link); // 移除<a>元素
|
||||
|
||||
URL.revokeObjectURL(url); // 释放URL对象
|
||||
} catch (error) {
|
||||
console.error("文件导出失败", error);
|
||||
}
|
||||
},
|
||||
// 搜索
|
||||
headdenForm(value, type) {
|
||||
let params = {};
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
:coloumData="coloumData"
|
||||
isShowPagination
|
||||
:paginationParam="paginationParam"
|
||||
isShowSelection
|
||||
@changeSize="handleSizeChange"
|
||||
@changePage="handlePageChange"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
:coloumData="coloumData"
|
||||
isShowPagination
|
||||
:paginationParam="paginationParam"
|
||||
isShowSelection
|
||||
@changeSize="handleSizeChange"
|
||||
@changePage="handlePageChange"
|
||||
@selectionChange="handleSelectionChange"
|
||||
|
|
@ -152,10 +151,10 @@ export default {
|
|||
],
|
||||
tableData: [],
|
||||
coloumData: [
|
||||
{
|
||||
slot: "img",
|
||||
label: "防区图片"
|
||||
},
|
||||
// {
|
||||
// slot: "img",
|
||||
// label: "防区图片"
|
||||
// },
|
||||
{
|
||||
type: "text",
|
||||
label: "防区名称",
|
||||
|
|
|
|||
Loading…
Reference in New Issue