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" :coloumData="coloumData"
isShowPagination isShowPagination
:paginationParam="paginationParam" :paginationParam="paginationParam"
isShowSelection
@changeSize="handleSizeChange" @changeSize="handleSizeChange"
@changePage="handlePageChange" @changePage="handlePageChange"
> >
@ -135,7 +134,7 @@ export default {
disabled: false disabled: false
}, },
{ {
label: "设备图片", label: "防区图片",
type: "img", type: "img",
model: "img", model: "img",
disabled: false disabled: false
@ -178,11 +177,11 @@ export default {
prop: "endTime", prop: "endTime",
align: "center" align: "center"
}, },
{ // {
label: "是否打击", // label: "",
prop: "isattacked", // prop: "isattacked",
align: "center" // align: "center"
}, // },
{ {
slot: "operate", slot: "operate",
label: "操作", label: "操作",

View File

@ -33,7 +33,6 @@
:coloumData="coloumData" :coloumData="coloumData"
isShowPagination isShowPagination
:paginationParam="paginationParam" :paginationParam="paginationParam"
isShowSelection
@changeSize="handleSizeChange" @changeSize="handleSizeChange"
@changePage="handlePageChange" @changePage="handlePageChange"
@selectionChange="handleSelectionChange" @selectionChange="handleSelectionChange"
@ -243,10 +242,10 @@ export default {
], ],
tableData: [], tableData: [],
coloumData: [ coloumData: [
{ // {
slot: "img", // slot: "img",
label: "设备图片" // label: ""
}, // },
{ {
type: "text", type: "text",
label: "设备名称", label: "设备名称",

View File

@ -18,9 +18,6 @@
> >
查询 查询
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="exportData()">
导出
</el-button>
</div> </div>
<div class="table-container"> <div class="table-container">
<my-table <my-table
@ -89,36 +86,6 @@ export default {
search() { search() {
this.headdenForm({}, "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) { headdenForm(value, type) {
let params = {}; let params = {};

View File

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

View File

@ -32,7 +32,6 @@
:coloumData="coloumData" :coloumData="coloumData"
isShowPagination isShowPagination
:paginationParam="paginationParam" :paginationParam="paginationParam"
isShowSelection
@changeSize="handleSizeChange" @changeSize="handleSizeChange"
@changePage="handlePageChange" @changePage="handlePageChange"
@selectionChange="handleSelectionChange" @selectionChange="handleSelectionChange"
@ -152,10 +151,10 @@ export default {
], ],
tableData: [], tableData: [],
coloumData: [ coloumData: [
{ // {
slot: "img", // slot: "img",
label: "防区图片" // label: ""
}, // },
{ {
type: "text", type: "text",
label: "防区名称", label: "防区名称",