发起变更提交参数修改

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 { h, ref } from 'vue';
import { h, ref, watch } from 'vue';
import { Icon } from '@iconify/vue'
import { useThemeStore } from '@/store/modules/theme';
import { getColorWithOpacity } from "@/utils/common";
@@ -8,9 +8,17 @@ import { AiError, aiAcceptance } from "@/service/api/ai";
import Footer from './footer.vue';
const themeStore = useThemeStore();
const props = defineProps(['type','orgTree','isAiOpen','title','currentId','formInfo'])
const props = defineProps(['type','orgTree','isAiOpen','title','currentId','formInfo','currentForm','confirmed'])
const emit = defineEmits(['save','submit','confirmTab']);
watch(() => props.currentForm, (newVal:any) => {
const omit = (obj:any, fields: string[]) => Object.fromEntries(Object.entries(obj).filter(([k]) => !fields.includes(k)));
const result = newVal?.items.map((item:any) => omit(item, [
'created_at', 'updated_at', 'change_id', 'org_name'
]));
list.value = result || [];
})
// 是否是ai生成
const isAiGenerated = ref<boolean>(false);
const footerRef = ref<any>(null);
@@ -284,6 +292,7 @@ defineExpose({list, onRegenerate})
:currentId="props.currentId"
:title="props.title"
:isAiOpen="props.isAiOpen"
:confirmed="props.confirmed"
@save="saveDraft"
@submit="submitConfirm"
@confirmTab="confirmTab"