|
@@ -45,7 +45,7 @@ import Vue from 'vue'
|
|
|
import { Cell, Toast } from 'vant'
|
|
|
Vue.use(Cell).use(Toast)
|
|
|
import { mapGetters, mapMutations } from 'vuex'
|
|
|
-import { querySystemCount, querySystemImage } from '@/api/equipmentList'
|
|
|
+import { querySystemCount, querySystemCard, querySystemImage } from '@/api/equipmentList'
|
|
|
|
|
|
import MCard from '@/components/equipmentFacilities/Card'
|
|
|
import SystemMenu from '@/components/systemMenu'
|
|
@@ -123,6 +123,7 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
listKey: `list_${new Date().getTime()}`,
|
|
|
+ cardList: [],
|
|
|
showRight: false, //是否显示右侧内容
|
|
|
showImgPreview: false, //是否展示图片预览
|
|
|
imgList: [], //图片数组
|
|
@@ -140,7 +141,8 @@ export default {
|
|
|
this.SETCATEGORYID('GDXT')
|
|
|
this.SETSMSXT('1001')
|
|
|
this.showRight = false
|
|
|
- await this.getPicCount()
|
|
|
+ // 查询图片数量,设备卡片
|
|
|
+ await Promise.all([this.getPicCount(), this.getCard()])
|
|
|
this.showRight = true
|
|
|
// this.changeSystem(initSys)
|
|
|
},
|
|
@@ -159,11 +161,14 @@ export default {
|
|
|
this.currentSmsxt = smsxt
|
|
|
this.systemText = text + '系统'
|
|
|
/**
|
|
|
- * 查询图片数量
|
|
|
+ * 查询图片数量,设备卡片
|
|
|
*/
|
|
|
- await this.getPicCount()
|
|
|
+ await Promise.all([this.getPicCount(), this.getCard()])
|
|
|
this.showRight = true
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 查询图片梳理
|
|
|
+ */
|
|
|
async getPicCount() {
|
|
|
let getParams = {
|
|
|
plazaId: this.plazaId,
|
|
@@ -256,6 +261,29 @@ export default {
|
|
|
Toast.clear()
|
|
|
console.log(this.listData)
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 查询设备卡片
|
|
|
+ */
|
|
|
+ async getCard() {
|
|
|
+ this.cardList = []
|
|
|
+ let getParams = {
|
|
|
+ plazaId: this.plazaId,
|
|
|
+ smsxt: this.smsxt,
|
|
|
+ }
|
|
|
+ let res
|
|
|
+ try {
|
|
|
+ res = await querySystemCard({ getParams })
|
|
|
+ } catch (error) {}
|
|
|
+ console.log('设备卡片')
|
|
|
+ console.log(res.data)
|
|
|
+ if (!res && !res?.data?.length) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ let data = res.data
|
|
|
+ // 取出assetTypeList
|
|
|
+ let cardList = data[0]?.assetTypeList || []
|
|
|
+ console.log(cardList)
|
|
|
+ },
|
|
|
handleClick(item) {
|
|
|
switch (item.dataType) {
|
|
|
// 原理图
|