Commit 0429fe62 authored by xulili's avatar xulili

修改机顶盒基础信息

parent 16a99035
......@@ -69,6 +69,8 @@ export default {
};
},
mounted() {
// console.log(util.encrypt('5fa041'))
// console.log(util.encrypt('00:22:7E:0B:53:26'))
loginOut();
},
methods: {
......
......@@ -46,7 +46,12 @@
</div>
</div>
<div class="table-content">
<div class="party-table noAdd">
<div class="btn-group">
<el-button class="export" type="primary" @click="handleExport"
>导出</el-button
>
</div>
<div class="party-table">
<el-table
border
style="width: 100%; height: 100%"
......@@ -60,7 +65,7 @@
</el-table-column>
<el-table-column
align="center"
label="mac地址"
label="MAC地址"
prop="mac"
></el-table-column>
<el-table-column
......@@ -68,6 +73,16 @@
label="所属单位"
prop="organName"
></el-table-column>
<el-table-column
align="center"
label="单位管理员"
prop="userName"
></el-table-column>
<el-table-column
align="center"
label="所属区域"
prop="areaName"
></el-table-column>
<el-table-column align="center" label="机顶盒状态" prop="status">
<template slot-scope="scope">
<span>{{ statusOptions[scope.row.status - 1].label }}</span>
......@@ -189,6 +204,37 @@ export default {
this.page._index = val;
this.getTableData();
},
// 导出
handleExport() {
let dates = {};
if (this.form.date) {
dates.startDate = this.requestForm.date[0];
dates.endDate = this.requestForm.date[1];
}
let param = {
areaId: this.requestForm.areaId.length
? this.requestForm.areaId[this.requestForm.areaId.length - 1]
: "",
organId: this.requestForm.orgId,
status: this.requestForm.status,
};
this.$https(
{
url: "/boxOperation/excel/getPageList",
method: "post",
authType: this.backToken,
responseType: "blob",
},
this.$qs.stringify(param)
).then((res) => {
let blobUrl = window.URL.createObjectURL(res.data);
const aElement = document.createElement("a");
aElement.href = blobUrl;
aElement.download = "机顶盒运维信息.xls";
aElement.click();
window.URL.revokeObjectURL(blobUrl);
});
},
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment