From ef992ecbf20a65db22860b54a54f98bff0a5b04d Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 29 Dec 2021 13:42:22 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises
---
src/views/securityAnalysis/child/certificate.vue | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/src/views/securityAnalysis/child/certificate.vue b/src/views/securityAnalysis/child/certificate.vue
index d022726..182b376 100644
--- a/src/views/securityAnalysis/child/certificate.vue
+++ b/src/views/securityAnalysis/child/certificate.vue
@@ -10,6 +10,7 @@
:data="data1"
:page.sync="page1"
:table-loading="loading1"
+ @sort-change="sortChange"
@on-load="getPractitionersPageInfo(page1)"
@search-change="searchChange"
@search-reset="searchReset"
@@ -38,6 +39,8 @@
search = false;
}
return {
+ sort: "",
+ sortName: "",
securityid1: "",
ExperienceVisible: false,
loading1: true,
@@ -84,6 +87,7 @@
// prop: "deptName",
prop: "deptId",
type: "tree",
+ sort:true,
dicUrl: dicUrl,
props: {
label: "title",
@@ -176,6 +180,11 @@
],
},
{
+ label: "保安证编号",
+ prop: "securitynumber",
+ disabled: true,
+ },
+ {
label: "发证时间",
prop: "paperTime",
disabled: true,
@@ -185,6 +194,35 @@
};
},
methods: {
+ //排序
+ sortChange(value) {
+ // console.log(value, 51151515);
+ if (value.order == "ascending") {
+ this.sort = "asc";
+ }
+ if (value.order == "descending") {
+ this.sort = "desc";
+ }
+ this.sortName = value.prop;
+ //字段匹配
+ if (value.prop == "sexs") {
+ this.sortName = "sex";
+ }
+ if (value.prop == "examinationType") {
+ this.sortName = "examination_type";
+ }
+ if (value.prop == "userType") {
+ this.sortName = "user_type";
+ }
+ this.onLoad(this.page, this.query);
+ },
+ //清空按钮
+ selectionClear() {
+ // this.selectionList = [];
+ this.sort = "";
+ this.sortName = "";
+ // this.$refs.crud.toggleSelection();
+ },
getPractitionersPageInfo(page, params = {}) {
if (this.card.jurisdiction == 1372091709474910209) {
this.card.jurisdiction = "";
--
Gitblit v1.9.3