Commit c4e700d3 authored by Administrator's avatar Administrator

更新知识库

parent baecd915
......@@ -36,7 +36,7 @@ const meetemergencyRoutes = {
meta: { title: '案例库', icon: 'chart', permissions: ['manage admin'] },
}, {
path: 'zhishi',
component: () => import('@/views/meetemergency/zhishi'),
component: () => import('@/views/meetemergency/knowledge/index'),
name: 'zhishi',
meta: { title: '知识库', icon: 'chart', permissions: ['manage admin'] },
}],
......
<template>
<div class="app-container">
<div class="filter-container">
<el-form ref="query" style="display: inline-block;">
<el-input placeholder="知识库编号" clearable style="width: 200px;" class="filter-item" name="userskk" />
<el-input placeholder="文件标题" clearable style="width: 200px;" class="filter-item" name="userskk" />
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search">
{{ $t('table.search') }}
</el-button>
<el-button v-waves class="filter-item" type="primary" icon="el-icon-plus">
{{ $t('table.add') }}
</el-button>
</el-form>
<el-button v-waves class="filter-item" type="primary" icon="el-icon-download">
{{ $t('table.export') }}
</el-button>
<el-button v-waves class="filter-item" type="primary" icon="el-icon-upload">
导入
</el-button>
</div>
<el-table :data="tableData" border style="width: 100%">
<el-table-column prop="repository_number" label="知识库编号" width="150"></el-table-column>
<el-table-column prop="title" label="标题" width="150"></el-table-column>
<el-table-column prop="description" label="描述"></el-table-column>
<el-table-column label="文件" width="200">
<template slot-scope="scope">
<el-link prop="success">{{ scope.row.file }}</el-link>
</template>
</el-table-column>
<el-table-column prop="date" label="日期" width="150"></el-table-column>
<el-table-column fixed="right" label="操作" width="150">
<template slot-scope="scope">
<el-button size="mini" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
<el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
import waves from '@/directive/waves'; // 水波纹效果
export default {
directives: { waves },
data() {
return {
tableData: [{
repository_number: 'ZS201605020303',
title: '家用报警器说明书',
description: 'XT-8800G10-B 使用说明书 1 系统前言 无线 GSM 智能商用/家用报警系统,它采用进口微处理器,结合先进的 GSM 数字信号处 理技术,创新研制的 GSM 无线移动.',
file: '家用报警器说明书.doc',
date: '2016-05-04 12:55',
}, {
repository_number: 'ZS201605020304',
title: '家用燃气报警器规范',
description: '家用燃气泄漏报警器 本标准规定了家用燃气泄漏报警器的技术要求、试验方法、检验规则、标志、包装、运 输和储存。 本标准适用于人工燃气、天然气、液化石油...',
file: '家用燃气报警器规范.doc',
date: '2016-05-04 12:55',
}, {
repository_number: 'ZS201605020305',
title: '家用燃气泄漏报警器的设计定稿版',
description: '家用燃气泄漏报警器的 设计 HUA system office room 【HUA16H-TTMS2A-HUAS8Q8-HUAH1688】 南京邮电大学高等教育自学考试 专接本专业 毕 业 设 计 (论文) 设...',
file: '家用燃气泄漏报警器的设计定稿版.doc',
date: '2016-05-04 12:55',
}, {
repository_number: 'ZS201605020306',
title: '家庭住户报警系统介绍',
description: '家庭住户报警系统介绍_电脑基础知识_IT/计算机_专业资料。精品文档第五章 家庭住户报警系统 1. 概述家庭自动化系统是适应现代生活对家庭功能逐渐增长的需求发展起来的...',
file: '家庭住户报警系统介绍.doc',
date: '2016-05-04 12:55',
}],
};
},
methods: {
handleEdit(index, row) {
console.log(index, row);
},
handleDelete(index, row) {
console.log(index, row);
},
handleClick(row) {
console.log(row);
},
},
};
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment