Commit fc72d46a by li_hongchao

添加非空校验

parent ddcd7a0b
......@@ -13,7 +13,7 @@
<el-table-column prop="logicName" label="分库名称" :width="width1" show-overflow-tooltip></el-table-column>
<el-table-column prop="sjkyh" label="数据库用户组/用户" :width="width2">
<template slot-scope="scope">
<div class="tagsBox">
<div v-if='scope.row.groups && scope.row.groups.length >0' class="tagsBox">
<div v-for="item in strArr(scope.row.groups)" :key="item.logicId"
v-show="item !== ''">
......@@ -85,8 +85,8 @@
</div>
</el-tooltip>
</div>
<div v-else>---</div>
</template>
</el-table-column>
<el-table-column prop="createTime" label="创建时间" :width="width3"></el-table-column>
<el-table-column prop="qyzt" label="启用状态" :width="width4">
......@@ -102,7 +102,7 @@
}}
</template>
</el-table-column>
<el-table-column prop="des" label="逻辑库说明" :width="width5" show-overflow-tooltip>
<el-table-column prop="des" label="逻辑库说明" :width="width5" show-overflow-tooltip :formatter="$fFormatUtil.valueFormat">
<template slot-scope="scope">
<div v-if="scope.row.des">
<el-tooltip effect="dark" :content="scope.row.des" placement="top">
......@@ -111,7 +111,7 @@
</div>
</el-tooltip>
</div>
<div v-else>- - -</div>
<div v-else>---</div>
</template>
</el-table-column>
<el-table-column prop="cz" label="操作" width="auto">
......
......@@ -10,10 +10,11 @@
:row-key="getRowKeys"
class="table">
<el-table-column prop="logicName" label="分库名称" :width="width1" show-overflow-tooltip />
<el-table-column prop="sjkyh" label="数据库用户组/用户" :width="width2">
<el-table-column prop="logicName" label="分库名称" :width="width1" show-overflow-tooltip
:formatter="$fFormatUtil.valueFormat" />
<el-table-column prop="sjkyh" label="数据库用户组/用户" :width="width2" :formatter="$fFormatUtil.valueFormat">
<template slot-scope="scope">
<div class="tagsBox">
<div v-if='scope.row.groups && scope.row.groups.length >0' class="tagsBox">
<div v-for="item in strArr(scope.row.groups)" :key="item.logicId"
v-show="item !== ''">
......@@ -87,6 +88,7 @@
</div>
</el-tooltip>
</div>
<div v-else>---</div>
</template>
</el-table-column>
<el-table-column prop="createTime" label="创建时间" :width="width3"></el-table-column>
......@@ -103,7 +105,8 @@
}}
</template>
</el-table-column>
<el-table-column prop="des" label="逻辑库说明" :width="width5" show-overflow-tooltip>
<el-table-column prop="des" label="逻辑库说明" :width="width5" show-overflow-tooltip
:formatter="$fFormatUtil.valueFormat">
<template slot-scope="scope">
<div v-if="scope.row.des">
<el-tooltip effect="dark" :content="scope.row.des" placement="top">
......@@ -112,7 +115,7 @@
</div>
</el-tooltip>
</div>
<div v-else>- - -</div>
<div v-else>---</div>
</template>
</el-table-column>
<el-table-column prop="cz" label="操作" width="auto">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment