| | |
| | | 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> |
| | |
| | | update, |
| | | updatePlatform, |
| | | securitySave, |
| | | securitySaves, |
| | | grant, |
| | | resetPassword, |
| | | getUserPractitionersInfo, |
| | |
| | | } 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; |
| | |
| | | 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: "", |
| | |
| | | "screenHeight" |
| | | ]), |
| | | permissionList() { |
| | | console.log(this.permission, 789787); |
| | | return { |
| | | addBtn: this.vaildData(this.permission.securityGuard_add, false), |
| | | viewBtn: this.vaildData(null, false), |
| | |
| | | } |
| | | }; |
| | | |
| | | securitySave(userMap).then( |
| | | securitySaves(userMap).then( |
| | | res => { |
| | | // console.log(res.data,111111111111111111); |
| | | this.initFlag = false; |
| | |
| | | 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, |