Commit 08cb9955c76e431b6167b979f94649d40e0a2ef1
1 parent
9ee501d8
修复敏感词表格创建时间列内容错误,标签列标签之间增加空格
Showing
1 changed file
with
11 additions
and
2 deletions
yudao-ui-admin/src/views/system/sensitiveWord/index.vue
| @@ -53,14 +53,17 @@ | @@ -53,14 +53,17 @@ | ||
| 53 | </el-table-column> | 53 | </el-table-column> |
| 54 | <el-table-column label="描述" align="center" prop="description"/> | 54 | <el-table-column label="描述" align="center" prop="description"/> |
| 55 | <el-table-column label="标签" align="center" prop="tags"> | 55 | <el-table-column label="标签" align="center" prop="tags"> |
| 56 | - </el-table-column> | ||
| 57 | - <el-table-column label="创建时间" align="center" prop="createTime" width="180"> | ||
| 58 | <template slot-scope="scope"> | 56 | <template slot-scope="scope"> |
| 59 | <el-tag :disable-transitions="true" v-for="(tag, index) in scope.row.tags" :index="index"> | 57 | <el-tag :disable-transitions="true" v-for="(tag, index) in scope.row.tags" :index="index"> |
| 60 | {{ tag }} | 58 | {{ tag }} |
| 61 | </el-tag> | 59 | </el-tag> |
| 62 | </template> | 60 | </template> |
| 63 | </el-table-column> | 61 | </el-table-column> |
| 62 | + <el-table-column label="创建时间" align="center" prop="createTime" width="180"> | ||
| 63 | + <template slot-scope="scope"> | ||
| 64 | + <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> | ||
| 65 | + </template> | ||
| 66 | + </el-table-column> | ||
| 64 | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> | 67 | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| 65 | <template slot-scope="scope"> | 68 | <template slot-scope="scope"> |
| 66 | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" | 69 | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
| @@ -324,3 +327,9 @@ export default { | @@ -324,3 +327,9 @@ export default { | ||
| 324 | } | 327 | } |
| 325 | }; | 328 | }; |
| 326 | </script> | 329 | </script> |
| 330 | + | ||
| 331 | +<style rel="stylesheet/scss" lang="scss"> | ||
| 332 | + .el-tag+.el-tag { | ||
| 333 | + margin-left: 10px; | ||
| 334 | + } | ||
| 335 | +</style> |