NEZ-864 fix: 修复alert message列表 lables展示问题
This commit is contained in:
@@ -182,7 +182,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
labelsSort (obj) {
|
labelsSort (obj) {
|
||||||
const buildIn = ['asset', 'endpoint', 'module', 'project', 'datacenter']
|
const buildIn = ['asset', 'endpoint', 'module', 'cpu', 'project', 'datacenter', 'parent_asset', 'user']
|
||||||
const labels = JSON.parse(JSON.stringify(obj))
|
const labels = JSON.parse(JSON.stringify(obj))
|
||||||
const result = []
|
const result = []
|
||||||
for (const key of buildIn) {
|
for (const key of buildIn) {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
</nz-alert-tag>
|
</nz-alert-tag>
|
||||||
</span>
|
</span>
|
||||||
<alertLabel
|
<alertLabel
|
||||||
v-if="(item.label === 'asset' ||item.label === 'module' || item.label === 'project'||item.label === 'endpoint') && scope.row[item.label] && scope.row[item.label].loading"
|
v-if="(item.label === 'asset' ||item.label === 'module' || item.label === 'project'||item.label === 'endpoint' ||item.label === 'cpu' ||item.label === 'user' ||item.label === 'parent_asset') && scope.row[item.label] && scope.row[item.label].loading"
|
||||||
:id="scope.row[item.label].id"
|
:id="scope.row[item.label].id"
|
||||||
:that="scope.row[item.label]"
|
:that="scope.row[item.label]"
|
||||||
:type="item.label"
|
:type="item.label"
|
||||||
@@ -222,12 +222,8 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
tagType () {
|
tagType () {
|
||||||
return (key) => {
|
return () => {
|
||||||
if (key == 'asset' || key == 'module' || key == 'project' || key == 'datacenter' || key == 'endpoint') {
|
|
||||||
return 'normal'
|
return 'normal'
|
||||||
} else {
|
|
||||||
return 'info'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tagValue () {
|
tagValue () {
|
||||||
@@ -265,7 +261,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
labelsSort (obj) {
|
labelsSort (obj) {
|
||||||
const buildIn = ['asset', 'endpoint', 'module', 'project', 'datacenter']
|
const buildIn = ['asset', 'endpoint', 'module', 'cpu', 'project', 'datacenter', 'parent_asset', 'user']
|
||||||
if (typeof obj === 'string') obj = JSON.parse(obj)
|
if (typeof obj === 'string') obj = JSON.parse(obj)
|
||||||
const labels = JSON.parse(JSON.stringify(obj))
|
const labels = JSON.parse(JSON.stringify(obj))
|
||||||
const result = []
|
const result = []
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
labelsSort (obj) {
|
labelsSort (obj) {
|
||||||
const buildIn = ['asset', 'endpoint', 'module', 'project', 'datacenter']
|
const buildIn = ['asset', 'endpoint', 'module', 'cpu', 'project', 'datacenter', 'parent_asset', 'user']
|
||||||
const labels = JSON.parse(JSON.stringify(obj))
|
const labels = JSON.parse(JSON.stringify(obj))
|
||||||
const result = []
|
const result = []
|
||||||
for (const key of buildIn) {
|
for (const key of buildIn) {
|
||||||
|
|||||||
Reference in New Issue
Block a user