|
@@ -82,6 +82,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
<!--输入框,绑定回车事件,触发查询-->
|
|
<!--输入框,绑定回车事件,触发查询-->
|
|
<el-input style="margin-left: 30px; width: 40vw; padding-left: 10px" placeholder="搜索" v-model="searchStr" @change="searchStrChange"></el-input>
|
|
<el-input style="margin-left: 30px; width: 40vw; padding-left: 10px" placeholder="搜索" v-model="searchStr" @change="searchStrChange"></el-input>
|
|
|
|
+ <el-input style="margin-left: 30px; width: 20vw; padding-left: 10px" placeholder="问答" v-model="searchStr2" @change="searchStrChange2"></el-input>
|
|
<br><br>
|
|
<br><br>
|
|
<div></div>
|
|
<div></div>
|
|
<div style="display: flex;align-items:stretch; width: 70vw">
|
|
<div style="display: flex;align-items:stretch; width: 70vw">
|
|
@@ -145,7 +146,9 @@
|
|
|
|
|
|
|
|
|
|
<div style="margin-top: 180px"></div>
|
|
<div style="margin-top: 180px"></div>
|
|
-
|
|
|
|
|
|
+ <div v-if="searchStr2" style="margin: 10px; padding: 10px">
|
|
|
|
+ <el-input v-model="searchResStr" type="textarea" :autosize="{minRows: 1}" readonly="true"></el-input>
|
|
|
|
+ </div>
|
|
<div v-for="item in contentList">
|
|
<div v-for="item in contentList">
|
|
<el-row style="margin: 10px; padding: 10px" class="border">
|
|
<el-row style="margin: 10px; padding: 10px" class="border">
|
|
<el-col :span="16" class="contentLine">
|
|
<el-col :span="16" class="contentLine">
|
|
@@ -278,6 +281,8 @@
|
|
let vm = new Vue({
|
|
let vm = new Vue({
|
|
el: '#app',
|
|
el: '#app',
|
|
data: {
|
|
data: {
|
|
|
|
+ searchStr2: '',
|
|
|
|
+ searchResStr: '',
|
|
selectedIds: [],
|
|
selectedIds: [],
|
|
duoxuan: false,
|
|
duoxuan: false,
|
|
tmpItem: {},
|
|
tmpItem: {},
|
|
@@ -359,6 +364,17 @@
|
|
queryStr = encodeURIComponent(queryStr);
|
|
queryStr = encodeURIComponent(queryStr);
|
|
location.href = requestUtil.buildUrl(location.href, {'queryStr': queryStr})
|
|
location.href = requestUtil.buildUrl(location.href, {'queryStr': queryStr})
|
|
},
|
|
},
|
|
|
|
+ searchStrChange2() {
|
|
|
|
+ this.searchResStr = '';
|
|
|
|
+ requestUtil.async('https://wx.tianyunperfect.cn/full_search?', 'post', {'search': this.searchStr2}, {}).then(res => {
|
|
|
|
+ if (res['list']) {
|
|
|
|
+ let resList = res['list']
|
|
|
|
+ this.searchResStr = res['res'];
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
duoxuanChange() {
|
|
duoxuanChange() {
|
|
if (this.duoxuan) {
|
|
if (this.duoxuan) {
|
|
this.setDuoXuan('ok');
|
|
this.setDuoXuan('ok');
|