|
@@ -44,8 +44,8 @@
|
|
<transition name="fade">
|
|
<transition name="fade">
|
|
<div class="searchcon" v-if="showInput">
|
|
<div class="searchcon" v-if="showInput">
|
|
<img :src="require('@/assets/images/icon/label_search.png')" alt="">
|
|
<img :src="require('@/assets/images/icon/label_search.png')" alt="">
|
|
- <input v-model="searchKey" type="text" placeholder="请输入藏品名称">
|
|
|
|
- <span @click="showInput=false,searchKey=''">取消</span>
|
|
|
|
|
|
+ <input v-model="inputKey" type="text" placeholder="请输入藏品名称">
|
|
|
|
+ <span @click="showInput=false,inputKey=''">取消</span>
|
|
</div>
|
|
</div>
|
|
</transition>
|
|
</transition>
|
|
|
|
|
|
@@ -74,7 +74,7 @@ export default {
|
|
const containerId = ref("vuemasonry");
|
|
const containerId = ref("vuemasonry");
|
|
const currentMuseum = ref("");
|
|
const currentMuseum = ref("");
|
|
|
|
|
|
- const searchKey = ref("");
|
|
|
|
|
|
+ const inputKey = ref("");
|
|
const currentAge = ref("");
|
|
const currentAge = ref("");
|
|
const currentType = ref("");
|
|
const currentType = ref("");
|
|
const busy = ref(false)
|
|
const busy = ref(false)
|
|
@@ -129,7 +129,7 @@ export default {
|
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
- return { ages, types, menu, currentAge, menuActive, currentType, searchKey, busy, currentMuseum }
|
|
|
|
|
|
+ return { ages, types, menu, currentAge, menuActive, currentType, inputKey, busy, currentMuseum }
|
|
},
|
|
},
|
|
components: { showCollection, mb_select },
|
|
components: { showCollection, mb_select },
|
|
|
|
|
|
@@ -147,7 +147,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- searchKey() {
|
|
|
|
|
|
+ inputKey() {
|
|
this.getData(true)
|
|
this.getData(true)
|
|
},
|
|
},
|
|
currentAge() {
|
|
currentAge() {
|
|
@@ -179,7 +179,7 @@ export default {
|
|
"type": this.menuActive,
|
|
"type": this.menuActive,
|
|
"pageNum": this.paging.pageNum,
|
|
"pageNum": this.paging.pageNum,
|
|
"pageSize": this.paging.pageSize,
|
|
"pageSize": this.paging.pageSize,
|
|
- "searchKey": this.searchKey,
|
|
|
|
|
|
+ "searchKey": this.inputKey,
|
|
"textureId": this.currentType,
|
|
"textureId": this.currentType,
|
|
}, data => {
|
|
}, data => {
|
|
this.busy = false
|
|
this.busy = false
|