feat: 新增后台管理入口与资源新增功能
- 首页齿轮按钮以新标签页打开后台管理,新增 Admin 路由与视图 - 资源列表支持新增版本资源,复用编辑抽屉 - 主页检索按字段映射到检索页途径(题名/关键词/责任者/出版社/综合) - 检索支持多词分词 OR 匹配,并过滤已屏蔽/下架记录 - 聚同算法改为 ISBN 优先、无 ISBN 时四要素判定,并前后端统一抽取分组逻辑 - 数据库主键改为自增序列,新增敏感词库与院校资源节点表,补充特藏与管理状态字段及样例数据序列同步
This commit is contained in:
@@ -0,0 +1,613 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
|
||||
const activeTab = ref('words')
|
||||
import {
|
||||
batchRemoveResourceNodes,
|
||||
batchRemoveSensitiveWords,
|
||||
createResourceNode,
|
||||
createSensitiveWord,
|
||||
handleHitAction,
|
||||
listResourceNodes,
|
||||
pageHits,
|
||||
pageSensitiveWords,
|
||||
removeResourceNode,
|
||||
removeSensitiveWord,
|
||||
resourceStats,
|
||||
updateResourceNode,
|
||||
updateSensitiveWord,
|
||||
type HitAction,
|
||||
type ResourceNode,
|
||||
type SensitiveHit,
|
||||
type SensitiveWord,
|
||||
} from '@/api/admin'
|
||||
|
||||
// ==================== 敏感词库 ====================
|
||||
const wordQuery = reactive({ current: 1, size: 10, keyword: '' })
|
||||
const wordList = ref<SensitiveWord[]>([])
|
||||
const wordTotal = ref(0)
|
||||
const wordLoading = ref(false)
|
||||
const wordSelection = ref<SensitiveWord[]>([])
|
||||
const wordDialog = ref(false)
|
||||
const wordSaving = ref(false)
|
||||
const wordForm = reactive<{ id?: number; word: string; pinyin: string }>({ word: '', pinyin: '' })
|
||||
|
||||
async function fetchWords() {
|
||||
wordLoading.value = true
|
||||
try {
|
||||
const page = await pageSensitiveWords({
|
||||
current: wordQuery.current,
|
||||
size: wordQuery.size,
|
||||
keyword: wordQuery.keyword || undefined,
|
||||
})
|
||||
wordList.value = page.records
|
||||
wordTotal.value = page.total
|
||||
} finally {
|
||||
wordLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function searchWords() {
|
||||
wordQuery.current = 1
|
||||
fetchWords()
|
||||
}
|
||||
|
||||
function openWordCreate() {
|
||||
wordForm.id = undefined
|
||||
wordForm.word = ''
|
||||
wordForm.pinyin = ''
|
||||
wordDialog.value = true
|
||||
}
|
||||
|
||||
function openWordEdit(row: SensitiveWord) {
|
||||
wordForm.id = row.id
|
||||
wordForm.word = row.word
|
||||
wordForm.pinyin = row.pinyin || ''
|
||||
wordDialog.value = true
|
||||
}
|
||||
|
||||
async function saveWord() {
|
||||
if (!wordForm.word.trim()) {
|
||||
ElMessage.warning('请输入敏感词')
|
||||
return
|
||||
}
|
||||
wordSaving.value = true
|
||||
try {
|
||||
const data = { word: wordForm.word.trim(), pinyin: wordForm.pinyin.trim() || undefined }
|
||||
if (wordForm.id) {
|
||||
await updateSensitiveWord(wordForm.id, data)
|
||||
} else {
|
||||
await createSensitiveWord(data)
|
||||
}
|
||||
ElMessage.success('保存成功')
|
||||
wordDialog.value = false
|
||||
fetchWords()
|
||||
} finally {
|
||||
wordSaving.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function deleteWord(row: SensitiveWord) {
|
||||
await ElMessageBox.confirm(`确认删除敏感词「${row.word}」?`, '提示', { type: 'warning' })
|
||||
await removeSensitiveWord(row.id!)
|
||||
ElMessage.success('删除成功')
|
||||
fetchWords()
|
||||
}
|
||||
|
||||
async function batchDeleteWords() {
|
||||
const ids = wordSelection.value.map((r) => r.id!)
|
||||
if (!ids.length) {
|
||||
ElMessage.warning('请先勾选要删除的敏感词')
|
||||
return
|
||||
}
|
||||
await ElMessageBox.confirm(`确认批量删除选中的 ${ids.length} 个敏感词?`, '提示', { type: 'warning' })
|
||||
await batchRemoveSensitiveWords(ids)
|
||||
ElMessage.success('批量删除成功')
|
||||
fetchWords()
|
||||
}
|
||||
|
||||
// ==================== 敏感词命中处置 ====================
|
||||
const hitQuery = reactive({ current: 1, size: 10 })
|
||||
const hitList = ref<SensitiveHit[]>([])
|
||||
const hitTotal = ref(0)
|
||||
const hitLoading = ref(false)
|
||||
const hitSelection = ref<SensitiveHit[]>([])
|
||||
|
||||
const manageStatusText: Record<number, string> = { 0: '正常', 1: '已屏蔽', 2: '已下架' }
|
||||
const manageStatusTag: Record<number, 'success' | 'warning' | 'danger'> = {
|
||||
0: 'success',
|
||||
1: 'danger',
|
||||
2: 'warning',
|
||||
}
|
||||
|
||||
async function fetchHits() {
|
||||
hitLoading.value = true
|
||||
try {
|
||||
const page = await pageHits({ current: hitQuery.current, size: hitQuery.size })
|
||||
hitList.value = page.records
|
||||
hitTotal.value = page.total
|
||||
} finally {
|
||||
hitLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function doHitAction(ids: number[], action: HitAction, label: string) {
|
||||
const count = await handleHitAction(ids, action)
|
||||
ElMessage.success(`${label}成功,共 ${count} 条`)
|
||||
fetchHits()
|
||||
}
|
||||
|
||||
async function handleHit(row: SensitiveHit, action: HitAction, label: string) {
|
||||
if (action === 'DELETE') {
|
||||
await ElMessageBox.confirm(`确认删除「${row.title}」?删除后不可恢复。`, '提示', { type: 'warning' })
|
||||
}
|
||||
await doHitAction([row.id], action, label)
|
||||
}
|
||||
|
||||
async function batchHit(action: HitAction, label: string) {
|
||||
const ids = hitSelection.value.map((r) => r.id)
|
||||
if (!ids.length) {
|
||||
ElMessage.warning('请先勾选要处置的记录')
|
||||
return
|
||||
}
|
||||
if (action === 'DELETE') {
|
||||
await ElMessageBox.confirm(`确认批量删除选中的 ${ids.length} 条记录?删除后不可恢复。`, '提示', {
|
||||
type: 'warning',
|
||||
})
|
||||
}
|
||||
await doHitAction(ids, action, `批量${label}`)
|
||||
}
|
||||
|
||||
// ==================== 院校资源库 ====================
|
||||
const nodeLoading = ref(false)
|
||||
const nodeList = ref<ResourceNode[]>([])
|
||||
const nodeSelection = ref<ResourceNode[]>([])
|
||||
const nodeDialog = ref(false)
|
||||
const nodeSaving = ref(false)
|
||||
const nodeForm = reactive<{
|
||||
id?: number
|
||||
name: string
|
||||
nodeType: string
|
||||
category: string
|
||||
linkUrl: string
|
||||
sortNo: number
|
||||
status: number
|
||||
}>({ name: '', nodeType: '', category: '', linkUrl: '', sortNo: 0, status: 1 })
|
||||
|
||||
const statDim = ref<'sourceLibrary' | 'mediaType' | 'title'>('sourceLibrary')
|
||||
const statLoading = ref(false)
|
||||
const statList = ref<{ name: string; count: number }[]>([])
|
||||
const statDims = [
|
||||
{ value: 'sourceLibrary', label: '按来源院校' },
|
||||
{ value: 'mediaType', label: '按资源类型' },
|
||||
{ value: 'title', label: '按资源名称' },
|
||||
] as const
|
||||
|
||||
async function fetchNodes() {
|
||||
nodeLoading.value = true
|
||||
try {
|
||||
nodeList.value = await listResourceNodes()
|
||||
} finally {
|
||||
nodeLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function fetchStats() {
|
||||
statLoading.value = true
|
||||
try {
|
||||
statList.value = await resourceStats(statDim.value, 50)
|
||||
} finally {
|
||||
statLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function openNodeCreate() {
|
||||
Object.assign(nodeForm, { id: undefined, name: '', nodeType: '', category: '', linkUrl: '', sortNo: 0, status: 1 })
|
||||
nodeDialog.value = true
|
||||
}
|
||||
|
||||
function openNodeEdit(row: ResourceNode) {
|
||||
Object.assign(nodeForm, {
|
||||
id: row.id,
|
||||
name: row.name,
|
||||
nodeType: row.nodeType || '',
|
||||
category: row.category || '',
|
||||
linkUrl: row.linkUrl || '',
|
||||
sortNo: row.sortNo ?? 0,
|
||||
status: row.status ?? 1,
|
||||
})
|
||||
nodeDialog.value = true
|
||||
}
|
||||
|
||||
async function saveNode() {
|
||||
if (!nodeForm.name.trim()) {
|
||||
ElMessage.warning('请输入资源节点名称')
|
||||
return
|
||||
}
|
||||
nodeSaving.value = true
|
||||
try {
|
||||
const data: ResourceNode = {
|
||||
name: nodeForm.name.trim(),
|
||||
nodeType: nodeForm.nodeType.trim() || undefined,
|
||||
category: nodeForm.category.trim() || undefined,
|
||||
linkUrl: nodeForm.linkUrl.trim() || undefined,
|
||||
sortNo: nodeForm.sortNo,
|
||||
status: nodeForm.status,
|
||||
}
|
||||
if (nodeForm.id) {
|
||||
await updateResourceNode(nodeForm.id, data)
|
||||
} else {
|
||||
await createResourceNode(data)
|
||||
}
|
||||
ElMessage.success('保存成功')
|
||||
nodeDialog.value = false
|
||||
fetchNodes()
|
||||
} finally {
|
||||
nodeSaving.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function deleteNode(row: ResourceNode) {
|
||||
await ElMessageBox.confirm(`确认删除资源节点「${row.name}」?`, '提示', { type: 'warning' })
|
||||
await removeResourceNode(row.id!)
|
||||
ElMessage.success('删除成功')
|
||||
fetchNodes()
|
||||
}
|
||||
|
||||
async function batchDeleteNodes() {
|
||||
const ids = nodeSelection.value.map((r) => r.id!)
|
||||
if (!ids.length) {
|
||||
ElMessage.warning('请先勾选要删除的资源节点')
|
||||
return
|
||||
}
|
||||
await ElMessageBox.confirm(`确认批量删除选中的 ${ids.length} 个资源节点?`, '提示', { type: 'warning' })
|
||||
await batchRemoveResourceNodes(ids)
|
||||
ElMessage.success('批量删除成功')
|
||||
fetchNodes()
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
fetchWords()
|
||||
fetchHits()
|
||||
fetchNodes()
|
||||
fetchStats()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="admin-page">
|
||||
<h2 class="page-title">后台管理</h2>
|
||||
|
||||
<el-tabs v-model="activeTab" class="admin-tabs">
|
||||
<!-- ==================== 敏感词库 ==================== -->
|
||||
<el-tab-pane label="敏感词库" name="words">
|
||||
<div class="toolbar">
|
||||
<el-input
|
||||
v-model="wordQuery.keyword"
|
||||
placeholder="按敏感词 / 拼音搜索"
|
||||
clearable
|
||||
style="width: 240px"
|
||||
@keyup.enter="searchWords"
|
||||
@clear="searchWords"
|
||||
/>
|
||||
<el-button type="primary" @click="searchWords">查询</el-button>
|
||||
<el-button type="success" @click="openWordCreate">新增敏感词</el-button>
|
||||
<el-button type="danger" plain :disabled="!wordSelection.length" @click="batchDeleteWords">
|
||||
批量删除
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<el-table
|
||||
v-loading="wordLoading"
|
||||
:data="wordList"
|
||||
border
|
||||
stripe
|
||||
@selection-change="(rows: SensitiveWord[]) => (wordSelection = rows)"
|
||||
>
|
||||
<el-table-column type="selection" width="45" />
|
||||
<el-table-column prop="word" label="敏感词(中文)" min-width="180" />
|
||||
<el-table-column prop="pinyin" label="拼音" min-width="160" />
|
||||
<el-table-column prop="createTime" label="创建时间" width="180" />
|
||||
<el-table-column label="操作" width="140" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="primary" size="small" @click="openWordEdit(row)">编辑</el-button>
|
||||
<el-button link type="danger" size="small" @click="deleteWord(row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<el-pagination
|
||||
class="pager"
|
||||
background
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="wordTotal"
|
||||
v-model:current-page="wordQuery.current"
|
||||
v-model:page-size="wordQuery.size"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
@current-change="fetchWords"
|
||||
@size-change="fetchWords"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
|
||||
<!-- ==================== 敏感词命中处置 ==================== -->
|
||||
<el-tab-pane label="敏感词命中处置" name="hits">
|
||||
<el-alert
|
||||
class="hint"
|
||||
type="info"
|
||||
:closable="false"
|
||||
title="以下元数据(题名/摘要/主题词/附注)命中了敏感词库中的词。可对单条或批量记录执行:屏蔽(检索与索引中隐藏)、下架、恢复正常、删除。"
|
||||
/>
|
||||
|
||||
<div class="toolbar">
|
||||
<el-button type="danger" plain :disabled="!hitSelection.length" @click="batchHit('MASK', '屏蔽')">
|
||||
批量屏蔽
|
||||
</el-button>
|
||||
<el-button type="warning" plain :disabled="!hitSelection.length" @click="batchHit('OFFLINE', '下架')">
|
||||
批量下架
|
||||
</el-button>
|
||||
<el-button type="success" plain :disabled="!hitSelection.length" @click="batchHit('RESTORE', '恢复正常')">
|
||||
批量恢复
|
||||
</el-button>
|
||||
<el-button type="danger" :disabled="!hitSelection.length" @click="batchHit('DELETE', '删除')">
|
||||
批量删除
|
||||
</el-button>
|
||||
<el-button @click="fetchHits">刷新</el-button>
|
||||
</div>
|
||||
|
||||
<el-table
|
||||
v-loading="hitLoading"
|
||||
:data="hitList"
|
||||
border
|
||||
stripe
|
||||
@selection-change="(rows: SensitiveHit[]) => (hitSelection = rows)"
|
||||
>
|
||||
<el-table-column type="selection" width="45" />
|
||||
<el-table-column prop="title" label="正题名" min-width="200" show-overflow-tooltip />
|
||||
<el-table-column prop="author" label="责任者" width="120" show-overflow-tooltip />
|
||||
<el-table-column prop="sourceLibrary" label="来源馆" width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="mediaType" label="媒体类型" width="90" />
|
||||
<el-table-column label="命中敏感词" min-width="150">
|
||||
<template #default="{ row }">
|
||||
<el-tag v-for="w in row.matchedWords" :key="w" size="small" type="danger" class="hit-tag">
|
||||
{{ w }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="管理状态" width="100">
|
||||
<template #default="{ row }">
|
||||
<el-tag size="small" :type="manageStatusTag[row.manageStatus ?? 0]">
|
||||
{{ manageStatusText[row.manageStatus ?? 0] }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="200" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="danger" size="small" @click="handleHit(row, 'MASK', '屏蔽')">屏蔽</el-button>
|
||||
<el-button link type="warning" size="small" @click="handleHit(row, 'OFFLINE', '下架')">下架</el-button>
|
||||
<el-button link type="success" size="small" @click="handleHit(row, 'RESTORE', '恢复正常')">恢复</el-button>
|
||||
<el-button link type="danger" size="small" @click="handleHit(row, 'DELETE', '删除')">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<el-pagination
|
||||
class="pager"
|
||||
background
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="hitTotal"
|
||||
v-model:current-page="hitQuery.current"
|
||||
v-model:page-size="hitQuery.size"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
@current-change="fetchHits"
|
||||
@size-change="fetchHits"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
|
||||
<!-- ==================== 院校资源库 ==================== -->
|
||||
<el-tab-pane label="院校资源库" name="library">
|
||||
<div class="library-grid">
|
||||
<!-- 资源数量统计 -->
|
||||
<div class="panel">
|
||||
<div class="panel-head">
|
||||
<span class="panel-title">资源数量统计</span>
|
||||
<el-radio-group v-model="statDim" size="small" @change="fetchStats">
|
||||
<el-radio-button v-for="d in statDims" :key="d.value" :value="d.value">
|
||||
{{ d.label }}
|
||||
</el-radio-button>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
<el-table v-loading="statLoading" :data="statList" border stripe max-height="480">
|
||||
<el-table-column type="index" label="#" width="50" />
|
||||
<el-table-column prop="name" label="名称" min-width="200" show-overflow-tooltip />
|
||||
<el-table-column prop="count" label="资源数量" width="100" align="right" />
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<!-- 资源节点与链接管理 -->
|
||||
<div class="panel">
|
||||
<div class="panel-head">
|
||||
<span class="panel-title">资源节点与访问链接</span>
|
||||
<div>
|
||||
<el-button type="success" size="small" @click="openNodeCreate">新增节点</el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
plain
|
||||
:disabled="!nodeSelection.length"
|
||||
@click="batchDeleteNodes"
|
||||
>
|
||||
批量删除
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
v-loading="nodeLoading"
|
||||
:data="nodeList"
|
||||
border
|
||||
stripe
|
||||
max-height="480"
|
||||
@selection-change="(rows: ResourceNode[]) => (nodeSelection = rows)"
|
||||
>
|
||||
<el-table-column type="selection" width="45" />
|
||||
<el-table-column prop="sortNo" label="顺序" width="65" align="center" />
|
||||
<el-table-column prop="name" label="节点名称" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="nodeType" label="资源类型" width="100" show-overflow-tooltip />
|
||||
<el-table-column prop="category" label="类别归属" width="110" show-overflow-tooltip />
|
||||
<el-table-column label="访问链接" min-width="160" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<a v-if="row.linkUrl" :href="row.linkUrl" target="_blank" class="link">{{ row.linkUrl }}</a>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" width="80">
|
||||
<template #default="{ row }">
|
||||
<el-tag size="small" :type="row.status === 1 ? 'success' : 'info'">
|
||||
{{ row.status === 1 ? '启用' : '停用' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="130" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="primary" size="small" @click="openNodeEdit(row)">编辑</el-button>
|
||||
<el-button link type="danger" size="small" @click="deleteNode(row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
|
||||
<!-- 敏感词 新增/编辑 弹窗 -->
|
||||
<el-dialog v-model="wordDialog" :title="wordForm.id ? '编辑敏感词' : '新增敏感词'" width="420px">
|
||||
<el-form label-width="90px">
|
||||
<el-form-item label="敏感词" required>
|
||||
<el-input v-model="wordForm.word" placeholder="中文敏感词" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="拼音">
|
||||
<el-input v-model="wordForm.pinyin" placeholder="如 migan(建议全小写无声调)" maxlength="200" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="wordDialog = false">取消</el-button>
|
||||
<el-button type="primary" :loading="wordSaving" @click="saveWord">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 资源节点 新增/编辑 弹窗 -->
|
||||
<el-dialog v-model="nodeDialog" :title="nodeForm.id ? '编辑资源节点' : '新增资源节点'" width="520px">
|
||||
<el-form label-width="90px">
|
||||
<el-form-item label="节点名称" required>
|
||||
<el-input v-model="nodeForm.name" maxlength="200" />
|
||||
</el-form-item>
|
||||
<el-form-item label="资源类型">
|
||||
<el-input v-model="nodeForm.nodeType" placeholder="如 古籍善本 / 电子文献" maxlength="50" />
|
||||
</el-form-item>
|
||||
<el-form-item label="类别归属">
|
||||
<el-input v-model="nodeForm.category" placeholder="如 军事理论类" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="访问链接">
|
||||
<el-input v-model="nodeForm.linkUrl" placeholder="http://..." maxlength="500" />
|
||||
</el-form-item>
|
||||
<el-form-item label="展示顺序">
|
||||
<el-input-number v-model="nodeForm.sortNo" :min="0" :max="9999" />
|
||||
<span class="form-tip">数值小的靠前展示</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态">
|
||||
<el-switch v-model="nodeForm.status" :active-value="1" :inactive-value="0" active-text="启用" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="nodeDialog = false">取消</el-button>
|
||||
<el-button type="primary" :loading="nodeSaving" @click="saveNode">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.admin-page {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
margin: 0 0 12px;
|
||||
font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
|
||||
font-size: 22px;
|
||||
letter-spacing: 2px;
|
||||
color: #1d3a2a;
|
||||
}
|
||||
|
||||
.admin-tabs {
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
padding: 8px 20px 20px;
|
||||
box-shadow: 0 2px 10px rgba(20, 45, 30, 0.06);
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 14px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.hint {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.pager {
|
||||
margin-top: 14px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.hit-tag {
|
||||
margin: 2px 4px 2px 0;
|
||||
}
|
||||
|
||||
.library-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.2fr;
|
||||
gap: 20px;
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.panel {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.panel-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
font-weight: 600;
|
||||
color: #1d3a2a;
|
||||
}
|
||||
|
||||
.link {
|
||||
color: var(--el-color-primary);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.form-tip {
|
||||
margin-left: 10px;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user