From 6b9717d6a189fd4334f4af71ce98661a82ef4ed7 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 31 Dec 2021 15:33:34 +0800
Subject: [PATCH] 新增用户身份证号码账户校验,考试情况统计修改
---
src/views/securityAnalysis/child/certificate.vue | 50 +++++++++++++++++++++++---------------------------
1 files changed, 23 insertions(+), 27 deletions(-)
diff --git a/src/views/securityAnalysis/child/certificate.vue b/src/views/securityAnalysis/child/certificate.vue
index 182b376..ecddb9c 100644
--- a/src/views/securityAnalysis/child/certificate.vue
+++ b/src/views/securityAnalysis/child/certificate.vue
@@ -9,6 +9,7 @@
:option="option1"
:data="data1"
:page.sync="page1"
+ :search.sync="search"
:table-loading="loading1"
@sort-change="sortChange"
@on-load="getPractitionersPageInfo(page1)"
@@ -51,6 +52,7 @@
...this.$store.state.control.changePageSize,
},
query1: {},
+ search:{},
data1: [],
option1: {
addBtn: false,
@@ -87,17 +89,15 @@
// prop: "deptName",
prop: "deptId",
type: "tree",
- sort:true,
+ sortable:true,
dicUrl: dicUrl,
props: {
label: "title",
value: "id",
},
- // hide: true,
- // slot: true,
searchSpan: 5,
display: false,
- search: search,
+ search: true,
minWidth: 220,
},
{
@@ -196,7 +196,6 @@
methods: {
//排序
sortChange(value) {
- // console.log(value, 51151515);
if (value.order == "ascending") {
this.sort = "asc";
}
@@ -205,43 +204,42 @@
}
this.sortName = value.prop;
//字段匹配
- if (value.prop == "sexs") {
- this.sortName = "sex";
+ if (value.prop == "deptId") {
+ this.sortName = "dept_id";
}
- if (value.prop == "examinationType") {
- this.sortName = "examination_type";
- }
- if (value.prop == "userType") {
- this.sortName = "user_type";
- }
- this.onLoad(this.page, this.query);
+ this.getPractitionersPageInfo(this.page1, this.query1);
},
//清空按钮
selectionClear() {
- // this.selectionList = [];
this.sort = "";
this.sortName = "";
- // this.$refs.crud.toggleSelection();
},
getPractitionersPageInfo(page, params = {}) {
+ params = this.search;
+ var that = this;
if (this.card.jurisdiction == 1372091709474910209) {
- this.card.jurisdiction = "";
+ params['jurisdiction'] = "";
+ }else{
+ params['jurisdiction'] = this.card.jurisdiction;
}
- // if (params.hold == undefined) {
- // params.hold = 1;
- // }
+ if (this.sort) {
+ params["sort"] = this.sort;
+ }
+ if (this.sortName) {
+ params["sortName"] = this.sortName;
+ }
+ params['status'] = 1;
+
params = {
...params,
...this.query1,
- status: 1,
- ...this.card,
};
getList(page.currentPage, page.pageSize, params).then((res) => {
- // console.log(res.data.data.records);
const data = res.data.data;
this.data1 = data.records;
this.page1.total = data.total;
this.loading1 = false;
+ that.selectionClear();
});
},
refreshChange() {
@@ -254,10 +252,8 @@
done();
},
searchReset() {
- this.query1 = {};
- this.page1.currentPage = 1;
- this.refreshChange();
- // console.log(212);
+ this.query = {};
+ this.getPractitionersPageInfo(this.page1, this.query1);
},
},
};
--
Gitblit v1.9.3