NEZ-2197 feat:dc & cabinet 批量导入页面开发
This commit is contained in:
@@ -240,20 +240,20 @@ export default {
|
||||
language () { return this.$store.getters.getLanguage },
|
||||
// 显示新版导入
|
||||
importType () {
|
||||
// asset module endpoint
|
||||
const arr = ['/asset/asset/import', '/monitor/module/import', '/monitor/endpoint/import']
|
||||
// asset module endpoint dc cabinet
|
||||
const arr = ['/asset/asset/import', '/monitor/module/import', '/monitor/endpoint/import', '/dc/import', '/dc/cabinet/import']
|
||||
return arr.some(item => item === this.importUrl)
|
||||
},
|
||||
// 已存在的内容处理方式
|
||||
showEexisted () {
|
||||
// asset module endpoint
|
||||
const arr = ['/asset/asset/import', '/monitor/module/import', '/monitor/endpoint/import']
|
||||
// asset module endpoint dc cabinet
|
||||
const arr = ['/asset/asset/import', '/monitor/module/import', '/monitor/endpoint/import', '/dc/import', '/dc/cabinet/import']
|
||||
return arr.some(item => item === this.importUrl)
|
||||
},
|
||||
// 遇到错误是否继续导入
|
||||
showIgnoreError () {
|
||||
// asset module endpoint
|
||||
const arr = ['/asset/asset/import', '/monitor/module/import', '/monitor/endpoint/import']
|
||||
// asset module endpoint dc cabinet
|
||||
const arr = ['/asset/asset/import', '/monitor/module/import', '/monitor/endpoint/import', '/dc/import', '/dc/cabinet/import']
|
||||
return arr.some(item => item === this.importUrl)
|
||||
},
|
||||
// 是否同步更新关联的dashboard
|
||||
@@ -441,11 +441,11 @@ export default {
|
||||
const language = localStorage.getItem('nz-language') || 'en' // 初始未选择默认 en 英文
|
||||
// 导出模板后缀
|
||||
let suffix = '.xlsx'
|
||||
if (this.importBox.templateFormat == 1) {
|
||||
if (templateFormat == 1) {
|
||||
suffix = '.xlsx'
|
||||
} else if (this.importBox.templateFormat == 2) {
|
||||
} else if (templateFormat == 2) {
|
||||
suffix = '.csv'
|
||||
} else if (this.importBox.templateFormat == 3) {
|
||||
} else if (templateFormat == 3) {
|
||||
suffix = '.json'
|
||||
}
|
||||
const fileName = this.exportFileName + '-' + this.$t('overall.template') + '-' + this.getTimeString() + suffix
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
>
|
||||
<template>
|
||||
<el-input-number ref="jumpInput" v-model="pageObj.pageNo" :controls="false" :min="1" :max="pageObj.pages" class="jump-input" @change="getTableData" @keyup.enter.native="getTableData" size="mini"/>
|
||||
<span class="jump-pages">/ {{pageObj.pages}}</span>
|
||||
<span class="jump-pages">/ {{pageObj.pages}}</span>
|
||||
</template>
|
||||
</el-pagination>
|
||||
</template>
|
||||
@@ -84,8 +84,7 @@
|
||||
@getTableData="getTableData"
|
||||
>
|
||||
<template v-slot:top-tool-right>
|
||||
<button id="dc-add" v-has="'dc_add'" :title="$t('overall.createDatacenter')" class="top-tool-btn margin-r-10"
|
||||
type="button" @click="add">
|
||||
<button id="dc-add" v-has="'dc_add'" :title="$t('overall.createDatacenter')" class="top-tool-btn margin-r-10" type="button" @click="add">
|
||||
<i class="nz-icon-create-square nz-icon"></i>
|
||||
</button>
|
||||
<top-tool-more-options
|
||||
@@ -160,7 +159,7 @@
|
||||
<script>
|
||||
import dcBox from '@/components/common/rightBox/dcBox' // dc弹框
|
||||
import cabinetBox from '@/components/common/rightBox/cabinetBox' // dc弹框
|
||||
import trafficSettingBox from '@/components/common/rightBox/trafficSetting/trafficSettingBox'
|
||||
// import trafficSettingBox from '@/components/common/rightBox/trafficSetting/trafficSettingBox'
|
||||
import deleteButton from '@/components/common/deleteButton'
|
||||
import nzDataList from '@/components/common/table/nzDataList'
|
||||
import dataListMixin from '@/components/common/mixin/dataList'
|
||||
@@ -169,7 +168,7 @@ import topToolMoreOptions from '@/components/common/popBox/topToolMoreOptions'
|
||||
import nzDetailView from '@/components/common/detailView/nzDetailView'
|
||||
import detailViewMixin from '@/components/common/mixin/detailViewMixin'
|
||||
import dcDetail from '@/components/common/detailView/list/dc/dcDetail'
|
||||
import detailViewTopSearch from '@/components/common/detailView/detailViewTopSearch'
|
||||
// import detailViewTopSearch from '@/components/common/detailView/detailViewTopSearch'
|
||||
import bus from '@/libs/bus'
|
||||
|
||||
export default {
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
</el-form-item>
|
||||
<!-- type -->
|
||||
<el-form-item :label="$t('overall.type')" prop="type">
|
||||
<el-select class="right-box__select"
|
||||
<el-select
|
||||
class="right-box__select"
|
||||
v-model="licenseGen.type"
|
||||
:placeholder="$t('overall.select')"
|
||||
popper-class="right-box-select-top right-public-box-dropdown-top prevent-clickoutside"
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
>
|
||||
<template>
|
||||
<el-input-number ref="jumpInput" v-model="pageObj.pageNo" :controls="false" :min="1" :max="pageObj.pages" class="jump-input" @change="getTableData" @keyup.enter.native="getTableData" size="mini"/>
|
||||
<span class="jump-pages">/ {{pageObj.pages}}</span>
|
||||
<span class="jump-pages">/ {{pageObj.pages}}</span>
|
||||
</template>
|
||||
</el-pagination>
|
||||
</template>
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
<topologyL5 v-if="reloadFacade" ref="facade" :obj="currentProject" :topologyIndexF="topologyIndexF" targetTab.sync="panel" @changeTopologyIndexF="changeTopologyIndexF"/>
|
||||
|
||||
<transition name="el-zoom-in-bottom">
|
||||
<bottom-box v-if="bottomBox.showSubList"
|
||||
<bottom-box
|
||||
v-if="bottomBox.showSubList"
|
||||
:sub-resize-show="bottomBox.subResizeShow"
|
||||
:is-full-screen="bottomBox.isFullScreen"
|
||||
:from="$CONSTANTS.fromRoute.endpoint"
|
||||
@@ -15,17 +16,27 @@
|
||||
@closeSubList="bottomBox.showSubList = false"
|
||||
@fullScreen="fullScreen"
|
||||
@exitFullScreen="exitFullScreen"
|
||||
@listResize="listResize"></bottom-box>
|
||||
@listResize="listResize">
|
||||
</bottom-box>
|
||||
</transition>
|
||||
<transition name="right-box">
|
||||
<add-endpoint-box v-if="rightBox.addEndpoint.show" :current-project="currentProject"
|
||||
:current-module="currentModule" @close="closeAddEndpointRightBox"
|
||||
ref="addEndpointBox"></add-endpoint-box>
|
||||
<add-endpoint-box
|
||||
v-if="rightBox.addEndpoint.show"
|
||||
:current-project="currentProject"
|
||||
:current-module="currentModule"
|
||||
@close="closeAddEndpointRightBox"
|
||||
ref="addEndpointBox">
|
||||
</add-endpoint-box>
|
||||
</transition>
|
||||
<transition name="right-box">
|
||||
<edit-endpoint-box v-if="rightBox.editEndpoint.show" :project="currentProject" :module="currentModule"
|
||||
:endpoint="endpoint" @close="closeEditEndpointRightBox"
|
||||
ref="editEndpointBox"></edit-endpoint-box>
|
||||
<edit-endpoint-box
|
||||
v-if="rightBox.editEndpoint.show"
|
||||
:project="currentProject"
|
||||
:module="currentModule"
|
||||
:endpoint="endpoint"
|
||||
@close="closeEditEndpointRightBox"
|
||||
ref="editEndpointBox">
|
||||
</edit-endpoint-box>
|
||||
</transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user