This commit is contained in:
jiask 2025-11-27 17:21:20 +08:00
parent 341bd0dcd0
commit 44e977cca6
5 changed files with 41 additions and 9 deletions

View File

@ -204,7 +204,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="姓名" prop="name"> <el-form-item label="姓名" prop="name">
<el-input v-model="baseForm.name" placeholder="请输入" maxlength="30" clearable/> <el-input v-model="baseForm.name" readonly="true" placeholder="请输入" maxlength="30" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col el-col :span="12" v-if="baseForm.deptId !== 0"> <el-col el-col :span="12" v-if="baseForm.deptId !== 0">

View File

@ -382,7 +382,7 @@
if(CertificateNos!=null&&CertificateNos.length>0){ if(CertificateNos!=null&&CertificateNos.length>0){
}else{ }else{
this.$modal.msgError("请选择证件"); this.$modal.msgWarning("请选择证件");
return; return;
} }
var titlemsg="是否确定自助取证?" var titlemsg="是否确定自助取证?"

View File

@ -262,7 +262,7 @@
const CertificateNos = this.ids const CertificateNos = this.ids
if(CertificateNos!=null&&CertificateNos.length>0){ if(CertificateNos!=null&&CertificateNos.length>0){
}else{ }else{
this.$modal.msgError("请选择证件"); this.$modal.msgWarning("请选择证件");
return; return;
} }
this.open = true; this.open = true;
@ -280,7 +280,7 @@
const CertificateNos = this.ids const CertificateNos = this.ids
if(CertificateNos!=null&&CertificateNos.length>0){ if(CertificateNos!=null&&CertificateNos.length>0){
}else{ }else{
this.$modal.msgError("请选择证件"); this.$modal.msgWarning("请选择证件");
return; return;
} }
this.open = true; this.open = true;

View File

@ -17,10 +17,10 @@
<el-option label="大型" value="3"/> <el-option label="大型" value="3"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="单位名称" prop="unitName"> <el-form-item label="关键字" prop="keyWord">
<el-input <el-input
v-model="queryParams.unitName" v-model="queryParams.keyWord"
placeholder="请输入单位名称" placeholder="请输入"
clearable maxlength="20" clearable maxlength="20"
style="width: 300px" style="width: 300px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
@ -235,6 +235,8 @@
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
deviceName:"",
deviceType:"",
keyWord:"",// keyWord:"",//
}, },
activeName:"baseSetting", activeName:"baseSetting",
@ -343,6 +345,8 @@
let param = { let param = {
"pageNum":this.queryParams.pageNum, "pageNum":this.queryParams.pageNum,
"pageSize":this.queryParams.pageSize, "pageSize":this.queryParams.pageSize,
"deviceName":this.queryParams.deviceName,
"deviceType":this.queryParams.deviceType,
"searchValue":this.queryParams.keyWord "searchValue":this.queryParams.keyWord
} }
console.log("param",param) console.log("param",param)

View File

@ -100,8 +100,8 @@
></right-toolbar> ></right-toolbar>
</el-row> </el-row>
<div style="width: 98%;margin: 10px;display: flex;justify-content: flex-end;"> <div style="width: 98%;margin: 10px;display: flex;justify-content: flex-end;">
<span style="font-weight: bold;">有证人数231</span> <span style="font-weight: bold;">有证人数{{statistics.ownNum}}</span>
<span style="font-weight: bold;margin-left: 20px;">无证人数65</span> <span style="font-weight: bold;margin-left: 20px;">无证人数{{statistics.unOwnNum}}</span>
</div> </div>
<el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="50" align="center"/> <el-table-column type="selection" width="50" align="center"/>
@ -170,6 +170,7 @@ import {
deptTreeSelect, deptTreeSelect,
} from '@/api/system/user' } from '@/api/system/user'
import {getCertificateUserListPageApi,addCertificateCheckApi} from "@/api/certificateManage/index" import {getCertificateUserListPageApi,addCertificateCheckApi} from "@/api/certificateManage/index"
import { getStatisticsApi } from "@/api/certificateStatistics/index";
import Treeselect from '@riophae/vue-treeselect' import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css' import '@riophae/vue-treeselect/dist/vue-treeselect.css'
export default { export default {
@ -206,6 +207,22 @@ export default {
children: 'children', children: 'children',
label: 'label', label: 'label',
}, },
statistics:{
registerNum:0,
ownNum:0,
unOwnNum:0,
storeNum:0,
unStoreNum:0,
passPortNum:0,
outPassPortNum:0,
inPassPortNum:0,
hMCardNum:0,
outHMCardNum:0,
inHMCardNum:0,
taiwanNum:0,
outTaiwanNum:0,
inTaiwanNum:0,
},
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
@ -241,6 +258,7 @@ export default {
created() { created() {
this.getList() this.getList()
this.getDeptTree() this.getDeptTree()
this.initStatistics();
}, },
methods: { methods: {
/* 手机号码脱敏 */ /* 手机号码脱敏 */
@ -248,6 +266,16 @@ export default {
if (!phone) return '' if (!phone) return ''
return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
}, },
initStatistics(){
let param = {}
getStatisticsApi(param).then(response => {
console.log("getStatisticsApi",response)
if(response.code==200){
this.statistics =response.data;
console.log("this.statistics",this.statistics)
}
});
},
/** 查询用户列表 */ /** 查询用户列表 */
getList() { getList() {
this.loading = true this.loading = true