|
@@ -63,7 +63,7 @@
|
|
|
/>
|
|
/>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :md="20">
|
|
<el-col :md="20">
|
|
|
-<!-- <el-button style="float: left; padding: 3px 0" type="text" @click="onGetDetail">
|
|
|
|
|
|
|
+ <!-- <el-button style="float: left; padding: 3px 0" type="text" @click="onGetDetail">
|
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
|
</el-button>-->
|
|
</el-button>-->
|
|
|
<el-row>
|
|
<el-row>
|
|
@@ -145,6 +145,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import RandomUtil from '@/utils/random-util'
|
|
import RandomUtil from '@/utils/random-util'
|
|
|
import Store from '@/utils/store'
|
|
import Store from '@/utils/store'
|
|
|
|
|
+import { getWenshuDetail, wenshuQuery } from '@/api/search'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
@@ -183,12 +184,6 @@ export default {
|
|
|
// 回到顶部
|
|
// 回到顶部
|
|
|
scrollTo(0, 0)
|
|
scrollTo(0, 0)
|
|
|
},
|
|
},
|
|
|
- onGetDetail(val) {
|
|
|
|
|
- this.$message.info('get wenshu -> ' + val)
|
|
|
|
|
- this.wenshuDetail = {
|
|
|
|
|
- }
|
|
|
|
|
- this.wenshuDetailDialog = true
|
|
|
|
|
- },
|
|
|
|
|
focus() {
|
|
focus() {
|
|
|
this.isFocus = true
|
|
this.isFocus = true
|
|
|
this.historySearchList = Store.loadHistory() == null ? [] : Store.loadHistory()
|
|
this.historySearchList = Store.loadHistory() == null ? [] : Store.loadHistory()
|
|
@@ -204,7 +199,13 @@ export default {
|
|
|
clearTimeout(this.searchBoxTimeout)
|
|
clearTimeout(this.searchBoxTimeout)
|
|
|
},
|
|
},
|
|
|
searchHandler() {
|
|
searchHandler() {
|
|
|
- console.log('search data')
|
|
|
|
|
|
|
+ this.$message.info('search -> ' + this.search)
|
|
|
|
|
+ wenshuQuery(this.search).then(resp => {
|
|
|
|
|
+ if (resp.code === 0) {
|
|
|
|
|
+ console.log(resp.data)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
this.dataList.push(
|
|
this.dataList.push(
|
|
|
{
|
|
{
|
|
|
contentId: 111,
|
|
contentId: 111,
|
|
@@ -255,6 +256,17 @@ export default {
|
|
|
},
|
|
},
|
|
|
removeAllHistory() {
|
|
removeAllHistory() {
|
|
|
Store.removeAllHistory()
|
|
Store.removeAllHistory()
|
|
|
|
|
+ },
|
|
|
|
|
+ onGetDetail(val) {
|
|
|
|
|
+ getWenshuDetail(val).then(resp => {
|
|
|
|
|
+ if (resp.code === 0) {
|
|
|
|
|
+ console.log(resp.data)
|
|
|
|
|
+ this.$message.info('get wenshu -> ' + val)
|
|
|
|
|
+ this.wenshuDetail = {}
|
|
|
|
|
+ }
|
|
|
|
|
+ }).finally(() => {
|
|
|
|
|
+ this.wenshuDetailDialog = true
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|