|
@@ -8,7 +8,6 @@
|
|
|
<van-search class='equipment-search' v-model='keyword' placeholder='请输入抽屉编号/控制回路/楼层' @search='onSearch'></van-search>
|
|
|
</div>
|
|
|
<div class='card-container'>
|
|
|
- <!-- 解决input搜索,页面卡顿的情况,将swiper抽离成组件 -->
|
|
|
<MSwiper :list='list' v-if='list.length' @itemClick='itemClick' />
|
|
|
</div>
|
|
|
<div class='info-container' v-show='list.length'>
|
|
@@ -53,8 +52,6 @@
|
|
|
import Vue from 'vue'
|
|
|
import { NavBar, Search } from 'vant'
|
|
|
Vue.use(NavBar).use(Search)
|
|
|
-import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper'
|
|
|
-import 'swiper/swiper-bundle.css'
|
|
|
import { queryDygjcxline } from '@/api/equipmentList'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { cloneDeep } from 'lodash'
|
|
@@ -64,13 +61,8 @@ export default {
|
|
|
name: 'LowVoltageCabinetDetail',
|
|
|
props: {},
|
|
|
components: {
|
|
|
- Swiper,
|
|
|
- SwiperSlide,
|
|
|
MSwiper,
|
|
|
},
|
|
|
- directives: {
|
|
|
- swiper: directive,
|
|
|
- },
|
|
|
data() {
|
|
|
return {
|
|
|
pageKey: `key_${new Date().getTime()}`,
|
|
@@ -86,8 +78,6 @@ export default {
|
|
|
...mapGetters(['plazaId', 'smsxt', 'categoryId']),
|
|
|
},
|
|
|
created() {
|
|
|
- // 将this指向swiperVm,供swiper点击事件使用
|
|
|
- // swiperVm = this
|
|
|
this.control = '步行街分区2中庭用电'
|
|
|
this.drawernum = '1-5AA-2'
|
|
|
this.floor = '1F'
|