From f6b543ac422be0d37ed47fa289d4873bd0f8c213 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 26 Apr 2022 20:47:50 +0800
Subject: [PATCH] 保安员列表修改
---
src/views/securityGuard/securityGuard.vue | 63 +++++--------------------------
1 files changed, 10 insertions(+), 53 deletions(-)
diff --git a/src/views/securityGuard/securityGuard.vue b/src/views/securityGuard/securityGuard.vue
index ddd3730..62452ba 100644
--- a/src/views/securityGuard/securityGuard.vue
+++ b/src/views/securityGuard/securityGuard.vue
@@ -178,7 +178,7 @@
icon="el-icon-scissors"
:size="size"
:type="type"
- v-if="permission.securityGuard_delete && row.status != 2"
+ v-if="permission.securityGuard_edit && row.status != 2"
@click="$refs.crud.rowEdit(row, index)"
>编辑
</el-button>
@@ -541,6 +541,7 @@
update,
updatePlatform,
securitySave,
+ securitySaves,
grant,
resetPassword,
getUserPractitionersInfo,
@@ -704,44 +705,6 @@
} else {
callback(new Error("身份证错误"));
}
- // console.log(oldy, oldm, oldd, year - oldy, mouth, day);
- // var test =
- // /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
- // if (!test.test(value)) {
- // callback(new Error("请输入正确身份证号码"));
- // } else {
- // // //加入校验18岁到60岁的
- // // oldy = +value.slice(6, 10);
- // // oldm = +value.slice(10, 12);
- // // oldd = +value.slice(12, 14);
- // // ok =
- // // year - oldy < 18 || year - oldy > 60
- // // ? false
- // // : year - oldy == 18
- // // ? mouth < oldm
- // // ? false
- // // : mouth > oldm
- // // ? true
- // // : day < oldd
- // // ? false
- // // : true
- // // : year - oldy == 60
- // // ? mouth < oldm
- // // ? true
- // // : mouth > oldm
- // // ? false
- // // : day <= oldd
- // // ? false
- // // : true
- // // : true;
- // // if (ok) {
- // callback();
- // // } else {
- // // // callback(new Error("根据国家要求,需在18岁至60岁"));
- // // callback(new Error("年龄不符"));
- // }
-
- // }
};
const validatePassPhone = (rule, value, callback) => {
var test = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9]|19[0-9])\d{8}$/g;
@@ -751,12 +714,7 @@
callback();
}
};
- // let table = document.getElementsByClassName("tablesss");
- // let heard = table[0].getElementsByClassName("avue-crud__search");
- // let usNum =
- // this.windowWidth <= 1376 && this.windowHeight <= 778 ? 170 : 332;
- // // that.option.height = +h - (+heard[0].clientHeight + 332);
- // let optionHeight = +this.windowHeight - (+heard[0].clientHeight + +usNum);
+
return {
startTimecc: null,
sort: "",
@@ -1648,7 +1606,6 @@
"screenHeight"
]),
permissionList() {
- console.log(this.permission, 789787);
return {
addBtn: this.vaildData(this.permission.securityGuard_add, false),
viewBtn: this.vaildData(null, false),
@@ -2337,7 +2294,7 @@
}
};
- securitySave(userMap).then(
+ securitySaves(userMap).then(
res => {
// console.log(res.data,111111111111111111);
this.initFlag = false;
@@ -2915,12 +2872,12 @@
that.userInfo.jurisdiction;
//审查状态查询开启
- var columnExaminationType = that.findObject(
- that.option.column,
- "examinationType"
- );
- columnExaminationType.search = true;
- columnExaminationType.hide = false;
+ // var columnExaminationType = that.findObject(
+ // that.option.column,
+ // "examinationType"
+ // );
+ // columnExaminationType.search = true;
+ // columnExaminationType.hide = false;
} else {
var ColumnDeptUpdate1 = that.findObject(
that.option.group,
--
Gitblit v1.9.3