feat:使用向导完善

This commit is contained in:
zhangyu
2021-05-12 16:19:43 +08:00
parent bb781b73e5
commit d8c07bca23
14 changed files with 274 additions and 95 deletions

View File

@@ -14,6 +14,7 @@
<i class="nz-icon nz-icon-funnel"></i>
</button>
<export-excel
ref="export"
id="asset-list"
:params="searchLabel"
:permissions="{import: 'asset_add', export: 'asset_view'}"
@@ -434,12 +435,24 @@ export default {
this.getSearchableMetaData()
this.getSnmpCredentialData()
this.getFieldGroupData()
// 是否弹出侧滑
const add = this.$route.query.add
if (add) {
if (add === 'asset') {
this.add()
},
watch: {
$route: {
immediate: true,
handler () {
// 是否弹出侧滑
const add = this.$route.query.add
const importAsset = this.$route.query.importAsset
if (add) {
if (add === 'asset') {
this.add()
}
}
if (importAsset) {
this.$nextTick(() => {
this.$refs.export.showImportBox(1)
})
}
}
}
}