NEZ-2210 feat:record rule 批量导入页面开发
This commit is contained in:
@@ -322,9 +322,12 @@ td .nz-icon-gear:before {
|
||||
background-color: $--background-color-empty;
|
||||
border: 1px solid $--border-color-light;
|
||||
}
|
||||
.el-button:hover {
|
||||
.el-button:hover:not(.nz-btn-disabled) {
|
||||
border: 1px solid $--color-primary;
|
||||
}
|
||||
.el-button.nz-btn-disabled{
|
||||
color: $--color-text-regular !important;
|
||||
}
|
||||
.el-button:nth-child(3) {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
@@ -234,64 +234,22 @@ export default {
|
||||
deleteObjs: Array,
|
||||
exportBoxShow: {
|
||||
type: Boolean, default: false
|
||||
},
|
||||
// 显示新版导入
|
||||
importNew: {
|
||||
type: Boolean, default: true
|
||||
},
|
||||
// 已存在的内容处理方式
|
||||
showEexisted: {
|
||||
type: Boolean, default: true
|
||||
},
|
||||
// 遇到错误是否继续导入
|
||||
showIgnoreError: {
|
||||
type: Boolean, default: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
language () { return this.$store.getters.getLanguage },
|
||||
// 显示新版导入
|
||||
importNew () {
|
||||
// asset module endpoint dc cabinet model alertRule ipamSubnet ipamIp panel expression
|
||||
const arr = [
|
||||
'/asset/asset/import',
|
||||
'/monitor/module/import',
|
||||
'/monitor/endpoint/import',
|
||||
'/dc/import',
|
||||
'/dc/cabinet/import',
|
||||
'/asset/model/import',
|
||||
'/alert/rule/import',
|
||||
'/ipam/subnet/import',
|
||||
'/ipam/ip/import',
|
||||
'/visual/panel/import',
|
||||
'/expression/tmpl/import'
|
||||
]
|
||||
return arr.some(item => item === this.importUrl)
|
||||
},
|
||||
// 已存在的内容处理方式
|
||||
showEexisted () {
|
||||
// asset module endpoint dc cabinet model alertRule ipamSubnet ipamIp panel expression
|
||||
const arr = [
|
||||
'/asset/asset/import',
|
||||
'/monitor/module/import',
|
||||
'/monitor/endpoint/import',
|
||||
'/dc/import',
|
||||
'/dc/cabinet/import',
|
||||
'/asset/model/import',
|
||||
'/alert/rule/import',
|
||||
'/ipam/subnet/import',
|
||||
'/ipam/ip/import',
|
||||
'/visual/panel/import',
|
||||
'/expression/tmpl/import'
|
||||
]
|
||||
return arr.some(item => item === this.importUrl)
|
||||
},
|
||||
// 遇到错误是否继续导入
|
||||
showIgnoreError () {
|
||||
// asset module endpoint dc cabinet model alertRule ipamSubnet ipamIp panel expression
|
||||
const arr = [
|
||||
'/asset/asset/import',
|
||||
'/monitor/module/import',
|
||||
'/monitor/endpoint/import',
|
||||
'/dc/import',
|
||||
'/dc/cabinet/import',
|
||||
'/asset/model/import',
|
||||
'/alert/rule/import',
|
||||
'/ipam/subnet/import',
|
||||
'/ipam/ip/import',
|
||||
'/visual/panel/import',
|
||||
'/expression/tmpl/import'
|
||||
]
|
||||
return arr.some(item => item === this.importUrl)
|
||||
},
|
||||
// 是否同步更新关联的dashboard
|
||||
showSyncDashboard () {
|
||||
// asset endpoint model
|
||||
|
||||
@@ -76,7 +76,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import bus from '@/libs/bus'
|
||||
import nzDataList from '@/components/common/table/nzDataList'
|
||||
import dataListMixin from '@/components/common/mixin/dataList'
|
||||
import routerPathParams from '@/components/common/mixin/routerPathParams'
|
||||
|
||||
Reference in New Issue
Block a user