From aab7ba71765b91c568d606744b3376c2798dd969 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sat, 25 Sep 2021 17:06:03 +0800
Subject: [PATCH] 权限 保安公司管理员
---
src/views/dispatch/dispatchChildoperable.vue | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/views/dispatch/dispatchChildoperable.vue b/src/views/dispatch/dispatchChildoperable.vue
index ab2717c..8e0550f 100644
--- a/src/views/dispatch/dispatchChildoperable.vue
+++ b/src/views/dispatch/dispatchChildoperable.vue
@@ -275,6 +275,7 @@
},
],
},
+ useifid: 266,
};
},
created() {
@@ -282,6 +283,8 @@
console.log("保安公司管理员登入");
const deptColumn = this.findObject(this.option1.column, "deptId");
deptColumn.search = false;
+ deptColumn.hide = true;
+ this.useifid = this.userInfo.dept_id;
} else {
const deptColumn = this.findObject(
this.option1.column,
@@ -338,7 +341,9 @@
// const userColumn = this.findObject(this.option1.column, "userIds");
// userColumn.dicUrl = "/api/blade-user/page-security-units?deptId="+this.userInfo.dept_id;
// }
-
+ if (this.useifid != 266) {
+ form["deptId"] = this.useifid;
+ }
adddata1(form).then(
(res) => {
this.onLoad1(this.page1);
@@ -370,6 +375,9 @@
// const userColumn = this.findObject(this.option1.column, "userIds");
// userColumn.dicUrl = "/api/blade-user/page-security-units?deptId="+this.userInfo.dept_id;
// }
+ if (this.useifid != 266) {
+ row["deptId"] = this.useifid;
+ }
update1(row).then(
() => {
this.onLoad1(this.page1);
@@ -490,6 +498,9 @@
} else {
this.initData(1);
}
+ if (this.useifid != 266) {
+ values["deptId"] = this.useifid;
+ }
getdata1(
page.currentPage,
--
Gitblit v1.9.3