Commit 10585caf authored by 乐宝呗666's avatar 乐宝呗666

添加私钥展示

parent 996e9b0c
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
:width="item.width" :width="item.width"
:show-overflow-tooltip="item.prop==='privateKey'"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="item.isEdit" class="table-btn-group"> <div v-if="item.isEdit" class="table-btn-group">
...@@ -34,6 +35,13 @@ ...@@ -34,6 +35,13 @@
<span v-if="item.prop === 'exiredDate'"> <span v-if="item.prop === 'exiredDate'">
{{ scope.row[item.prop] || '永久有效' }} {{ scope.row[item.prop] || '永久有效' }}
</span> </span>
<el-popover v-else-if="item.prop === 'privateKey'"
placement="top-start"
width="1000"
trigger="click"
:content="scope.row[item.prop]">
<a style="text-decoration:underline;color:rgb(64, 158, 255);" slot="reference">查看私钥</a>
</el-popover>
<span v-else>{{ scope.row[item.prop] }}</span> <span v-else>{{ scope.row[item.prop] }}</span>
</div> </div>
</template> </template>
......
...@@ -64,6 +64,7 @@ export default { ...@@ -64,6 +64,7 @@ export default {
{ prop: "mac", label: "MAC地址" }, { prop: "mac", label: "MAC地址" },
{ prop: "organName", label: "所属单位" }, { prop: "organName", label: "所属单位" },
{ prop: "exiredDate", label: "到期时间" }, { prop: "exiredDate", label: "到期时间" },
{ prop: "privateKey", label: "机顶盒私钥"},
{ prop: "", label: "操作", isEdit: true, width: 180 }, { prop: "", label: "操作", isEdit: true, width: 180 },
], ],
orgOptions: [], // 单位信息 orgOptions: [], // 单位信息
......
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