|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<div class="knowledge-management">
|
|
|
<header>
|
|
|
+ <i class="back-icon" @click="goKBM"></i>
|
|
|
<i class="folder-icon" style="height: 32px;width:32px;cursor: pointer;" @click="goKBM"></i>
|
|
|
</header>
|
|
|
<main>
|
|
@@ -24,8 +25,8 @@
|
|
|
style="margin: 0px;">批量修改文件</i></span>
|
|
|
</div>
|
|
|
<div class="management-content-middle">
|
|
|
- <el-table :data="filesList" ref="fileTableRef" size="large">
|
|
|
- <el-table-column type="selection" width="30" />
|
|
|
+ <el-table :data="filesList" ref="fileTableRef" size="large" style="width: 99% ;">
|
|
|
+ <el-table-column type="selection" width="35" />
|
|
|
<el-table-column label="#" prop="index" width="60" />
|
|
|
<el-table-column prop="file_name" min-width="150" label="标题">
|
|
|
<template #default="{ row }">
|
|
@@ -42,7 +43,7 @@
|
|
|
<el-table-column prop="knowledge_type" label="知识类型" />
|
|
|
<el-table-column prop="version" label="版本" />
|
|
|
<el-table-column prop="author" label="作者(主编)" />
|
|
|
- <el-table-column prop="year" label="年份" width="70" />
|
|
|
+ <el-table-column prop="year" label="年份" min-width="70" />
|
|
|
<el-table-column prop="creator" label="上传人" />
|
|
|
<el-table-column prop="created_at" label="上传时间" width="170" />
|
|
|
<el-table-column prop="" label="状态" width="90">
|
|
@@ -106,7 +107,7 @@
|
|
|
<script setup>
|
|
|
import { saveAs } from 'file-saver'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
-import { ref, getCurrentInstance, computed, watch, toRaw } from 'vue'
|
|
|
+import { ref, getCurrentInstance, computed, watch, toRaw, onMounted } from 'vue'
|
|
|
import { Download, Search } from '@element-plus/icons-vue'
|
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
|
import axios from 'axios';
|
|
@@ -179,7 +180,7 @@ const handleViewFile = (url, type) => {
|
|
|
viewFileData.value.show = true;
|
|
|
viewFileData.value.url = url;
|
|
|
viewFileData.value.type = type
|
|
|
- console.log(viewFileData.value)
|
|
|
+ // console.log(viewFileData.value)
|
|
|
}
|
|
|
function handleDownloadFile(file_url, file_name, status = true) {
|
|
|
if (status) {
|
|
@@ -259,6 +260,10 @@ watch(() => paginationData.value.currentPageSize, () => {
|
|
|
getFilesList()
|
|
|
})
|
|
|
getKnowledgeBaseById()
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ // const fileTableRef = proxy.$refs['fileTableRef']
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|