|
@@ -97,7 +97,7 @@
|
|
|
<!-- 检查项目2 -->
|
|
<!-- 检查项目2 -->
|
|
|
<div class="card" v-if="selectArea">
|
|
<div class="card" v-if="selectArea">
|
|
|
<van-collapse v-model="activeNames" v-for="v in checkList" :key="v.itemid">
|
|
<van-collapse v-model="activeNames" v-for="v in checkList" :key="v.itemid">
|
|
|
- <van-collapse-item :title="v.itemname" name="1" >
|
|
|
|
|
|
|
+ <van-collapse-item :title="v.itemname" :name="v.itemname" >
|
|
|
<div v-for="(item,index) in v.checkitemlist" :key="item.pointdataid">
|
|
<div v-for="(item,index) in v.checkitemlist" :key="item.pointdataid">
|
|
|
<van-cell :title="item.pointname">
|
|
<van-cell :title="item.pointname">
|
|
|
<template #right-icon>
|
|
<template #right-icon>
|
|
@@ -303,8 +303,12 @@ export default {
|
|
|
})
|
|
})
|
|
|
this.selectArea = area;
|
|
this.selectArea = area;
|
|
|
this.checkList = area.checklist;
|
|
this.checkList = area.checklist;
|
|
|
|
|
+ //设置默认展开项
|
|
|
|
|
+ this.activeNames = this.checkList.map(v=>v.itemname);
|
|
|
//this.NFCList = area.nfclist;
|
|
//this.NFCList = area.nfclist;
|
|
|
|
|
+ //获取当前区域检查项数量
|
|
|
this.getCheckItemNum();
|
|
this.getCheckItemNum();
|
|
|
|
|
+ //获取当前区域nfc数量
|
|
|
this.getNFCItemNum();
|
|
this.getNFCItemNum();
|
|
|
},
|
|
},
|
|
|
//获取当前区域检查项数量
|
|
//获取当前区域检查项数量
|