|
|
@ -10,6 +10,8 @@ |
|
|
|
import {BasicForm, useForm} from '/@/components/Form/index'; |
|
|
|
import {BasicForm, useForm} from '/@/components/Form/index'; |
|
|
|
import {formSchema} from '../ProjectFile.data'; |
|
|
|
import {formSchema} from '../ProjectFile.data'; |
|
|
|
import {saveOrUpdate} from '../ProjectFile.api'; |
|
|
|
import {saveOrUpdate} from '../ProjectFile.api'; |
|
|
|
|
|
|
|
import {useRoute} from "vue-router"; |
|
|
|
|
|
|
|
const route = useRoute(); |
|
|
|
// Emits声明 |
|
|
|
// Emits声明 |
|
|
|
const emit = defineEmits(['register','success']); |
|
|
|
const emit = defineEmits(['register','success']); |
|
|
|
const isUpdate = ref(true); |
|
|
|
const isUpdate = ref(true); |
|
|
@ -43,6 +45,9 @@ |
|
|
|
async function handleSubmit(v) { |
|
|
|
async function handleSubmit(v) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
let values = await validate(); |
|
|
|
let values = await validate(); |
|
|
|
|
|
|
|
//设置项目id |
|
|
|
|
|
|
|
values.porjectId = route.query.id |
|
|
|
|
|
|
|
values.fileFlag = 'fujian' |
|
|
|
setModalProps({confirmLoading: true}); |
|
|
|
setModalProps({confirmLoading: true}); |
|
|
|
//提交表单 |
|
|
|
//提交表单 |
|
|
|
await saveOrUpdate(values, isUpdate.value); |
|
|
|
await saveOrUpdate(values, isUpdate.value); |
|
|
@ -73,4 +78,4 @@ |
|
|
|
:deep(.ant-calendar-picker) { |
|
|
|
:deep(.ant-calendar-picker) { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|