fix:解决asset。tableTitle 删除后的影响

This commit is contained in:
zhangyu
2021-04-25 16:28:09 +08:00
parent 78ed94c1c8
commit de5fe9f1c6
18 changed files with 84 additions and 66 deletions

View File

@@ -34,7 +34,7 @@
</template>
<template slot-scope="scope" :column="item">
<span v-if="item.prop==='varType'">{{scope.row[item.prop]===1?'Asset':'endpoint'}}</span>
<span v-else-if="item.prop==='type'" :class="'asd'">{{scope.row[item.prop]}}</span>
<span v-else-if="item.prop==='type'" :class="typeIcon(scope.row)">{{scope.row[item.prop]}}</span>
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop] || '-'}}</span>
<template v-else>-</template>
</template>
@@ -92,6 +92,20 @@ export default {
}
]
}
},
methods: {
typeIcon (row) {
let str = 'nz-icon'
switch (row.type) {
case 'line':
str += 'nz-icon-multitext'
break
default :
str += 'nz-icon-multitext'
break
}
return str
}
}
}
</script>