|
@@ -38,8 +38,8 @@
|
|
|
:key='item.category_name'
|
|
|
@click.native='goToEquipment(item)'
|
|
|
/>
|
|
|
- <!-- 更多主要设备 -->
|
|
|
- <m-card class='card' :type='4' name unit v-if='!showMoreCardList' :total='0' @click.native='goToMoreEquipment' />
|
|
|
+ <!-- 更多主要设备,有moreCardList时才显示 -->
|
|
|
+ <m-card class='card' :type='4' name unit v-if='moreCardList.length && !showMoreCardList' :total='0' @click.native='goToMoreEquipment' />
|
|
|
<m-card
|
|
|
v-show='moreCardList.length && showMoreCardList'
|
|
|
class='card'
|
|
@@ -207,6 +207,11 @@ export default {
|
|
|
}
|
|
|
this.getTuliData({ smsxt: newV, system_code: dict[newV] })
|
|
|
}
|
|
|
+ // 八大系统,查询更多主要设备列表
|
|
|
+ let smsxtArr1 = ['1001', '1002', '1003', '1004', '1005', '1006', '1007', '1008']
|
|
|
+ if (smsxtArr1.includes(newV)) {
|
|
|
+ this.getMoreCardList()
|
|
|
+ }
|
|
|
},
|
|
|
immediate: true,
|
|
|
},
|
|
@@ -637,6 +642,12 @@ export default {
|
|
|
*/
|
|
|
async goToMoreEquipment(e) {
|
|
|
this.showMoreCardList = true
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 查询更多主要设备
|
|
|
+ */
|
|
|
+ async getMoreCardList() {
|
|
|
+ // console.log('getMoreCardList')
|
|
|
let getParams = {
|
|
|
plazaId: this.plazaId,
|
|
|
system_code: this.smsxt,
|
|
@@ -644,6 +655,7 @@ export default {
|
|
|
let res = await queryMoreSystemCard({ getParams })
|
|
|
console.log(res)
|
|
|
if (!res?.data) {
|
|
|
+ this.moreCardList = []
|
|
|
return false
|
|
|
}
|
|
|
let moreCardList = res.data
|