【类 型】:fix

【主	题】:绑定 tab标签显示
【描	述】:
	[原因]:bind_route字段null 时显示 未绑定  但是''不显示未绑定
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
szdot 2024-07-12 02:14:26 +08:00
parent b5ccaa4083
commit 3012e8706d

View File

@ -30,10 +30,9 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="已绑航线" width="200"> <el-table-column align="center" label="已绑航线" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag class="iconfont" :class="scope.row.bind_route !== null ? 'icon-feihangluxian' : 'icon-ic_tingyong'" <el-tag class="iconfont" :class="scope.row.bind_route === null || scope.row.bind_route === '' ?'icon-ic_tingyong': 'icon-feihangluxian'"
:type="scope.row.bind_route !== null ? '' : 'danger'"> :type="scope.row.bind_route === null || scope.row.bind_route === '' ?'danger': '' ">
<font class="m-l-5">{{ scope.row.bind_route !== null ? scope.row.bind_route : <font class="m-l-5">{{ scope.row.bind_route === null || scope.row.bind_route === ''?"未绑定": scope.row.bind_route}}</font>
"未绑定" }}</font>
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>