Commit 80a9e5e4 authored by yaya's avatar yaya

feat: 数据分析必须输入关键字

parent 29f0d82b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="filter-container"> <div class="filter-container">
<div class="filter-item"> <div class="filter-item">
<el-input v-model="listQuery.keyword" clearable size="mini" class="filter-item" style="width: 200px;margin-right: 10px" placeholder="请输入关键词"/> <el-input v-model="listQuery.keyword" clearable size="mini" class="filter-item" style="width: 200px;margin-right: 10px" placeholder="请输入关键词"/>
<el-button size="mini" class="filter-item" type="primary" @click="getList">查询</el-button> <el-button size="mini" class="filter-item" type="primary" @click="handlerGetList">查询</el-button>
</div> </div>
<div class="filter-item"> <div class="filter-item">
<div class="filter-item__title" style="margin-right: 10px">笔记分类:</div> <div class="filter-item__title" style="margin-right: 10px">笔记分类:</div>
...@@ -130,18 +130,19 @@ export default { ...@@ -130,18 +130,19 @@ export default {
this.showDetail = true this.showDetail = true
}, },
handlerGetList() {
if (!this.listQuery.keyword) {
this.$message.error('请输入关键字')
return
}
this.getList()
},
getList() { getList() {
if (!this.listQuery.keyword) {
this.listLoading = false
return
}
this.listLoading = true this.listLoading = true
// this.listLoading = true
// findNoteSoareData(this.listQuery).then(response => {
// this.list = response.data.data.dataList
// this.total = response.data.data.total
// this.listLoading = false
// }).catch((e) => {
// this.list = []
// this.total = 0
// this.listLoading = false
// })
axios.post('http://xhs-py.wanwudezhi.work/countKeyword', axios.post('http://xhs-py.wanwudezhi.work/countKeyword',
this.listQuery) this.listQuery)
.then(res => { .then(res => {
......
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