diff --git a/src/views/base/profile/PasswordModal.vue b/src/views/base/profile/PasswordModal.vue index 032df744..6f93b4a4 100644 --- a/src/views/base/profile/PasswordModal.vue +++ b/src/views/base/profile/PasswordModal.vue @@ -19,9 +19,7 @@ const [registerForm, { resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: passwordSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(() => { diff --git a/src/views/system/area/AreaModal.vue b/src/views/system/area/AreaModal.vue new file mode 100644 index 00000000..25ca1c96 --- /dev/null +++ b/src/views/system/area/AreaModal.vue @@ -0,0 +1,40 @@ + + diff --git a/src/views/system/area/area.data.ts b/src/views/system/area/area.data.ts new file mode 100644 index 00000000..5473570a --- /dev/null +++ b/src/views/system/area/area.data.ts @@ -0,0 +1,28 @@ +import { BasicColumn, FormSchema } from '@/components/Table' + +export const columns: BasicColumn[] = [ + { + title: '编号', + dataIndex: 'id', + width: 100 + }, + { + title: '名字', + dataIndex: 'name', + width: 180 + } +] + +export const formSchema: FormSchema[] = [ + { + label: 'IP', + field: 'IP', + required: true, + component: 'Input' + }, + { + label: '地址', + field: 'result', + component: 'Input' + } +] diff --git a/src/views/system/area/index.vue b/src/views/system/area/index.vue index 3b64cfc4..519f2583 100644 --- a/src/views/system/area/index.vue +++ b/src/views/system/area/index.vue @@ -1,3 +1,46 @@ + diff --git a/src/views/system/dept/DeptModal.vue b/src/views/system/dept/DeptModal.vue index db7e071a..3620cf8c 100644 --- a/src/views/system/dept/DeptModal.vue +++ b/src/views/system/dept/DeptModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getDeptApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/dict/DictDataModal.vue b/src/views/system/dict/DictDataModal.vue index d4bdfbb7..c2f75934 100644 --- a/src/views/system/dict/DictDataModal.vue +++ b/src/views/system/dict/DictDataModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: dataFormSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getDictDataApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } else { setFieldsValue({ dictType: data.record diff --git a/src/views/system/dict/DictTypeModal.vue b/src/views/system/dict/DictTypeModal.vue index 2b395af1..60585ee7 100644 --- a/src/views/system/dict/DictTypeModal.vue +++ b/src/views/system/dict/DictTypeModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: typeFormSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getDictTypeApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/errorCode/ErrorCodeModal.vue b/src/views/system/errorCode/ErrorCodeModal.vue index ab50c507..6426cd26 100644 --- a/src/views/system/errorCode/ErrorCodeModal.vue +++ b/src/views/system/errorCode/ErrorCodeModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getErrorCodeApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/mail/account/AccountModal.vue b/src/views/system/mail/account/AccountModal.vue index 655e9159..4c79f749 100644 --- a/src/views/system/mail/account/AccountModal.vue +++ b/src/views/system/mail/account/AccountModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getMailAccountApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/mail/template/TemplateModal.vue b/src/views/system/mail/template/TemplateModal.vue index 57698f16..e4579e54 100644 --- a/src/views/system/mail/template/TemplateModal.vue +++ b/src/views/system/mail/template/TemplateModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getMailTemplateApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/menu/MenuModal.vue b/src/views/system/menu/MenuModal.vue index ff96c06f..1571522d 100644 --- a/src/views/system/menu/MenuModal.vue +++ b/src/views/system/menu/MenuModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getMenuApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/notice/NoticeModal.vue b/src/views/system/notice/NoticeModal.vue index 5dd34d07..f0dbfa4b 100644 --- a/src/views/system/notice/NoticeModal.vue +++ b/src/views/system/notice/NoticeModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getNoticeApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/oauth2/client/ClientModal.vue b/src/views/system/oauth2/client/ClientModal.vue index fff606b4..bc528338 100644 --- a/src/views/system/oauth2/client/ClientModal.vue +++ b/src/views/system/oauth2/client/ClientModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getOAuth2ClientApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/post/PostModal.vue b/src/views/system/post/PostModal.vue index ccfbdd66..6d8dcc83 100644 --- a/src/views/system/post/PostModal.vue +++ b/src/views/system/post/PostModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getPostApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/role/RoleModal.vue b/src/views/system/role/RoleModal.vue index aa31f957..f5a9015d 100644 --- a/src/views/system/role/RoleModal.vue +++ b/src/views/system/role/RoleModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getRoleApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/role/RoleScopeModal.vue b/src/views/system/role/RoleScopeModal.vue index cefa30a6..358e521d 100644 --- a/src/views/system/role/RoleScopeModal.vue +++ b/src/views/system/role/RoleScopeModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: dataScopeFormSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getRoleApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/sensitiveWord/SensitiveWordModal.vue b/src/views/system/sensitiveWord/SensitiveWordModal.vue index 5e0c7636..d0646839 100644 --- a/src/views/system/sensitiveWord/SensitiveWordModal.vue +++ b/src/views/system/sensitiveWord/SensitiveWordModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getSensitiveWordApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/sms/SmsTemplateModal.vue b/src/views/system/sms/SmsTemplateModal.vue index 0740c045..437ea7a7 100644 --- a/src/views/system/sms/SmsTemplateModal.vue +++ b/src/views/system/sms/SmsTemplateModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getSmsTemplateApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/tenant/TenantModal.vue b/src/views/system/tenant/TenantModal.vue index 5a1e649d..2f822a41 100644 --- a/src/views/system/tenant/TenantModal.vue +++ b/src/views/system/tenant/TenantModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getTenantApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/tenantPackage/TenantPackageModal.vue b/src/views/system/tenantPackage/TenantPackageModal.vue index 3b6c64a7..b9e313f2 100644 --- a/src/views/system/tenantPackage/TenantPackageModal.vue +++ b/src/views/system/tenantPackage/TenantPackageModal.vue @@ -37,9 +37,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -54,9 +52,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data rowId.value = res.id const menus = await listSimpleMenusApi() menuTree.value = handleTree(menus, 'id') - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } }) diff --git a/src/views/system/user/UserModal.vue b/src/views/system/user/UserModal.vue index 874b7cff..6e0e0de4 100644 --- a/src/views/system/user/UserModal.vue +++ b/src/views/system/user/UserModal.vue @@ -19,9 +19,7 @@ const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({ baseColProps: { span: 24 }, schemas: formSchema, showActionButtonGroup: false, - actionColOptions: { - span: 23 - } + actionColOptions: { span: 23 } }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -32,9 +30,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data if (unref(isUpdate)) { const res = await getUserApi(data.record.id) rowId.value = res.id - setFieldsValue({ - ...res - }) + setFieldsValue({ ...res }) } })