You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
4.8 KiB
102 lines
4.8 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>知识库管理系统</title>
|
|
<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdn.bootcdn.net/ajax/libs/bootstrap-icons/1.10.0/font/bootstrap-icons.css" rel="stylesheet">
|
|
<link href="css/style.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<!-- 侧边栏 -->
|
|
<div class="col-md-3 col-lg-2 d-md-block bg-dark sidebar collapse">
|
|
<div class="position-sticky pt-3">
|
|
<ul class="nav flex-column">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" href="#kb-list" data-bs-toggle="tab">
|
|
<i class="bi bi-book"></i> 知识库列表
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="#file-list" data-bs-toggle="tab">
|
|
<i class="bi bi-file-earmark"></i> 文件管理
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 主内容区 -->
|
|
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
|
<div class="tab-content">
|
|
<!-- 知识库管理 -->
|
|
<div class="tab-pane fade show active" id="kb-list">
|
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
<h1 class="h2">知识库管理</h1>
|
|
<button class="btn btn-primary" id="add-kb-btn">添加知识库</button>
|
|
</div>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-hover" id="kb-table">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>名称</th>
|
|
<th>描述</th>
|
|
<th>创建时间</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="kb-table-body"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 文件管理 -->
|
|
<div class="tab-pane fade" id="file-list">
|
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
<h1 class="h2">文件管理</h1>
|
|
<button class="btn btn-primary" id="upload-file-btn">上传文件</button>
|
|
</div>
|
|
<div class="mb-3">
|
|
<select class="form-select" id="kb-selector">
|
|
<option value="">-- 选择知识库 --</option>
|
|
</select>
|
|
</div>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-hover" id="file-table">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>文件名</th>
|
|
<th>大小</th>
|
|
<th>类型</th>
|
|
<th>状态</th>
|
|
<th>上传时间</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="file-table-body"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 模态框 -->
|
|
<div class="modal fade" id="kb-modal" tabindex="-1" aria-hidden="true">
|
|
<!-- 知识库添加/编辑模态框内容 -->
|
|
</div>
|
|
|
|
<div class="modal fade" id="file-modal" tabindex="-1" aria-hidden="true">
|
|
<!-- 文件上传模态框内容 -->
|
|
</div>
|
|
|
|
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://cdn.bootcdn.net/ajax/libs/axios/1.5.1/axios.min.js"></script>
|
|
<script src="js/app.js"></script>
|
|
</body>
|
|
</html> |