bug修复

This commit is contained in:
jjLv 2024-11-11 13:51:47 +08:00
parent f244142dbe
commit 2d63013a41
5 changed files with 33 additions and 9 deletions

View File

@ -385,6 +385,13 @@ export default {
this.dynamicWidth = this.getOperatorWidth();
},
methods: {
getToday() {
const today = new Date();
const year = today.getFullYear();
const month = String(today.getMonth() + 1).padStart(2, '0');
const day = String(today.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`;
},
/** 获取列表数据 */
async getTableList() {
if (this.queryParams.time && this.queryParams.time.length !== 0) {

View File

@ -139,6 +139,7 @@ export default {
async mounted() {
this.open = true
if (this.crewParams) {
console.log('crewParams',this.crewParams)
this.crewParams.proId = Number(this.crewParams.proId)
this.ableSelect = this.crewParams.relId
Object.assign(this.projectParams, this.crewParams)

View File

@ -30,18 +30,32 @@
<el-input
v-model="loginForm.username"
type="text"
auto-complete="off"
autocomplete="off"
:placeholder="placeholderText()"
>
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon"/>
</el-input>
</el-form-item>
<el-form-item prop="password">
<el-input
style="display: none"
type="text"
name="xxxx"
autocomplete="off"
>
</el-input>
<el-input
style="display: none"
type="password"
name="xxxx"
autocomplete="off"
>
</el-input>
<el-input
v-model="loginForm.password"
type="password"
auto-complete="off"
placeholder="密码"
autocomplete="off"
@keyup.enter.native="handleLogin"
>
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>

View File

@ -35,7 +35,7 @@
<el-input
v-model="registerForm.password"
type="password"
auto-complete="off"
autocomplete="off"
placeholder="密码"
@keyup.enter.native="handleRegister"
show-password
@ -48,8 +48,8 @@
<el-input
v-model="registerForm.confirmPassword"
type="password"
auto-complete="off"
placeholder="确认密码"
autocomplete="off"
@keyup.enter.native="handleRegister"
show-password
>

View File

@ -156,7 +156,7 @@
<el-row>
<el-col :span="12">
<el-form-item label="用户昵称" prop="nickName">
<el-input v-model="form.nickName" placeholder="请输入用户昵称" maxlength="30"/>
<el-input v-model="form.nickName" placeholder="请输入用户昵称" maxlength="30" autocomplete="off"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -182,14 +182,15 @@
<el-row>
<el-col :span="12">
<el-form-item v-if="form.userId == undefined" label="用户名称" prop="userName">
<el-input v-model="form.userName" placeholder="请输入用户名称" maxlength="30"/>
<el-input v-model="form.userName" placeholder="请输入用户名称" maxlength="30" autocomplete="off"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-if="form.userId == undefined" label="用户密码" prop="password">
<el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20"
<el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" autocomplete="off"
show-password
/>
>
</el-input>
</el-form-item>
</el-col>
</el-row>
@ -406,6 +407,7 @@ export default {
}
],
phonenumber: [
{ required: true, message: '手机号码不能为空', trigger: 'blur' },
{
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '请输入正确的手机号码',