|
@@ -88,12 +88,12 @@
|
|
<view class="view-three-type" :class="!isUpload?'colorA':'marginType'">{{!isUpload?'未上传':'已上传'}}</view>
|
|
<view class="view-three-type" :class="!isUpload?'colorA':'marginType'">{{!isUpload?'未上传':'已上传'}}</view>
|
|
<img class="right-img" src="@/images/icon_04.png">
|
|
<img class="right-img" src="@/images/icon_04.png">
|
|
</view>
|
|
</view>
|
|
- <view class="button-max-box" @click="fingerprintClick()">
|
|
|
|
|
|
+ <!-- <view class="button-max-box" @click="fingerprintClick()">
|
|
<img class="left-img" src="@/images/icon_wd_zw.png">
|
|
<img class="left-img" src="@/images/icon_wd_zw.png">
|
|
<view>指纹</view>
|
|
<view>指纹</view>
|
|
<view class="view-three-type" :class="Quantity>0?'marginType':'colorA'">{{Quantity>0?'已配置'+Quantity+'个':''}}</view>
|
|
<view class="view-three-type" :class="Quantity>0?'marginType':'colorA'">{{Quantity>0?'已配置'+Quantity+'个':''}}</view>
|
|
<img class="right-img" src="@/images/icon_04.png">
|
|
<img class="right-img" src="@/images/icon_04.png">
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="out-button" @click="clickOut">退出登录</view>
|
|
<view class="out-button" @click="clickOut">退出登录</view>
|
|
@@ -103,7 +103,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { config } from '@/api/request/config.js'
|
|
import { config } from '@/api/request/config.js'
|
|
-import { logout,studentinfoFacemy,simpleInfo,getSafeWarnList,getMyPointsLogInfo,querySignature,fingerprintQuantity,fingerprintQueryList} from '@/api/index.js'
|
|
|
|
|
|
+import { logout,studentinfoFacemy,simpleInfo,warningNoticeLogList,getMyPointsLogInfo,querySignature,fingerprintQuantity,fingerprintQueryList,getSubByRiskPlan} from '@/api/index.js'
|
|
import { tabBar } from '@/component/tabBar.vue'
|
|
import { tabBar } from '@/component/tabBar.vue'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -150,6 +150,7 @@ export default {
|
|
this.studentinfoFacemy();
|
|
this.studentinfoFacemy();
|
|
this.simpleInfo();
|
|
this.simpleInfo();
|
|
this.querySignature();
|
|
this.querySignature();
|
|
|
|
+ this.getSubByRiskPlan();
|
|
}else{
|
|
}else{
|
|
uni.removeStorageSync('token');
|
|
uni.removeStorageSync('token');
|
|
uni.removeStorageSync('userId');
|
|
uni.removeStorageSync('userId');
|
|
@@ -194,13 +195,13 @@ export default {
|
|
console.log(config.base_url)
|
|
console.log(config.base_url)
|
|
console.log(this.userData.avatarUrl)
|
|
console.log(this.userData.avatarUrl)
|
|
if(this.userType == 1){
|
|
if(this.userType == 1){
|
|
- this.getSafeWarnList();
|
|
|
|
|
|
+ this.warningNoticeLogList();
|
|
}else if(this.userType == 2){
|
|
}else if(this.userType == 2){
|
|
this.getMyPointsLogInfo();
|
|
this.getMyPointsLogInfo();
|
|
}
|
|
}
|
|
if(data.data.count){
|
|
if(data.data.count){
|
|
this.adminSubCount = data.data.count.adminSubCount;
|
|
this.adminSubCount = data.data.count.adminSubCount;
|
|
- this.wranDoCount = data.data.count.wranDoCount;
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
this.pageType = true;
|
|
this.pageType = true;
|
|
}
|
|
}
|
|
@@ -215,6 +216,7 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
//查询用户指纹录取数据
|
|
//查询用户指纹录取数据
|
|
async fingerprintClick(){
|
|
async fingerprintClick(){
|
|
let _this=this;
|
|
let _this=this;
|
|
@@ -244,22 +246,42 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//获取报警信息列表
|
|
//获取报警信息列表
|
|
- async getSafeWarnList(){
|
|
|
|
|
|
+ async warningNoticeLogList(){
|
|
let obj = {
|
|
let obj = {
|
|
pageNum:1,
|
|
pageNum:1,
|
|
- pageSize:1,
|
|
|
|
- count:0,
|
|
|
|
- groupStatus:1,
|
|
|
|
|
|
+ pageSize:10,
|
|
};
|
|
};
|
|
- const {data} = await getSafeWarnList(obj);
|
|
|
|
|
|
+ const {data} = await warningNoticeLogList(obj);
|
|
if(data.code == 200){
|
|
if(data.code == 200){
|
|
- if(data.rows[0]){
|
|
|
|
- this.securityAlertNum = data.rows[0].todayHappenCount;
|
|
|
|
|
|
+ console.log(data)
|
|
|
|
+ if(data.data.records[0]){
|
|
|
|
+ this.securityAlertNum = data.data.total;
|
|
}else{
|
|
}else{
|
|
this.securityAlertNum = 0;
|
|
this.securityAlertNum = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ //获取预案执行记录总数
|
|
|
|
+ async getSubByRiskPlan(){
|
|
|
|
+ let obj = {
|
|
|
|
+ pageNum:1,
|
|
|
|
+ pageSize:10,
|
|
|
|
+ deptId:"",
|
|
|
|
+ subDept:"",
|
|
|
|
+ typeId:"",
|
|
|
|
+ startDate:"",
|
|
|
|
+ endDate:""
|
|
|
|
+ };
|
|
|
|
+ const {data} = await getSubByRiskPlan(obj);
|
|
|
|
+ if(data.code == 200){
|
|
|
|
+ console.log(data)
|
|
|
|
+ if(data.rows[0]){
|
|
|
|
+ this.wranDoCount = data.total;
|
|
|
|
+ }else{
|
|
|
|
+ this.wranDoCount = 0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//获取当前身份人脸验证状态与学生卡上传状态
|
|
//获取当前身份人脸验证状态与学生卡上传状态
|
|
async studentinfoFacemy(){
|
|
async studentinfoFacemy(){
|
|
let obj = {
|
|
let obj = {
|