diff --git a/src/views/caseManage/components/knowledgeDetail.vue b/src/views/caseManage/components/knowledgeDetail.vue
index 1498d78..2f937c6 100644
--- a/src/views/caseManage/components/knowledgeDetail.vue
+++ b/src/views/caseManage/components/knowledgeDetail.vue
@@ -19,6 +19,15 @@
{{ knowledge.kInfo }}
+
@@ -35,8 +44,11 @@
publisherName: '',
kInfo: '',
publishTime: '',
- deptName: ''
+ deptName: '',
+ file: ''
},
+ staticPath: process.env.BASE_API + '/static/',
+ fileList: [],
dialogShow: false
}
},
@@ -51,6 +63,22 @@
knowledgeDetail(id).then(response => {
if (response.code === 200) {
this.knowledge = response.data
+ // 处理fileList
+ if (response.data.file && response.data.file !== '') {
+ const file_strs = response.data.file.split(';')
+ const fileList = []
+ for (const item of file_strs) {
+ const strs = item.split(':')
+ fileList.push({
+ name: strs[0],
+ url: this.staticPath + strs[1]
+ })
+ }
+ debugger
+ this.fileList = fileList
+ } else {
+ this.fileList = []
+ }
}
})
// this.knowledge = {
@@ -89,6 +117,21 @@
overflow-x: hidden;
}
}
+ .k-files{
+ text-align: left;
+ display: flex;
+ align-items: flex-start;
+ .k-files-name{
+ margin-left: 10px;
+ margin-right: 10px;
+ }
+ .k-files-content{
+ flex: 1;
+ a{
+ color:#3a8ee6
+ }
+ }
+ }
}