【修改】获取领导 修改逻辑
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<div class="login-box">
|
<div class="login-box">
|
||||||
<el-form :model="form" label-position="top" label-width="80px">
|
<el-form :model="form" label-position="top" label-width="80px">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<h1>大众</h1>
|
<h1>洞察图书馆</h1>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="用户名:">
|
<el-form-item label="用户名:">
|
||||||
<el-input v-model="form.username" prefix-icon="el-icon-user" size="small"
|
<el-input v-model="form.username" prefix-icon="el-icon-user" size="small"
|
||||||
|
|||||||
@@ -263,9 +263,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if (this.mode === 'add') {
|
if (this.mode === 'add') {
|
||||||
|
|
||||||
if (!this.form.account || !(/^[a-zA-Z0-9]*$/.test(this.form.account))) {
|
|
||||||
return this.$message.warning('用户名只能为纯数字、纯字母或字母数字组合') && false
|
|
||||||
}
|
|
||||||
// // 密码
|
// // 密码
|
||||||
// if (!(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/.test(this.form.password))) {
|
// if (!(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/.test(this.form.password))) {
|
||||||
// return this.$message.warning('密码至少8个字符,至少1个大写字母,1个小写字母,1个数字') && false;
|
// return this.$message.warning('密码至少8个字符,至少1个大写字母,1个小写字母,1个数字') && false;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="9" style="margin-left: 5px">
|
<el-col :span="9" style="margin-left: 5px">
|
||||||
<el-button size="medium" :disabled="checkBtn" type="primary" class="checkBtn" @click="handleCheck('spr1')">选取</el-button>
|
<el-button size="medium" :disabled="checkBtn" class="checkBtn" @click="handleCheck('spr1')">选取</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
@@ -479,5 +479,11 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.checkBtn {
|
.checkBtn {
|
||||||
padding: 11px 20px !important;
|
padding: 11px 20px !important;
|
||||||
|
background-color:#1890FF;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.el-button.is-disabled, .el-button.is-disabled:hover, .el-button.is-disabled:focus{
|
||||||
|
background-color: #82bffc;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user