|
|
@@ -53,7 +53,7 @@ function findChildren(id: number) {
|
|
|
}
|
|
|
|
|
|
function findName(name: string) {
|
|
|
- find({name, size: 10, findParents: false, findChildren: false})
|
|
|
+ find({name, size: 10, findParents: false, findChildren: true})
|
|
|
}
|
|
|
|
|
|
function searchSubject(name: string) {
|
|
|
@@ -199,10 +199,11 @@ onMounted(() => {
|
|
|
|
|
|
<template>
|
|
|
<div class="search-box">
|
|
|
+ <span class="search-box-subjectName">学科名称</span>
|
|
|
<a-input-search
|
|
|
v-model:value="keyword"
|
|
|
- placeholder="请输入关键词进行搜索"
|
|
|
- enter-button="查 询"
|
|
|
+ placeholder="请输入学科名称"
|
|
|
+ enter-button
|
|
|
size="large"
|
|
|
@search="onSearch"
|
|
|
/>
|
|
|
@@ -244,6 +245,12 @@ onMounted(() => {
|
|
|
width: 65%;
|
|
|
margin: 0 auto;
|
|
|
margin-top: 20px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .search-box-subjectName {
|
|
|
+ display: block;
|
|
|
+ width: 6rem;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.graph-container {
|