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/securityUnit/localCompany.vue | 37 +++++++++++++++++++++++++++++--------
1 files changed, 29 insertions(+), 8 deletions(-)
diff --git a/src/views/securityUnit/localCompany.vue b/src/views/securityUnit/localCompany.vue
index 2fe7f96..268682b 100644
--- a/src/views/securityUnit/localCompany.vue
+++ b/src/views/securityUnit/localCompany.vue
@@ -1,6 +1,11 @@
<template>
<basic-container>
- <div class="securityUnit">
+ <div
+ :class="[
+ 'securityUnit',
+ $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+ ]"
+ >
<avue-crud
:option="option"
:data="data"
@@ -158,6 +163,7 @@
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize,
},
treeData: [],
@@ -193,6 +199,7 @@
submitBtn: true,
gutter: 30,
column: column0,
+ ...this.$store.state.control.clearOtherBut,
},
obj1: {
title1: "保安单位出资人员",
@@ -202,6 +209,7 @@
submitBtn: false,
gutter: 30,
column: column1,
+ ...this.$store.state.control.clearOtherBut,
},
obj2: {
title2: "主要管理人员信息",
@@ -211,6 +219,7 @@
submitBtn: false,
gutter: 30,
column: column2,
+ ...this.$store.state.control.clearOtherBut,
},
forms: false,
@@ -238,6 +247,8 @@
align: "center",
selection: true,
column: column,
+ ...this.$store.state.control.clearOtherBut,
+ ...this.$store.state.control.clearOtherBut,
},
};
},
@@ -358,11 +369,14 @@
);
},
rowDel(row) {
- this.$confirm("确定将选择数据删除?", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
+ this.$confirm(
+ "该操作将会把保安员数据一并删除,不可恢复!确定将选择公司删除?",
+ {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ }
+ )
.then(() => {
console.log(row);
return remove(row.creditcode, row.departmentid);
@@ -390,7 +404,9 @@
})
.then(() => {
// console.log(this.ids);
- return remove(this.ids, this.ids1);
+ return remove(this.ids, this.ids1).then((res) => {
+ this.refreshChange();
+ });
})
.then(() => {
this.onLoad(this.page);
@@ -460,13 +476,17 @@
// this.nobumen = 1;
// },
handleSubmit(form, done) {
- console.log(form);
+ form["createUserId"] = this.userInfo.Id;
+ // console.log(form);
+ // done();
+ // return;
adddata(form).then((res) => {
if (res.data.success) {
this.$message({
message: "提交成功",
type: "success",
});
+ this.refreshChange();
done();
this.forms = false;
} else {
@@ -474,6 +494,7 @@
message: "提交失败",
type: "warning",
});
+ done();
}
});
},
--
Gitblit v1.9.3