feat:故障记录导出

master
袁子龙 2024-09-25 21:52:41 +08:00
parent 4cce05fd67
commit 5978988c32
2 changed files with 19 additions and 3 deletions

View File

@ -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,

View File

@ -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();