|
@@ -50,6 +50,12 @@
|
|
|
<div class="JNPF-common-layout-main JNPF-flex-main">
|
|
|
<JNPF-table v-loading="listLoading" :data="tableData" row-key="id" v-if="refreshTable">
|
|
|
<el-table-column prop="title" label="标题" />
|
|
|
+ <el-table-column prop="publishTime" label="发布时间" />
|
|
|
+ <el-table-column label="标签">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag v-for="item in scope.row.labelList" :key="item">{{ item }}</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="handleDetail(scope.row.id)">详情</el-button>
|
|
@@ -161,6 +167,9 @@ export default {
|
|
|
this.listLoading = true
|
|
|
getKnowledgeList(this.listQuery).then(res => {
|
|
|
this.tableData = res.data.records
|
|
|
+ this.tableData.forEach(item => {
|
|
|
+ this.$set(item, "labelList", JSON.parse(item.label))
|
|
|
+ })
|
|
|
this.total = res.data.total
|
|
|
this.listLoading = false
|
|
|
}).catch(() => {
|