发起变更提交参数修改
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user