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