|
@@ -91,10 +91,22 @@
|
|
|
<el-table-column
|
|
|
prop="createTime"
|
|
|
label="创建时间"/>
|
|
|
- <el-table-column
|
|
|
- prop="description"
|
|
|
- label="备注"/>
|
|
|
- <el-table-column
|
|
|
+ <el-table-column width="130" prop="description" label="备注">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
+ width="400"
|
|
|
+ trigger="hover"
|
|
|
+ v-if="scope.row.description && scope.row.description.length > 20">
|
|
|
+ <p>{{scope.row.description}}</p>
|
|
|
+ <div slot="reference" class="name-wrapper">
|
|
|
+ {{scope.row.description.substring(0,20)}}...
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+ <span v-else>{{scope.row.description}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width="130"
|
|
|
fixed="right"
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|