From d1b058faa19088838b668d6c03dd71c2bcc7d5d3 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 09 Dec 2021 10:30:44 +0800
Subject: [PATCH] 用户角色控制修改
---
src/views/securityAnalysis/child/dispatch.vue | 78 ++++++++++++++++++++-------------------
1 files changed, 40 insertions(+), 38 deletions(-)
diff --git a/src/views/securityAnalysis/child/dispatch.vue b/src/views/securityAnalysis/child/dispatch.vue
index 1dc10e9..d231fe7 100644
--- a/src/views/securityAnalysis/child/dispatch.vue
+++ b/src/views/securityAnalysis/child/dispatch.vue
@@ -1,5 +1,10 @@
<template>
- <div class="certificateTJ">
+ <div
+ :class="[
+ 'certificateTJ',
+ $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+ ]"
+ >
<avue-crud
:option="option1"
:data="data1"
@@ -19,10 +24,19 @@
export default {
props: ["card"],
data() {
- var jurisdiction =
- this.card.jurisdiction == "1372091709474910209"
- ? "1372091709474910209"
- : this.card.jurisdiction;
+ var dicUrl =
+ "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+ search = true;
+ if (this.card.jurisdiction != "") {
+ dicUrl =
+ "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
+ this.card.jurisdiction;
+ } else if (this.card.jurisdiction == 1372091709474910209) {
+ // a = "";
+ }
+ if (this.card.deptId != "") {
+ search = false;
+ }
return {
securityid1: "",
ExperienceVisible: false,
@@ -31,6 +45,7 @@
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize,
},
query1: {},
data1: [],
@@ -48,13 +63,14 @@
stripe: true,
// tip: false,
index: true,
- // dialogClickModal: false,
+ ...this.$store.state.control.clearOtherBut,
+ // dialogClickModal: false
// headerAlign: "center",
align: "center",
column: [
//派遣服务公司登记
{
- label: "派遣单位名称",
+ label: "派遣企业名称",
prop: "name",
search: true,
searchLabelWidth: 110,
@@ -64,24 +80,23 @@
// span: 12,
labelWidth: 118,
},
- {
- label: "派遣单位地址",
- prop: "address",
- search: false,
- searchLabelWidth: 110,
- overHidden: true,
- searchSpan: 4,
- width: 210,
- // span: 12,
- labelWidth: 118,
- },
+ // {
+ // label: "派遣单位地址",
+ // prop: "address",
+ // search: false,
+ // searchLabelWidth: 110,
+ // overHidden: true,
+ // searchSpan: 4,
+ // width: 210,
+ // // span: 12,
+ // labelWidth: 118,
+ // },
{
label: "保安公司",
prop: "deptName",
type: "tree",
overHidden: true,
- dicUrl:
- "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+ dicUrl: dicUrl,
props: {
label: "title",
value: "id",
@@ -101,7 +116,7 @@
labelWidth: 118,
width: 230,
searchLabelWidth: 80,
- search: true,
+ search: search,
searchSpan: 4,
// editDisplay: false,
// addDisplay: false,
@@ -219,7 +234,7 @@
prop: "jurisdiction",
hide: true,
searchLabelWidth: 80,
- search: true,
+ search: search,
searchSpan: 4,
overHidden: true,
labelWidth: 118,
@@ -291,19 +306,6 @@
return "";
},
getPractitionersPageInfo(page, params = {}) {
- // this.card.jurisdiction = "130";
- // this.card.this.card = "1425365571343515649";
- // if (params.hold == undefined) {
- // params.hold = 1;
- // }
- if (this.card.jurisdiction != "" || this.card.jurisdiction != undefined) {
- if (this.query1.deptId != "" || this.query1.deptId != undefined) {
- this.card.deptId = this.query1.deptId;
- }
- this.option1.column[2].search = true;
- } else {
- this.option1.column[2].search = false;
- }
if (this.card.jurisdiction == 1372091709474910209) {
this.card.jurisdiction = "";
}
@@ -312,22 +314,22 @@
if (releaseTimeRange) {
params = {
...params,
+ ...this.card,
beginTime: releaseTimeRange[0],
overTime: releaseTimeRange[1],
status: 1,
...this.query1,
- ...this.card,
};
// values.releaseTimeRange = null;
} else {
params = {
...params,
+ ...this.card,
...this.query1,
status: 1,
- ...this.card,
};
}
- console.log(params);
+ // console.log(params);
getdata(page.currentPage, page.pageSize, params).then((res) => {
// console.log(res.data.data.records);
const data = res.data.data;
--
Gitblit v1.9.3