This commit is contained in:
liqi 2025-04-04 23:09:55 +08:00
parent 6b6354636c
commit cab92335ff
5 changed files with 14 additions and 51 deletions

View File

@ -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: "操作",

View File

@ -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: "设备名称",

View File

@ -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 = {};

View File

@ -33,7 +33,6 @@
:coloumData="coloumData"
isShowPagination
:paginationParam="paginationParam"
isShowSelection
@changeSize="handleSizeChange"
@changePage="handlePageChange"
>

View File

@ -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: "防区名称",