shaogen1995 2 years ago
parent
commit
4388a603b0

+ 5 - 5
code/src/views/collection/index.vue

@@ -30,7 +30,7 @@
           </ui-select>
 
           <ui-search
-            v-model="searchKey"
+            v-model="inputKey"
             :placeholder="'请输入藏品名称'"
           ></ui-search>
         </div>
@@ -121,7 +121,7 @@ export default {
     //   },
     // });
 
-    const searchKey = ref("");
+    const inputKey = ref("");
     const currentAge = ref("");
     const currentType = ref("");
 
@@ -224,7 +224,7 @@ export default {
       currentAge,
       menuActive,
       currentType,
-      searchKey,
+      inputKey,
       busy,
       museumList,
     };
@@ -244,7 +244,7 @@ export default {
   },
 
   watch: {
-    searchKey() {
+    inputKey() {
       this.getData(true);
     },
     currentAge() {
@@ -278,7 +278,7 @@ export default {
           type: this.menuActive,
           pageNum: this.paging.pageNum,
           pageSize: this.paging.pageSize,
-          searchKey: this.searchKey,
+          searchKey: this.inputKey,
           textureId: this.currentType,
         },
         (data) => {

+ 7 - 7
code/src/views/collection/mobile.vue

@@ -84,7 +84,7 @@
       <transition name="fade">
         <div class="searchcon" v-if="showInput">
           <img :src="require('@/assets/images/icon/label_search.png')" alt="" />
-          <input v-model="searchKey" type="text" placeholder="请输入藏品名称" />
+          <input v-model="inputKey" type="text" placeholder="请输入藏品名称" />
           <span @click="showInput = false">取消</span>
         </div>
       </transition>
@@ -134,8 +134,8 @@
       <transition name="fade">
         <div class="searchcon" v-if="showInput">
           <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>
       </transition>
     </div>
@@ -172,7 +172,7 @@ export default {
   setup(props) {
     const containerId = ref("vuemasonry");
 
-    const searchKey = ref("");
+    const inputKey = ref("");
     const currentAge = ref("");
     const currentType = ref("");
     const currentMuseum = ref("");
@@ -270,7 +270,7 @@ export default {
       currentAge,
       menuActive,
       currentType,
-      searchKey,
+      inputKey,
       busy,
     };
   },
@@ -290,7 +290,7 @@ export default {
     };
   },
   watch: {
-    searchKey() {
+    inputKey() {
       this.getData(true);
     },
     currentAge() {
@@ -324,7 +324,7 @@ export default {
           type: this.menuActive,
           pageNum: this.paging.pageNum,
           pageSize: this.paging.pageSize,
-          searchKey: this.searchKey,
+          searchKey: this.inputKey,
           textureId: this.currentType,
         },
         (data) => {

+ 5 - 5
code/src/views/exhibition/exhibition/collections.vue

@@ -29,7 +29,7 @@
         </ui-select>
 
         <ui-search
-          v-model="searchKey"
+          v-model="inputKey"
           :placeholder="'请输入藏品名称'"
         ></ui-search>
       </div>
@@ -120,7 +120,7 @@ export default {
     //   },
     // });
 
-    const searchKey = ref("");
+    const inputKey = ref("");
     const currentAge = ref("");
     const currentType = ref("");
 
@@ -232,7 +232,7 @@ export default {
       currentAge,
       menuActive,
       currentType,
-      searchKey,
+      inputKey,
       busy,
       museumList,
     };
@@ -252,7 +252,7 @@ export default {
   },
 
   watch: {
-    searchKey() {
+    inputKey() {
       this.getData(true);
     },
     currentAge() {
@@ -286,7 +286,7 @@ export default {
           type: this.menuActive,
           pageNum: this.paging.pageNum,
           pageSize: this.paging.pageSize,
-          searchKey: this.searchKey,
+          searchKey: this.inputKey,
           textureId: this.currentType,
         },
         (data) => {

+ 6 - 6
code/src/views/exhibition/exhibition/mobile/collections.vue

@@ -44,8 +44,8 @@
       <transition name="fade">
         <div class="searchcon" v-if="showInput">
           <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>
       </transition>
 
@@ -74,7 +74,7 @@ export default {
     const containerId = ref("vuemasonry");
     const currentMuseum = ref("");
 
-    const searchKey = ref("");
+    const inputKey = ref("");
     const currentAge = ref("");
     const currentType = ref("");
     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 },
 
@@ -147,7 +147,7 @@ export default {
     }
   },
   watch: {
-    searchKey() {
+    inputKey() {
       this.getData(true)
     },
     currentAge() {
@@ -179,7 +179,7 @@ export default {
         "type": this.menuActive,
         "pageNum": this.paging.pageNum,
         "pageSize": this.paging.pageSize,
-        "searchKey": this.searchKey,
+        "searchKey": this.inputKey,
         "textureId": this.currentType,
       }, data => {
         this.busy = false

+ 4 - 4
code/src/views/exhibition/exhibition/mobile/permanent.vue

@@ -25,7 +25,7 @@
       <transition name="fade">
         <div class="searchcon" v-if="showInput">
           <img :src="require('@/assets/images/icon/label_search.png')" alt="">
-          <input v-model="searchKey" type="text" placeholder="请输入展览名称">
+          <input v-model="inputKey" type="text" placeholder="请输入展览名称">
           <span @click="showInput=false">取消</span>
         </div>
       </transition>
@@ -41,7 +41,7 @@ import mb_select from "@/components/mb_select";
 import { getExhibitionList, getMuseumList ,getMuseumListOrInfoAPI} from "@/config/api";
 
 
-const searchKey = ref("");
+const inputKey = ref("");
 
 const showInput = ref(false)
 const busy = ref(false)
@@ -68,7 +68,7 @@ let paging = ref({
 });
 
 
-watch(searchKey, () => {
+watch(inputKey, () => {
   getData(true)
 });
 
@@ -92,7 +92,7 @@ const getData = (reset = null) => {
     "pageNum": paging.value.pageNum,
     "pageSize": paging.value.pageSize,
     "museumId": currentMuseum.value,
-    "searchKey": searchKey.value,
+    "searchKey": inputKey.value,
     "type": ""
   }, data => {
     if (data.data.total <= list.value.length) {

+ 4 - 4
code/src/views/exhibition/exhibition/permanent.vue

@@ -12,7 +12,7 @@
       </ui-select>
 
       <ui-search
-        v-model="searchKey"
+        v-model="inputKey"
         :placeholder="'请输入展览名称'"
       ></ui-search>
     </div>
@@ -45,7 +45,7 @@ import {
   getMuseumListOrInfoAPI,
 } from "@/config/api";
 
-const searchKey = ref("");
+const inputKey = ref("");
 
 const currentMuseum = ref("");
 
@@ -72,7 +72,7 @@ let paging = ref({
   current: 1,
 });
 
-watch(searchKey, () => {
+watch(inputKey, () => {
   getData(true);
 });
 
@@ -99,7 +99,7 @@ const getData = (reset = null) => {
       pageNum: paging.value.pageNum,
       pageSize: paging.value.pageSize,
       museumId: currentMuseum.value,
-      searchKey: searchKey.value,
+      searchKey: inputKey.value,
       type: "",
     },
     (data) => {

+ 5 - 5
code/src/views/gdmuseum/exhibition/collections.vue

@@ -19,7 +19,7 @@
         </ui-select>
 
         <ui-search
-          v-model="searchKey"
+          v-model="inputKey"
           :placeholder="'请输入藏品名称'"
         ></ui-search>
       </div>
@@ -91,7 +91,7 @@ export default {
   setup() {
     const containerId = ref("vuemasonry");
 
-    const searchKey = ref("");
+    const inputKey = ref("");
     const currentAge = ref("");
     const currentType = ref("");
 
@@ -155,7 +155,7 @@ export default {
       currentAge,
       menuActive,
       currentType,
-      searchKey,
+      inputKey,
       busy,
     };
   },
@@ -174,7 +174,7 @@ export default {
   },
 
   watch: {
-    searchKey() {
+    inputKey() {
       this.getData(true);
     },
     currentAge() {
@@ -200,7 +200,7 @@ export default {
           type: this.menuActive,
           pageNum: this.paging.pageNum,
           pageSize: this.paging.pageSize,
-          searchKey: this.searchKey,
+          searchKey: this.inputKey,
           textureId: this.currentType,
         },
         (data) => {

+ 6 - 6
code/src/views/gdmuseum/exhibition/mobile/collections.vue

@@ -44,8 +44,8 @@
       <transition name="fade">
         <div class="searchcon" v-if="showInput">
           <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>
       </transition>
 
@@ -72,7 +72,7 @@ export default {
   setup() {
     const containerId = ref("vuemasonry");
 
-    const searchKey = ref("");
+    const inputKey = ref("");
     const currentAge = ref("");
     const currentType = ref("");
     const busy = ref(false)
@@ -125,7 +125,7 @@ export default {
       })
     })
 
-    return { ages, types, menu, currentAge, menuActive, currentType, searchKey, busy }
+    return { ages, types, menu, currentAge, menuActive, currentType, inputKey, busy }
   },
   components: { showCollection, mb_select },
 
@@ -143,7 +143,7 @@ export default {
     }
   },
   watch: {
-    searchKey() {
+    inputKey() {
       this.getData(true)
     },
     currentAge() {
@@ -171,7 +171,7 @@ export default {
         "type": this.menuActive,
         "pageNum": this.paging.pageNum,
         "pageSize": this.paging.pageSize,
-        "searchKey": this.searchKey,
+        "searchKey": this.inputKey,
         "textureId": this.currentType,
       }, data => {
         this.busy = false

+ 4 - 4
code/src/views/gdmuseum/exhibition/mobile/permanent.vue

@@ -26,7 +26,7 @@
       <transition name="fade">
         <div class="searchcon" v-if="showInput">
           <img :src="require('@/assets/images/icon/label_search.png')" alt="">
-          <input v-model="searchKey" type="text" placeholder="请输入展览名称">
+          <input v-model="inputKey" type="text" placeholder="请输入展览名称">
           <span @click="showInput=false">取消</span>
         </div>
       </transition>
@@ -41,7 +41,7 @@ import mb_select from "@/components/mb_select";
 import { getExhibitionList } from "@/config/api";
 
 
-const searchKey = ref("");
+const inputKey = ref("");
 
 const showInput = ref(false)
 const busy = ref(false)
@@ -55,7 +55,7 @@ let paging = ref({
   current: 1,
 });
 
-watch(searchKey, () => {
+watch(inputKey, () => {
   getData(true)
 });
 
@@ -72,7 +72,7 @@ const getData = (reset = null) => {
     "museumId": 1,
     "pageNum": paging.value.pageNum,
     "pageSize": paging.value.pageSize,
-    "searchKey": searchKey.value,
+    "searchKey": inputKey.value,
     "type": "long"
   }, data => {
     if (data.data.total <= list.value.length) {

+ 4 - 4
code/src/views/gdmuseum/exhibition/mobile/review.vue

@@ -26,7 +26,7 @@
       <transition name="fade">
         <div class="searchcon" v-if="showInput">
           <img :src="require('@/assets/images/icon/label_search.png')" alt="">
-          <input v-model="searchKey" type="text" placeholder="请输入展览名称">
+          <input v-model="inputKey" type="text" placeholder="请输入展览名称">
           <span @click="showInput=false">取消</span>
         </div>
       </transition>
@@ -41,7 +41,7 @@ import mb_select from "@/components/mb_select";
 import { getExhibitionList } from "@/config/api";
 
 
-const searchKey = ref("");
+const inputKey = ref("");
 
 const showInput = ref(false)
 const busy = ref(false)
@@ -55,7 +55,7 @@ let paging = ref({
   current: 1,
 });
 
-watch(searchKey, () => {
+watch(inputKey, () => {
   getData(true)
 });
 
@@ -72,7 +72,7 @@ const getData = (reset = null) => {
     "museumId": 1,
     "pageNum": paging.value.pageNum,
     "pageSize": paging.value.pageSize,
-    "searchKey": searchKey.value,
+    "searchKey": inputKey.value,
     "type": "end"
   }, data => {
     if (data.data.total <= list.value.length) {

+ 4 - 4
code/src/views/gdmuseum/exhibition/mobile/temporary.vue

@@ -26,7 +26,7 @@
       <transition name="fade">
         <div class="searchcon" v-if="showInput">
           <img :src="require('@/assets/images/icon/label_search.png')" alt="">
-          <input v-model="searchKey" type="text" placeholder="请输入展览名称">
+          <input v-model="inputKey" type="text" placeholder="请输入展览名称">
           <span @click="showInput=false">取消</span>
         </div>
       </transition>
@@ -41,7 +41,7 @@ import mb_select from "@/components/mb_select";
 import { getExhibitionList } from "@/config/api";
 
 
-const searchKey = ref("");
+const inputKey = ref("");
 
 const showInput = ref(false)
 const busy = ref(false)
@@ -55,7 +55,7 @@ let paging = ref({
   current: 1,
 });
 
-watch(searchKey, () => {
+watch(inputKey, () => {
   getData(true)
 });
 
@@ -72,7 +72,7 @@ const getData = (reset = null) => {
     "museumId": 1,
     "pageNum": paging.value.pageNum,
     "pageSize": paging.value.pageSize,
-    "searchKey": searchKey.value,
+    "searchKey": inputKey.value,
     "type": "temp"
   }, data => {
     if (data.data.total <= list.value.length) {

+ 4 - 4
code/src/views/gdmuseum/exhibition/permanent.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="temporary">
-    <ui-search v-model="searchKey" :placeholder="'请输入展览名称'"></ui-search>
+    <ui-search v-model="inputKey" :placeholder="'请输入展览名称'"></ui-search>
     <div class="searchNone" v-if="list.length === 0">
       <img src="@/assets/images/resource/searchNone.svg" alt="" />
       <p>暂时没有数据</p>
@@ -27,7 +27,7 @@ import { defineEmits, onMounted, watch, nextTick, ref } from "vue";
 import exItem from "@/components/exItem";
 import { getExhibitionList } from "@/config/api";
 
-const searchKey = ref("");
+const inputKey = ref("");
 
 const busy = ref(false);
 
@@ -39,7 +39,7 @@ let paging = ref({
   current: 1,
 });
 
-watch(searchKey, () => {
+watch(inputKey, () => {
   getData(true);
 });
 
@@ -56,7 +56,7 @@ const getData = (reset = null) => {
       pageNum: paging.value.pageNum,
       pageSize: paging.value.pageSize,
       museumId: 1,
-      searchKey: searchKey.value,
+      searchKey: inputKey.value,
       type: "long",
     },
     (data) => {

+ 4 - 4
code/src/views/gdmuseum/exhibition/review.vue

@@ -7,7 +7,7 @@
         </template>
       </ui-select> -->
 
-      <ui-search v-model="searchKey" :placeholder="'请输入展览名称'"></ui-search>
+      <ui-search v-model="inputKey" :placeholder="'请输入展览名称'"></ui-search>
     <!-- </div> -->
     <div class="searchNone" v-if="list.length === 0">
       <img src="@/assets/images/resource/searchNone.svg" alt="" />
@@ -28,7 +28,7 @@ import { defineProps, onMounted, watch, nextTick, ref } from "vue";
 import exItem from "@/components/exItem";
 import { getExhibitionList, getAge } from "@/config/api";
 
-const searchKey = ref("");
+const inputKey = ref("");
 const currentAge = ref("");
 
 const props = defineProps()
@@ -47,7 +47,7 @@ let paging = ref({
   current: 1,
 });
 
-watch(searchKey, () => {
+watch(inputKey, () => {
   getData(true)
 });
 
@@ -68,7 +68,7 @@ const getData = (reset = null) => {
     "cityId": 1,
     "pageNum": paging.value.pageNum,
     "pageSize": paging.value.pageSize,
-    "searchKey": searchKey.value,
+    "searchKey": inputKey.value,
     "type": "end"
   }, data => {
     if (data.data.total <= list.value.length) {

+ 4 - 4
code/src/views/gdmuseum/exhibition/temporary.vue

@@ -7,7 +7,7 @@
         </template>
       </ui-select> -->
 
-    <ui-search v-model="searchKey" :placeholder="'请输入展览名称'"></ui-search>
+    <ui-search v-model="inputKey" :placeholder="'请输入展览名称'"></ui-search>
     <!-- </div> -->
     <div class="searchNone" v-if="list.length === 0">
       <img src="@/assets/images/resource/searchNone.svg" alt="" />
@@ -34,7 +34,7 @@ import { defineProps, onMounted, watch, nextTick, ref } from "vue";
 import exItem from "@/components/exItem";
 import { getExhibitionList, getAge } from "@/config/api";
 
-const searchKey = ref("");
+const inputKey = ref("");
 const currentAge = ref("");
 
 const props = defineProps();
@@ -52,7 +52,7 @@ let paging = ref({
   current: 1,
 });
 
-watch(searchKey, () => {
+watch(inputKey, () => {
   getData(true);
 });
 
@@ -73,7 +73,7 @@ const getData = (reset = null) => {
       cityId: 1,
       pageNum: paging.value.pageNum,
       pageSize: paging.value.pageSize,
-      searchKey: searchKey.value,
+      searchKey: inputKey.value,
       type: "temp",
     },
     (data) => {

+ 3 - 3
code/src/views/home/aside.vue

@@ -58,7 +58,7 @@
     <div class="search">
       <input
         @keydown.enter="search"
-        v-model="searchkey"
+        v-model="inputKey"
         type="text"
         placeholder="请输入关键字查询"
       />
@@ -102,7 +102,7 @@ const onClickSidebarItem = (item) => {
   }
 };
 
-const searchkey = ref("");
+const inputKey = ref("");
 
 const onClickItem = (data) => {
   if (currentId.value == "museum") {
@@ -120,7 +120,7 @@ const getList = (cityId = "") => {
       cityId: cityId,
       pageNum: 1,
       pageSize: 1000,
-      searchKey: searchkey.value,
+      searchKey: inputKey.value,
     },
     (data) => {
       data.data.records.forEach((item) => {

+ 3 - 3
code/src/views/home/maside.vue

@@ -14,7 +14,7 @@
         </div>
         <div class="search">
           <input
-            v-model="searchkey"
+            v-model="inputKey"
             type="text"
             placeholder="请输入关键字查询"
           />
@@ -93,7 +93,7 @@ const router = useRouter();
 const route = useRoute();
 const isShow = ref(false);
 const currentId = ref("museum");
-const searchkey = ref("");
+const inputKey = ref("");
 
 const charStrs = ref("");
 
@@ -136,7 +136,7 @@ const getList = (cityId = "") => {
       cityId: cityId,
       pageNum: 1,
       pageSize: 1000,
-      searchKey: searchkey.value,
+      searchKey: inputKey.value,
     },
     (data) => {