This commit is contained in:
2024-06-23 18:00:45 +08:00
parent 5ac86aaf60
commit 2e47a273d2
5 changed files with 16 additions and 30 deletions

BIN
cdTMP/321.zip Normal file

Binary file not shown.

View File

@@ -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>
<ma-form-item
v-if="typeof props.component.display == 'undefined' || props.component.display === true"

View File

@@ -18,9 +18,12 @@
<a-form-item
field="username"
: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>
</a-input>
</a-form-item>
@@ -28,9 +31,12 @@
<a-form-item
field="password"
: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>
</a-input-password>
</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 #append>
<verify-code ref="Verify" />
@@ -83,8 +89,8 @@ const router = useRouter()
const route = useRoute()
const userStore = useUserStore()
// 绑定登录form的数据
// const form = reactive({ username: "superAdmin", password: "admin123", code: "" })
const form = reactive({ username: "", password: "", code: "" })
const form = reactive({ username: "superAdmin", password: "admin123", code: "" })
// const form = reactive({ username: "", password: "", code: "" })
// 获取验证码dom && arco表单loading
const Verify = ref(null)
const loading = ref(null)

View File

@@ -348,28 +348,24 @@ const columns = ref([
search: true,
dataIndex: "operation",
formType: "editor",
addDefaultValue: ""
},
{
title: "问题影响",
hide: true,
dataIndex: "result",
formType: "editor",
addDefaultValue: ""
},
{
title: "原因分析",
hide: true,
dataIndex: "analysis",
formType: "editor",
addDefaultValue: ""
},
{
title: "影响域分析",
hide: true,
dataIndex: "effect_scope",
formType: "editor",
addDefaultValue: ""
},
{
title: "改正措施",
@@ -382,7 +378,6 @@ const columns = ref([
title: "回归结果",
hide: true,
dataIndex: "verify_result",
addDefaultValue: "",
formType: "editor"
},
{

View File

@@ -313,41 +313,35 @@ const crudColumns = ref([
search: true,
dataIndex: "operation",
formType: "editor",
addDefaultValue: ""
},
{
title: "问题影响",
hide: true,
dataIndex: "result",
formType: "editor",
addDefaultValue: ""
formType: "textarea",
},
{
title: "原因分析",
hide: true,
dataIndex: "analysis",
formType: "editor",
addDefaultValue: ""
formType: "textarea",
},
{
title: "影响域分析",
hide: true,
dataIndex: "effect_scope",
formType: "editor",
addDefaultValue: ""
formType: "textarea",
},
{
title: "改正措施",
hide: true,
dataIndex: "solve",
addDefaultValue: "",
formType: "textarea"
},
{
title: "回归结果",
hide: true,
dataIndex: "verify_result",
addDefaultValue: "",
formType: "editor"
},
{