fix: alertRule导入导出按钮看不见的问题

This commit is contained in:
chenjinsong
2021-05-12 11:28:51 +08:00
parent 273af49d81
commit 846fac9676
2 changed files with 66 additions and 77 deletions

View File

@@ -1,12 +1,9 @@
<template>
<div>
<el-dialog
:title="$t('guide.title')"
:visible.sync="visible"
custom-class="guild-pop"
width="1000px"
@closed="dialogClosed"
@open="dialogOpened"
>
<div class="guide-list">
<div ref="guideShadow" class="guide-shadow"></div>
@@ -64,7 +61,6 @@
</template>
</div>
</el-dialog>
</div>
</template>
<script>
@@ -122,14 +118,6 @@ export default {
}
},
methods: {
dialogOpened () {
if (this.$refs.changePinForm) {
this.$refs.changePinForm.resetFields()
}
},
dialogClosed () {
this.$emit('dialogClosed')
},
close () {
this.visible = false
},
@@ -142,10 +130,10 @@ export default {
this.interval && clearInterval(this.interval)
},
downloadAgent () {
// TODO
},
openTerminal () {
// TODO
},
jump (route) {
this.visible = false

View File

@@ -12,15 +12,16 @@
<template v-slot:top-tool-right>
<export-excel
id="alert-rule"
:permissions="{import: 'alertRule_add'}"
:params="searchLabel"
:permissions="{import: 'rule_import', export: 'rule_export'}"
class="top-tool-export margin-r-10"
export-file-name="AlertRule"
export-url="/alert/rule/export"
import-url="/alert/rule/import"
@afterImport="getTableData"
>
<template slot="optionZone">
<button id="alert-add" v-has="'alertRule_add'" :title="$t('overall.createAlertRule')" class="top-tool-btn margin-r-10"
<button id="alert-add" v-has="'alertRule_add'" :title="$t('overall.createAlertRule')" class="top-tool-btn"
@click="add">
<i class="nz-icon-create-square nz-icon"></i>
</button>