From 7434e5ccf889189d24e7f4e655fbf752a0883d5b Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 16 Dec 2021 19:23:58 +0800
Subject: [PATCH] 保安员查询修改
---
src/views/securityUnit/selfRecruitedSecurityGuard.vue | 50 ++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 40 insertions(+), 10 deletions(-)
diff --git a/src/views/securityUnit/selfRecruitedSecurityGuard.vue b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
index f17bee5..43caada 100644
--- a/src/views/securityUnit/selfRecruitedSecurityGuard.vue
+++ b/src/views/securityUnit/selfRecruitedSecurityGuard.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: [],
@@ -262,12 +268,13 @@
tip: false,
searchSize: "mini",
searchMenuSpan: 6,
- height: 583,
+ height: "auto",
menuWidth: 275,
align: "center",
border: true,
selection: true,
+ ...this.$store.state.control.clearOtherBut,
column: [
...column,
{
@@ -290,8 +297,18 @@
};
},
created() {
- this.option0.column[4].value = 2;
+ this.option0.column[4].value = 0;
this.option0.column[4].disabled = true;
+ if (this.userInfo.role_name == "培训公司管理员") {
+ for (let k in this.option0.column) {
+ if (this.option0.column[k].prop == "enterprisename") {
+ continue;
+ }
+ if (this.option0.column[k].rules) {
+ delete this.option0.column[k].rules;
+ }
+ }
+ }
},
computed: {
...mapGetters(["userInfo"]),
@@ -431,14 +448,19 @@
this.$message.warning("请选择至少一条数据");
return;
}
- this.$confirm("确定批量将选择数据删除?", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
+ this.$confirm(
+ "该操作将会把保安员数据一并删除,不可恢复!确定将选择公司删除?",
+ {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ }
+ )
.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);
@@ -479,6 +501,9 @@
console.log("是公安add jurisdiction");
params["jurisdiction"] = this.userInfo.jurisdiction;
}
+ if (this.userInfo.role_name == "培训公司管理员") {
+ params["createDeptId"] = this.userInfo.dept_id;
+ }
params["stats"] = 0;
this.loading = true;
getdata(
@@ -508,13 +533,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 {
@@ -522,6 +551,7 @@
message: "提交失败",
type: "warning",
});
+ done();
}
});
},
--
Gitblit v1.9.3