|
@@ -2,7 +2,7 @@
|
|
<template>
|
|
<template>
|
|
<view id="fingerprint">
|
|
<view id="fingerprint">
|
|
<view class="fingerprint_one" v-if="pageType==1">
|
|
<view class="fingerprint_one" v-if="pageType==1">
|
|
- <view class="fingerprint_one_li" @click="goPage('add')" v-for="item in fingerprintList">
|
|
|
|
|
|
+ <view class="fingerprint_one_li" @click="goPage('add')" v-for="(item,index) in fingerprintList" :key="index">
|
|
<view class="fingerprint_one_li_l">{{item.name}}</view>
|
|
<view class="fingerprint_one_li_l">{{item.name}}</view>
|
|
<view :class="item.isConfig?'colorB':'colorA'">{{item.isConfig?'已配置':'无'}}</view>
|
|
<view :class="item.isConfig?'colorB':'colorA'">{{item.isConfig?'已配置':'无'}}</view>
|
|
<img class="fingerprint_one_li_r" src="@/images/icon_04.png">
|
|
<img class="fingerprint_one_li_r" src="@/images/icon_04.png">
|
|
@@ -15,9 +15,9 @@
|
|
<view class="fingerprint_tow" v-if="pageType==2">
|
|
<view class="fingerprint_tow" v-if="pageType==2">
|
|
<view class="input_tip">请选择可采集的指纹门禁:</view>
|
|
<view class="input_tip">请选择可采集的指纹门禁:</view>
|
|
<input class="input_search" type="text" v-model="dialogForm.searchValue" placeholder="请输入门禁名称" @blur="searchGuard()"/>
|
|
<input class="input_search" type="text" v-model="dialogForm.searchValue" placeholder="请输入门禁名称" @blur="searchGuard()"/>
|
|
- <view class="fingerprint_tow_border_li" v-for="item in yesUseList" @click="selectGuard(item)">
|
|
|
|
- <view :class="item.isCheck?'colorD':'colorC'">{{item.subName +'+'+ item.hardName}}</view>
|
|
|
|
- <img v-if="item.isCheck" class="fingerprint_tow_border_li_r" src="@/images/Version2.2/icon_xzwt_xz.png">
|
|
|
|
|
|
+ <view class="fingerprint_tow_border_li" v-for="(item2,index2) in yesUseList" @click="selectGuard(item2,index2)" :key="index2">
|
|
|
|
+ <view :class="item2.isCheck?'colorD':'colorC'">{{item2.subName +'+'+ item2.hardName}}</view>
|
|
|
|
+ <img v-if="item2.isCheck" class="fingerprint_tow_border_li_r" src="@/images/Version2.2/icon_xzwt_xz.png">
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="pageType==1" class="tip_one">至少添加一个指纹才可以通过指纹开锁</view>
|
|
<view v-if="pageType==1" class="tip_one">至少添加一个指纹才可以通过指纹开锁</view>
|
|
@@ -104,16 +104,24 @@
|
|
searchGuard(){
|
|
searchGuard(){
|
|
this.impowerUseList();
|
|
this.impowerUseList();
|
|
},
|
|
},
|
|
- selectGuard(d){
|
|
|
|
- let _this=this;
|
|
|
|
- this.yesUseList.forEach(function(item){
|
|
|
|
- if(item.hardId==d.hardId){
|
|
|
|
- item.isCheck=!item.isCheck;
|
|
|
|
- item.subName='贺洋测试'
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ selectGuard(d,index){
|
|
|
|
+ let _this=this;
|
|
|
|
+ //选中
|
|
|
|
+ d.isCheck=!d.isCheck
|
|
|
|
+ this.$set(this.yesUseList,index,d)
|
|
|
|
+ //循环实现单选
|
|
|
|
+ if(_this.yesUseList[index].isCheck==true){
|
|
|
|
+ _this.yesUseList.forEach(function(item2) {
|
|
|
|
+ if(item2.hardId==_this.yesUseList[index].hardId){
|
|
|
|
+ item2.isCheck=true
|
|
|
|
+ }else{
|
|
|
|
+ item2.isCheck=false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
- console.log(this.yesUseList)
|
|
|
|
|
|
+ console.log(this.yesUseList)
|
|
},
|
|
},
|
|
//查询用户指纹录取数据
|
|
//查询用户指纹录取数据
|
|
async fingerprintClick(){
|
|
async fingerprintClick(){
|
|
@@ -235,6 +243,9 @@
|
|
flex: 1;
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .fingerprint_one_li:last-child{
|
|
|
|
+ border-bottom: none;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.tip_tow{
|
|
.tip_tow{
|
|
margin: 10rpx 0;
|
|
margin: 10rpx 0;
|
|
@@ -299,6 +310,9 @@
|
|
color: #0183FA;
|
|
color: #0183FA;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .fingerprint_tow_border_li:last-child{
|
|
|
|
+ border-bottom: none;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.tip_one{
|
|
.tip_one{
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|