+
{{scope.row.childrenNum}}
-
0
+
-
{{scope.row.brand ? scope.row.brand.name : '-'}}
@@ -107,9 +121,13 @@
import table from '@/components/common/mixin/table'
import { showTableTooltip, hideTableTooltip } from '@/components/common/js/tools'
import bus from '@/libs/bus'
+import alertLabel from '@/components/common/alert/alertLabel'
export default {
name: 'assetTable',
mixins: [table],
+ components: {
+ alertLabel: alertLabel
+ },
props: {
showOption: {
type: Boolean,
@@ -258,6 +276,16 @@ export default {
this.bottomBox.targetTab = 'endpoint'
this.bottomBox.showSubList = true
},
+ // label 鼠标划入
+ labelHover (item, type, loading, e) {
+ if (e) {
+ const dom = e.currentTarget
+ const position = dom.getBoundingClientRect()
+ this.$set(item, 'position', position)
+ }
+ this.$set(item, 'loading', loading)
+ // this.$set(this.tableData,index,item);// 调用父组件
+ },
returnCabinet (start, end) { // 返回机柜u位信息
if (!start || !end) {
return ''
diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue
index 73e559dee..07f697a6d 100644
--- a/nezha-fronted/src/components/page/asset/asset.vue
+++ b/nezha-fronted/src/components/page/asset/asset.vue
@@ -20,6 +20,7 @@
ref="export"
id="model"
:params="searchLabel"
+ :params2="searchCheckBox"
:permissions="{
import: 'asset_add',
export: 'asset_view'