地址为空不展示问题处理,修改鼠标指针

This commit is contained in:
Wenchao Gong 2021-09-10 20:39:52 +08:00
parent 0626bd3e92
commit aefb605d53
2 changed files with 6 additions and 4 deletions

View File

@ -85,7 +85,8 @@
<el-table-column label="应用密钥" align="center" prop="accessKey">
<template slot-scope="scope">
<span>{{ scope.row.accessKey }} </span>
<i class="el-icon-copy-document" style="color: #4A8DFF" @click="handleCopy(scope.row.accessKey)" title="复制"/>
<i class="el-icon-copy-document" style="color: #4A8DFF;cursor:pointer" v-if="scope.row.accessKey"
@click="handleCopy(scope.row.accessKey)" title="复制"/>
</template>
</el-table-column>
<el-table-column label="更新者" align="center" prop="updateBy" />

View File

@ -90,8 +90,9 @@
<el-table-column label="服务名称" align="left" prop="serviceName" />
<el-table-column label="虚拟地址" align="left" prop="virtualAddr">
<template slot-scope="scope">
<span :title="scope.row.virtualAddr" v-text="handleVirtualAddr(scope.row.virtualAddr)"></span>
<i class="el-icon-copy-document" style="color: #4A8DFF" @click="handleCopy(scope.row.virtualAddr)" title="复制"/>
<span :title="scope.row.virtualAddr" v-text="handleVirtualAddr(scope.row.virtualAddr)"/>
<i class="el-icon-copy-document" v-if="scope.row.virtualAddr" style="color: #4A8DFF;cursor:pointer"
@click="handleCopy(scope.row.virtualAddr)" title="复制"/>
</template>
</el-table-column>
<el-table-column label="审核状态" align="center" prop="status" width="100">
@ -421,7 +422,7 @@ export default {
},
//
handleVirtualAddr(data) {
return data.length > 40 ? data.substring(0, 37) + '...' : data;
return data && data.length > 40 ? data.substring(0, 37) + '...' : data;
},
/** 提交按钮 */
submitForm() {