20260325稳定版
This commit is contained in:
@@ -19,6 +19,13 @@
|
||||
styleResponsive ? { md: 19, sm: 19, xs: 24 } : { flex: '1' }
|
||||
"
|
||||
>
|
||||
<a-form-item label="分类" name="type">
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入分类"
|
||||
v-model:value="form.type"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="名称" name="title">
|
||||
<a-input
|
||||
allow-clear
|
||||
@@ -49,7 +56,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, watch } from "vue";
|
||||
import { Form, message } from "ant-design-vue";
|
||||
import { assignObject, uuid } from "ele-admin-pro";
|
||||
import { assignObject } from "ele-admin-pro";
|
||||
import { addLawNotaryConfig, updateLawNotaryConfig } from "@/api/law/lawNotaryConfig";
|
||||
import { LawNotaryConfig } from "@/api/law/lawNotaryConfig/model";
|
||||
import { useThemeStore } from "@/store/modules/theme";
|
||||
@@ -86,6 +93,7 @@ const formRef = ref<FormInstance | null>(null);
|
||||
const form = reactive<LawNotaryConfig>({
|
||||
id: undefined,
|
||||
title: undefined,
|
||||
type: undefined,
|
||||
configList: undefined,
|
||||
userId: undefined,
|
||||
deleted: undefined,
|
||||
@@ -100,7 +108,14 @@ const updateVisible = (value: boolean) => {
|
||||
};
|
||||
|
||||
// 表单验证规则
|
||||
const rules = reactive({});
|
||||
const rules = reactive({
|
||||
title: [
|
||||
{ required: true, message: "请输入名称", trigger: "blur" }
|
||||
],
|
||||
type: [
|
||||
{ required: true, message: "请输入分类", trigger: "blur" }
|
||||
]
|
||||
});
|
||||
|
||||
const configList = ref<any[]>([]);
|
||||
const addConfig = () => {
|
||||
|
||||
Reference in New Issue
Block a user