From 79d9fc857559982b00b68b2d709807bdc4cd286f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 11 Apr 2022 10:58:17 +0800
Subject: [PATCH] minio 地址修改
---
src/views/securityAnalysis/child/certificate.vue | 137 +++++++++++++++++++++++++++++----------------
1 files changed, 88 insertions(+), 49 deletions(-)
diff --git a/src/views/securityAnalysis/child/certificate.vue b/src/views/securityAnalysis/child/certificate.vue
index 32beb8e..9bfabdf 100644
--- a/src/views/securityAnalysis/child/certificate.vue
+++ b/src/views/securityAnalysis/child/certificate.vue
@@ -2,15 +2,19 @@
<div
:class="[
'certificateTJ',
- $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+ $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+ $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : ''
]"
>
<avue-crud
+ class="tablesss"
:option="option1"
:data="data1"
:page.sync="page1"
+ :search.sync="search"
:table-loading="loading1"
- @on-load="getPractitionersPageInfo(page1)"
+ @sort-change="sortChange"
+ @on-load="getPractitionersPageInfo"
@search-change="searchChange"
@search-reset="searchReset"
@refresh-change="refreshChange"
@@ -38,6 +42,8 @@
search = false;
}
return {
+ sort: "",
+ sortName: "",
securityid1: "",
ExperienceVisible: false,
loading1: true,
@@ -45,9 +51,10 @@
pageSize: 10,
currentPage: 1,
total: 0,
- ...this.$store.state.control.changePageSize,
+ ...this.$store.state.control.changePageSize
},
query1: {},
+ search: {},
data1: [],
option1: {
addBtn: false,
@@ -56,7 +63,7 @@
// refreshBtn: false,
// card: true,
menu: false,
- height: 450,
+ height: "auto",
widtd: "auto",
// calcHeight: 54,
border: true, //liu
@@ -76,7 +83,7 @@
width: 80,
overHidden: true,
searchSpan: 3,
- search: true,
+ search: true
},
{
label: "企业名称",
@@ -84,17 +91,16 @@
// prop: "deptName",
prop: "deptId",
type: "tree",
+ sortable: true,
dicUrl: dicUrl,
props: {
label: "title",
- value: "id",
+ value: "id"
},
- // hide: true,
- // slot: true,
searchSpan: 5,
display: false,
- search: search,
- minWidth: 220,
+ search: true,
+ minWidth: 220
},
{
label: "性别",
@@ -104,18 +110,18 @@
dicData: [
{
label: "男",
- value: 1,
+ value: 1
},
{
label: "女",
- value: 2,
+ value: 2
},
{
label: "未知",
- value: 3,
- },
+ value: 3
+ }
],
- display: false,
+ display: false
},
{
label: "身份证号码",
@@ -124,7 +130,7 @@
searchLabelWidth: 90,
searchSpan: 5,
minWidth: 140,
- display: false,
+ display: false
},
{
label: "学历",
@@ -134,7 +140,7 @@
dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
props: {
label: "dictValue",
- value: "dictKey",
+ value: "dictKey"
},
type: "select",
// hide: true,
@@ -142,15 +148,15 @@
{
required: true,
message: "请选择学历",
- trigger: "blur",
- },
- ],
+ trigger: "blur"
+ }
+ ]
},
{
label: "联系电话",
prop: "phone",
minWidth: 100,
- display: false,
+ display: false
},
{
label: "是否持证",
@@ -163,47 +169,83 @@
dicData: [
{
label: "持证",
- value: "1",
+ value: "1"
},
{
label: "未持证",
- value: "2",
+ value: "2"
},
{
label: "已吊销",
- value: "3",
- },
- ],
+ value: "3"
+ }
+ ]
+ },
+ {
+ label: "保安证编号",
+ prop: "securitynumber",
+ disabled: true
},
{
label: "发证时间",
prop: "paperTime",
- disabled: true,
- },
- ],
- },
+ disabled: true
+ }
+ ]
+ }
};
},
+ mounted() {
+ this.$store.commit("setWindowSizeHeightAdd");
+ },
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,
+ ...this.query1
};
- getList(page.currentPage, page.pageSize, params).then((res) => {
- // console.log(res.data.data.records);
+ getList(page.currentPage, page.pageSize, params).then(res => {
const data = res.data.data;
this.data1 = data.records;
this.page1.total = data.total;
this.loading1 = false;
+ this.$store.commit("setWindowSizeHeightAdd");
+ that.selectionClear();
});
},
refreshChange() {
@@ -216,14 +258,11 @@
done();
},
searchReset() {
- this.query1 = {};
- this.page1.currentPage = 1;
- this.refreshChange();
- // console.log(212);
- },
- },
+ this.query = {};
+ this.getPractitionersPageInfo(this.page1, this.query1);
+ }
+ }
};
</script>
-<style scoped>
-</style>
\ No newline at end of file
+<style scoped></style>
--
Gitblit v1.9.3