【修改】获取领导 修改逻辑

This commit is contained in:
zhoulingpo
2023-05-18 09:50:05 +08:00
parent 0efac04704
commit fa52fb9acf
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<div class="login-box">
<el-form :model="form" label-position="top" label-width="80px">
<el-form-item>
<h1>大众</h1>
<h1>洞察图书馆</h1>
</el-form-item>
<el-form-item label="用户名:">
<el-input v-model="form.username" prefix-icon="el-icon-user" size="small"
+1 -3
View File
@@ -263,9 +263,7 @@ export default {
}
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))) {
// return this.$message.warning('密码至少8个字符,至少1个大写字母,1个小写字母,1个数字') && false;
+7 -1
View File
@@ -31,7 +31,7 @@
</el-form-item>
</el-col>
<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-row>
@@ -479,5 +479,11 @@ export default {
<style lang="scss" scoped>
.checkBtn {
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>