feat:故障记录导出
parent
4cce05fd67
commit
5978988c32
|
@ -37,9 +37,10 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-radio-group v-model="direction">
|
<!-- 抽屉 --->
|
||||||
|
<el-radio-group v-model="direction" />
|
||||||
|
|
||||||
|
|
||||||
</el-radio-group>
|
|
||||||
|
|
||||||
|
|
||||||
<el-drawer title="通知" :visible.sync="drawer" :direction="direction" :before-close="handleClose">
|
<el-drawer title="通知" :visible.sync="drawer" :direction="direction" :before-close="handleClose">
|
||||||
|
@ -261,6 +262,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
activeName: 'first',
|
activeName: 'first',
|
||||||
drawer: false,
|
drawer: false,
|
||||||
|
//向右打开
|
||||||
direction: 'rtl',
|
direction: 'rtl',
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
|
|
|
@ -28,7 +28,15 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<rl-row>
|
<rl-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handelExport">导出</el-button>
|
||||||
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</rl-row>
|
</rl-row>
|
||||||
|
|
||||||
|
@ -243,6 +251,12 @@ export default {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handelExport(){
|
||||||
|
this.download('breakdown/log/export',{
|
||||||
|
...this.queryParams
|
||||||
|
},`log_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
Loading…
Reference in New Issue