From 21c7375b7b38ebf2c8a2ca8fbf6fe9fb4f28250f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 12 Jan 2022 10:59:40 +0800
Subject: [PATCH] 新增公司注册机公司注册审核
---
src/views/securityAnalysis/child/certificate.vue | 68 +++++++++++++++++++++++++--------
1 files changed, 51 insertions(+), 17 deletions(-)
diff --git a/src/views/securityAnalysis/child/certificate.vue b/src/views/securityAnalysis/child/certificate.vue
index 32beb8e..ecddb9c 100644
--- a/src/views/securityAnalysis/child/certificate.vue
+++ b/src/views/securityAnalysis/child/certificate.vue
@@ -9,7 +9,9 @@
:option="option1"
:data="data1"
:page.sync="page1"
+ :search.sync="search"
:table-loading="loading1"
+ @sort-change="sortChange"
@on-load="getPractitionersPageInfo(page1)"
@search-change="searchChange"
@search-reset="searchReset"
@@ -38,6 +40,8 @@
search = false;
}
return {
+ sort: "",
+ sortName: "",
securityid1: "",
ExperienceVisible: false,
loading1: true,
@@ -48,6 +52,7 @@
...this.$store.state.control.changePageSize,
},
query1: {},
+ search:{},
data1: [],
option1: {
addBtn: false,
@@ -56,7 +61,7 @@
// refreshBtn: false,
// card: true,
menu: false,
- height: 450,
+ height: "auto",
widtd: "auto",
// calcHeight: 54,
border: true, //liu
@@ -84,16 +89,15 @@
// prop: "deptName",
prop: "deptId",
type: "tree",
+ sortable:true,
dicUrl: dicUrl,
props: {
label: "title",
value: "id",
},
- // hide: true,
- // slot: true,
searchSpan: 5,
display: false,
- search: search,
+ search: true,
minWidth: 220,
},
{
@@ -176,6 +180,11 @@
],
},
{
+ label: "保安证编号",
+ prop: "securitynumber",
+ disabled: true,
+ },
+ {
label: "发证时间",
prop: "paperTime",
disabled: true,
@@ -185,25 +194,52 @@
};
},
methods: {
- getPractitionersPageInfo(page, params = {}) {
- if (this.card.jurisdiction == 1372091709474910209) {
- this.card.jurisdiction = "";
+ //排序
+ sortChange(value) {
+ if (value.order == "ascending") {
+ this.sort = "asc";
}
- // if (params.hold == undefined) {
- // params.hold = 1;
- // }
+ if (value.order == "descending") {
+ this.sort = "desc";
+ }
+ this.sortName = value.prop;
+ //字段匹配
+ if (value.prop == "deptId") {
+ this.sortName = "dept_id";
+ }
+ this.getPractitionersPageInfo(this.page1, this.query1);
+ },
+ //清空按钮
+ selectionClear() {
+ this.sort = "";
+ this.sortName = "";
+ },
+ getPractitionersPageInfo(page, params = {}) {
+ params = this.search;
+ var that = this;
+ if (this.card.jurisdiction == 1372091709474910209) {
+ params['jurisdiction'] = "";
+ }else{
+ params['jurisdiction'] = this.card.jurisdiction;
+ }
+ 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() {
@@ -216,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