|
|
@@ -35,7 +35,7 @@
|
|
|
labelWidth: 190,
|
|
|
rules
|
|
|
}"
|
|
|
- :dialog="{ title: dialogTitle + '菜单', width: 600, confirmLoading }"
|
|
|
+ :dialog="{ title: dialogTitle + '子账号', width: 600, confirmLoading }"
|
|
|
@confirm="handleSubmit"
|
|
|
@close="handleClose"
|
|
|
/>
|
|
|
@@ -248,7 +248,17 @@ const columns: PlusColumn[] = [
|
|
|
type: "password",
|
|
|
clearable: true,
|
|
|
showPassword: true
|
|
|
- }
|
|
|
+ },
|
|
|
+ formItemProps: computed(() => ({
|
|
|
+ required: state.isCreate,
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请输入密码",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }))
|
|
|
},
|
|
|
{
|
|
|
label: "确认密码",
|
|
|
@@ -371,6 +381,7 @@ const handleSubmit = async (values: FieldValues) => {
|
|
|
const handleClose = () => {
|
|
|
// 重置表单校验状态
|
|
|
console.log(dialogForm.value.formInstance);
|
|
|
+ dialogForm.value.formInstance.resetFields();
|
|
|
};
|
|
|
|
|
|
const { buttons } = useTable();
|