|
@@ -1,6 +1,6 @@
|
|
|
<!--门禁授权-->
|
|
|
<template>
|
|
|
- <div class="authorize">
|
|
|
+ <div class="app-container authorize">
|
|
|
<div class="authorize-page" v-if="pageType == 1">
|
|
|
<div class="title-box">
|
|
|
<div>
|
|
@@ -32,37 +32,31 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="" prop="zgType">
|
|
|
- <el-select v-model="queryParamsData.state" placeholder="请选择分类" clearable size="small">
|
|
|
- <el-option label="全部" value="" />
|
|
|
- <el-option label="授权验证成功" :value=true />
|
|
|
- <el-option label="授权验证失败" :value=false />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
<p class="page-inquire-common-style-button" @click="handleQuery" style="margin-right:10px;">查询</p>
|
|
|
<p class="page-reset-common-style-button" @click="resetQuery">重置</p>
|
|
|
</el-form>
|
|
|
<el-table class="table-box" v-loading="loading" border :data="tableList">
|
|
|
<el-table-column label="所属学院" align="left" prop="deptName" show-overflow-tooltip/>
|
|
|
<el-table-column label="实验室" align="left" prop="subName" show-overflow-tooltip/>
|
|
|
- <el-table-column label="位置" align="left" prop="posi" show-overflow-tooltip/>
|
|
|
<el-table-column label="实验室负责人" align="left" prop="adminName" show-overflow-tooltip/>
|
|
|
<el-table-column label="门禁" align="left" prop="hardName" />
|
|
|
<el-table-column label="授权人数" align="left" prop="available" />
|
|
|
<el-table-column label="验证方式失败数" align="left" prop="failNum" />
|
|
|
- <el-table-column label="状态" align="left" prop="operate" >
|
|
|
- <template slot-scope="scope" v-if="scope.row.operate">
|
|
|
- <span>{{scope.row.operate.name}}</span>
|
|
|
+ <el-table-column label="状态" align="left" prop="online" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.online?'在线':'离线'}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">
|
|
|
+ <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="table-button-box">
|
|
|
<p class="table-button-null"></p>
|
|
|
<p class="table-button-p"
|
|
|
- v-hasPermiRouter="['haikang:user:list']"
|
|
|
@click="handleClick('',scope.row,'detail')"
|
|
|
>查看授权</p>
|
|
|
+ <p class="table-button-p"
|
|
|
+ @click="tableButton(scope.row)"
|
|
|
+ >同步数据</p>
|
|
|
<p class="table-button-null"></p>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -81,7 +75,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getHaikangList } from '@/apiDemo/laboratory/subject'
|
|
|
+import { laboratoryHaikangUserSubList,laboratoryHaikangUserSynchFaceCard } from '@/api/integratedManagement/index'
|
|
|
import lookImpower from "./lookImpower.vue";
|
|
|
export default {
|
|
|
name: "authorize",
|
|
@@ -108,7 +102,7 @@ export default {
|
|
|
total:10,
|
|
|
tableList:[{}],
|
|
|
//审批状态
|
|
|
- optionsListTwo:[{code:null,name:'全部'},{code:0,name:'离线'},{code:2,name:'在线'}],
|
|
|
+ optionsListTwo:[{code:null,name:'全部'},{code:false,name:'离线'},{code:true,name:'在线'}],
|
|
|
//详情
|
|
|
pageData:{},
|
|
|
}
|
|
@@ -120,15 +114,22 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods:{
|
|
|
+ tableButton(row){
|
|
|
+ let obj = {
|
|
|
+ hardId:row.hardId
|
|
|
+ };
|
|
|
+ laboratoryHaikangUserSynchFaceCard(obj).then(response => {
|
|
|
+ this.msgSuccess(response.message)
|
|
|
+ this.getList();
|
|
|
+ })
|
|
|
+ },
|
|
|
handleClick(index,row,doType){
|
|
|
if(doType=='detail'){
|
|
|
this.pageType=2
|
|
|
-
|
|
|
this.pageData=row
|
|
|
}else if(doType=='back'){
|
|
|
this.pageType=1
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
//操作接口
|
|
|
goPageButton(){
|
|
@@ -153,9 +154,9 @@ export default {
|
|
|
//获取数据列表
|
|
|
getList(){
|
|
|
this.queryParamsData = JSON.parse(JSON.stringify(this.queryParams));
|
|
|
- getHaikangList(this.queryParamsData).then(response => {
|
|
|
- this.tableList = response.rows;
|
|
|
- this.total = response.total
|
|
|
+ laboratoryHaikangUserSubList(this.queryParamsData).then(response => {
|
|
|
+ this.tableList = response.data.records;
|
|
|
+ this.total = response.data.total
|
|
|
});
|
|
|
},
|
|
|
}
|