321
This commit is contained in:
BIN
cdTMP/321.zip
Normal file
BIN
cdTMP/321.zip
Normal file
Binary file not shown.
@@ -1,12 +1,3 @@
|
|||||||
<!--
|
|
||||||
- MineAdmin is committed to providing solutions for quickly building web applications
|
|
||||||
- Please view the LICENSE file that was distributed with this source code,
|
|
||||||
- For the full copyright and license information.
|
|
||||||
- Thank you very much for using MineAdmin.
|
|
||||||
-
|
|
||||||
- @Author X.Mo<root@imoi.cn>
|
|
||||||
- @Link https://gitee.com/xmo/mineadmin-vue
|
|
||||||
-->
|
|
||||||
<template>
|
<template>
|
||||||
<ma-form-item
|
<ma-form-item
|
||||||
v-if="typeof props.component.display == 'undefined' || props.component.display === true"
|
v-if="typeof props.component.display == 'undefined' || props.component.display === true"
|
||||||
|
|||||||
@@ -18,9 +18,12 @@
|
|||||||
<a-form-item
|
<a-form-item
|
||||||
field="username"
|
field="username"
|
||||||
:hide-label="true"
|
:hide-label="true"
|
||||||
:rules="[{ required: true, message: '用户名不能为空' }]"
|
:rules="[
|
||||||
|
{ required: true, message: '用户名不能为空' },
|
||||||
|
{ maxLength: 30, message: '用户名不能超过30个字符' }
|
||||||
|
]"
|
||||||
>
|
>
|
||||||
<a-input v-model="form.username" class="w-full" size="large" placeholder="用户名" allow-clear>
|
<a-input v-model="form.username" class="w-full" size="large" placeholder="用户名" allow-clear :max-length="30">
|
||||||
<template #prefix><icon-user /></template>
|
<template #prefix><icon-user /></template>
|
||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -28,9 +31,12 @@
|
|||||||
<a-form-item
|
<a-form-item
|
||||||
field="password"
|
field="password"
|
||||||
:hide-label="true"
|
:hide-label="true"
|
||||||
:rules="[{ required: true, message: '密码不能为空' }]"
|
:rules="[
|
||||||
|
{ required: true, message: '密码不能为空' },
|
||||||
|
{ maxLength: 30, message: '密码不超过30字符' }
|
||||||
|
]"
|
||||||
>
|
>
|
||||||
<a-input-password v-model="form.password" placeholder="请输入密码" size="large" allow-clear>
|
<a-input-password v-model="form.password" placeholder="请输入密码" size="large" allow-clear :max-length="30">
|
||||||
<template #prefix><icon-lock /></template>
|
<template #prefix><icon-lock /></template>
|
||||||
</a-input-password>
|
</a-input-password>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -46,7 +52,7 @@
|
|||||||
}
|
}
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<a-input v-model="form.code" placeholder="请输入验证码" size="large" allow-clear>
|
<a-input v-model="form.code" placeholder="请输入验证码" size="large" allow-clear :max-length="4">
|
||||||
<template #prefix><icon-safe /></template>
|
<template #prefix><icon-safe /></template>
|
||||||
<template #append>
|
<template #append>
|
||||||
<verify-code ref="Verify" />
|
<verify-code ref="Verify" />
|
||||||
@@ -83,8 +89,8 @@ const router = useRouter()
|
|||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
// 绑定登录form的数据
|
// 绑定登录form的数据
|
||||||
// const form = reactive({ username: "superAdmin", password: "admin123", code: "" })
|
const form = reactive({ username: "superAdmin", password: "admin123", code: "" })
|
||||||
const form = reactive({ username: "", password: "", code: "" })
|
// const form = reactive({ username: "", password: "", code: "" })
|
||||||
// 获取验证码dom && arco表单loading
|
// 获取验证码dom && arco表单loading
|
||||||
const Verify = ref(null)
|
const Verify = ref(null)
|
||||||
const loading = ref(null)
|
const loading = ref(null)
|
||||||
|
|||||||
@@ -348,28 +348,24 @@ const columns = ref([
|
|||||||
search: true,
|
search: true,
|
||||||
dataIndex: "operation",
|
dataIndex: "operation",
|
||||||
formType: "editor",
|
formType: "editor",
|
||||||
addDefaultValue: ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "问题影响",
|
title: "问题影响",
|
||||||
hide: true,
|
hide: true,
|
||||||
dataIndex: "result",
|
dataIndex: "result",
|
||||||
formType: "editor",
|
formType: "editor",
|
||||||
addDefaultValue: ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "原因分析",
|
title: "原因分析",
|
||||||
hide: true,
|
hide: true,
|
||||||
dataIndex: "analysis",
|
dataIndex: "analysis",
|
||||||
formType: "editor",
|
formType: "editor",
|
||||||
addDefaultValue: ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "影响域分析",
|
title: "影响域分析",
|
||||||
hide: true,
|
hide: true,
|
||||||
dataIndex: "effect_scope",
|
dataIndex: "effect_scope",
|
||||||
formType: "editor",
|
formType: "editor",
|
||||||
addDefaultValue: ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "改正措施",
|
title: "改正措施",
|
||||||
@@ -382,7 +378,6 @@ const columns = ref([
|
|||||||
title: "回归结果",
|
title: "回归结果",
|
||||||
hide: true,
|
hide: true,
|
||||||
dataIndex: "verify_result",
|
dataIndex: "verify_result",
|
||||||
addDefaultValue: "",
|
|
||||||
formType: "editor"
|
formType: "editor"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -313,41 +313,35 @@ const crudColumns = ref([
|
|||||||
search: true,
|
search: true,
|
||||||
dataIndex: "operation",
|
dataIndex: "operation",
|
||||||
formType: "editor",
|
formType: "editor",
|
||||||
addDefaultValue: ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "问题影响",
|
title: "问题影响",
|
||||||
hide: true,
|
hide: true,
|
||||||
dataIndex: "result",
|
dataIndex: "result",
|
||||||
formType: "editor",
|
formType: "textarea",
|
||||||
addDefaultValue: ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "原因分析",
|
title: "原因分析",
|
||||||
hide: true,
|
hide: true,
|
||||||
dataIndex: "analysis",
|
dataIndex: "analysis",
|
||||||
formType: "editor",
|
formType: "textarea",
|
||||||
addDefaultValue: ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "影响域分析",
|
title: "影响域分析",
|
||||||
hide: true,
|
hide: true,
|
||||||
dataIndex: "effect_scope",
|
dataIndex: "effect_scope",
|
||||||
formType: "editor",
|
formType: "textarea",
|
||||||
addDefaultValue: ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "改正措施",
|
title: "改正措施",
|
||||||
hide: true,
|
hide: true,
|
||||||
dataIndex: "solve",
|
dataIndex: "solve",
|
||||||
addDefaultValue: "",
|
|
||||||
formType: "textarea"
|
formType: "textarea"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "回归结果",
|
title: "回归结果",
|
||||||
hide: true,
|
hide: true,
|
||||||
dataIndex: "verify_result",
|
dataIndex: "verify_result",
|
||||||
addDefaultValue: "",
|
|
||||||
formType: "editor"
|
formType: "editor"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user