bug修复
This commit is contained in:
parent
f244142dbe
commit
2d63013a41
|
|
@ -385,6 +385,13 @@ export default {
|
||||||
this.dynamicWidth = this.getOperatorWidth();
|
this.dynamicWidth = this.getOperatorWidth();
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
async getTableList() {
|
||||||
if (this.queryParams.time && this.queryParams.time.length !== 0) {
|
if (this.queryParams.time && this.queryParams.time.length !== 0) {
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,7 @@ export default {
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.open = true
|
this.open = true
|
||||||
if (this.crewParams) {
|
if (this.crewParams) {
|
||||||
|
console.log('crewParams',this.crewParams)
|
||||||
this.crewParams.proId = Number(this.crewParams.proId)
|
this.crewParams.proId = Number(this.crewParams.proId)
|
||||||
this.ableSelect = this.crewParams.relId
|
this.ableSelect = this.crewParams.relId
|
||||||
Object.assign(this.projectParams, this.crewParams)
|
Object.assign(this.projectParams, this.crewParams)
|
||||||
|
|
|
||||||
|
|
@ -30,18 +30,32 @@
|
||||||
<el-input
|
<el-input
|
||||||
v-model="loginForm.username"
|
v-model="loginForm.username"
|
||||||
type="text"
|
type="text"
|
||||||
auto-complete="off"
|
autocomplete="off"
|
||||||
:placeholder="placeholderText()"
|
:placeholder="placeholderText()"
|
||||||
>
|
>
|
||||||
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon"/>
|
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon"/>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="password">
|
<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
|
<el-input
|
||||||
v-model="loginForm.password"
|
v-model="loginForm.password"
|
||||||
type="password"
|
type="password"
|
||||||
auto-complete="off"
|
|
||||||
placeholder="密码"
|
placeholder="密码"
|
||||||
|
autocomplete="off"
|
||||||
@keyup.enter.native="handleLogin"
|
@keyup.enter.native="handleLogin"
|
||||||
>
|
>
|
||||||
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>
|
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon"/>
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
<el-input
|
<el-input
|
||||||
v-model="registerForm.password"
|
v-model="registerForm.password"
|
||||||
type="password"
|
type="password"
|
||||||
auto-complete="off"
|
autocomplete="off"
|
||||||
placeholder="密码"
|
placeholder="密码"
|
||||||
@keyup.enter.native="handleRegister"
|
@keyup.enter.native="handleRegister"
|
||||||
show-password
|
show-password
|
||||||
|
|
@ -48,8 +48,8 @@
|
||||||
<el-input
|
<el-input
|
||||||
v-model="registerForm.confirmPassword"
|
v-model="registerForm.confirmPassword"
|
||||||
type="password"
|
type="password"
|
||||||
auto-complete="off"
|
|
||||||
placeholder="确认密码"
|
placeholder="确认密码"
|
||||||
|
autocomplete="off"
|
||||||
@keyup.enter.native="handleRegister"
|
@keyup.enter.native="handleRegister"
|
||||||
show-password
|
show-password
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="用户昵称" prop="nickName">
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
|
|
@ -182,14 +182,15 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item v-if="form.userId == undefined" label="用户名称" prop="userName">
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item v-if="form.userId == undefined" label="用户密码" prop="password">
|
<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
|
show-password
|
||||||
/>
|
>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -406,6 +407,7 @@ export default {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
phonenumber: [
|
phonenumber: [
|
||||||
|
{ required: true, message: '手机号码不能为空', trigger: 'blur' },
|
||||||
{
|
{
|
||||||
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
||||||
message: '请输入正确的手机号码',
|
message: '请输入正确的手机号码',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue