|
@@ -10,23 +10,30 @@
|
|
|
<h2>{{ title }}</h2>
|
|
|
</div>
|
|
|
<a-spin v-if="loadingData" />
|
|
|
- <template v-else>
|
|
|
-
|
|
|
+ <template v-else>
|
|
|
<a-tabs centered>
|
|
|
<a-tab-pane key="1" :tab="basicTabText">
|
|
|
- <DynamicForm
|
|
|
- ref="formBase"
|
|
|
- :model="(formModel as any)"
|
|
|
- :options="formOptions"
|
|
|
- />
|
|
|
- <a-button
|
|
|
- type="primary"
|
|
|
- block
|
|
|
- :loading="loading" class="mt-3"
|
|
|
- @click="handleSubmitBase"
|
|
|
- >
|
|
|
- 提交
|
|
|
- </a-button>
|
|
|
+ <ScrollRect scroll="vertical" style="height: 80vh">
|
|
|
+ <DynamicForm
|
|
|
+ ref="formBase"
|
|
|
+ :model="(formModel as any)"
|
|
|
+ :options="formOptions"
|
|
|
+ />
|
|
|
+ </ScrollRect>
|
|
|
+ <div class="d-flex flex-column mt-3">
|
|
|
+ <span>
|
|
|
+ <ExclamationCircleOutlined />
|
|
|
+ 提示:上传文件时请勿离开页面防止上传失败,在关闭页面之前请提交您的修改以防丢失。
|
|
|
+ </span>
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ block
|
|
|
+ :loading="loading" class="mt-3"
|
|
|
+ @click="handleSubmitBase"
|
|
|
+ >
|
|
|
+ 提交
|
|
|
+ </a-button>
|
|
|
+ </div>
|
|
|
</a-tab-pane>
|
|
|
<a-tab-pane v-if="extendFormOptions" key="2" tab="扩展信息">
|
|
|
<DynamicForm
|
|
@@ -56,9 +63,10 @@ import { useRoute, useRouter } from 'vue-router';
|
|
|
import { useWindowOnUnLoadConfirm } from '@/composeable/WindowOnUnLoad';
|
|
|
import { DynamicForm, type IDynamicFormOptions, type IDynamicFormRef } from '@imengyu/vue-dynamic-form';
|
|
|
import { message, Modal, type FormInstance } from 'ant-design-vue';
|
|
|
-import { ArrowLeftOutlined } from '@ant-design/icons-vue';
|
|
|
+import { ArrowLeftOutlined, ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
|
|
import InheritorContent from '@/api/inheritor/InheritorContent';
|
|
|
import type { DataModel } from '@imengyu/js-request-transform';
|
|
|
+import { ScrollRect } from '@imengyu/vue-scroll-rect';
|
|
|
|
|
|
const props = defineProps({
|
|
|
title: {
|
|
@@ -197,7 +205,7 @@ async function loadData() {
|
|
|
function handleBack() {
|
|
|
Modal.confirm({
|
|
|
title: '确定返回吗?',
|
|
|
- content: '返回后将丢失当前填写的信息,若有修改请先提交哦',
|
|
|
+ content: '返回后将丢失当未提交的信息,若有修改请先提交哦!',
|
|
|
okText: '确定',
|
|
|
okType: 'danger',
|
|
|
onOk() {
|