fix:删除ipam页面同步图表,补充国际化
This commit is contained in:
@@ -110,14 +110,9 @@ export default {
|
||||
drawBubbleChart () {
|
||||
this.$nextTick(() => {
|
||||
d3.select(`#bubble-svg-${this.chartId}`).selectAll('g').remove()// 清空作图区域
|
||||
let width
|
||||
let height
|
||||
try {
|
||||
const chartWrap = document.getElementById(`chart-canvas-${this.chartId}`)
|
||||
width = chartWrap.clientWidth
|
||||
height = chartWrap.clientHeight
|
||||
} catch (error) {
|
||||
}
|
||||
const svg = document.getElementById(`bubble-svg-${this.chartId}`)
|
||||
const width = svg.getBoundingClientRect().width
|
||||
const height = svg.getBoundingClientRect().height
|
||||
// 定义布局方式
|
||||
const pack = d3.pack()
|
||||
.size([width, height])
|
||||
|
||||
@@ -78,15 +78,15 @@ export default {
|
||||
options: {
|
||||
ipDetailsState: [
|
||||
{
|
||||
label: 'Available',
|
||||
label: this.$t('overall.ipam.available'),
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
label: 'Transient',
|
||||
label: this.$t('overall.ipam.transient'),
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
label: 'Used',
|
||||
label: this.$t('overall.ipam.used'),
|
||||
value: 3
|
||||
}
|
||||
]
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<el-dropdown-item v-has="'ipam_edit'" :command="['edit', scope.row]"><i class="nz-icon nz-icon-edit"></i><span class="operation-dropdown-text">{{$t('overall.edit')}}</span></el-dropdown-item>
|
||||
<el-dropdown-item v-has="'ipam_edit'" :command="['copy', scope.row]"><i class="nz-icon nz-icon-override"></i><span class="operation-dropdown-text">{{$t('overall.duplicate')}}</span></el-dropdown-item>
|
||||
<el-dropdown-item v-has="'ipam_delete'" :command="['delete', scope.row]"><i class="nz-icon nz-icon-delete"></i><span class="operation-dropdown-text">{{$t('overall.delete')}}</span></el-dropdown-item>
|
||||
<el-dropdown-item v-has="'ipam_edit'" :command="['sync', scope.row]"><i class="nz-icon nz-icon-sync"></i><span class="operation-dropdown-text">{{$t('overall.syncChart')}}</span></el-dropdown-item>
|
||||
<!-- <el-dropdown-item v-has="'ipam_edit'" :command="['sync', scope.row]"><i class="nz-icon nz-icon-sync"></i><span class="operation-dropdown-text">{{$t('overall.syncChart')}}</span></el-dropdown-item> -->
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user