发起变更提交参数修改

This commit is contained in:
2026-09-11 08:58:50 +08:00
parent 8e2bc84b02
commit 7030414146
8 changed files with 177 additions and 53 deletions
@@ -1,6 +1,6 @@
<!-- 变更培训内容 -->
<script setup lang="ts">
import { ref } from 'vue';
import { ref, watch } from 'vue';
import { Icon } from '@iconify/vue'
import { useThemeStore } from '@/store/modules/theme';
import { AiError, aiTraining } from "@/service/api/ai";
@@ -8,9 +8,22 @@ import Footer from './footer.vue';
const themeStore = useThemeStore();
const props = defineProps(['type','isAiOpen','title','currentId','formInfo'])
const props = defineProps(['type','isAiOpen','title','currentId','formInfo', 'currentForm', 'confirmed'])
const emit = defineEmits(['save','submit','confirmTab']);
watch(() => props.currentForm, (newVal:any) => {
// 过滤出需要的字段
const {
attachments,
change_id,
created_at,
id,
updated_at,
...rest
} = newVal;
form.value = rest;
})
const footerRef = ref<any>(null);
const aiFail = (e: any) => {
@@ -92,6 +105,7 @@ defineExpose({form, onRegenerate})
:currentId="props.currentId"
:title="props.title"
:isAiOpen="props.isAiOpen"
:confirmed="props.confirmed"
@save="saveDraft"
@submit="submitConfirm"
@confirmTab="confirmTab"