fix: BUG修改

This commit is contained in:
kun 2024-02-28 09:34:08 +08:00
parent 0dca61a3b5
commit 7a65a16195
3 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,6 @@ const allSubmit = async () => {
}; };
const next = async (data: OverviewForm | { engineeringMains: EngineeringMainList } | { annexFiles: Array<AnnexFile> }) => { const next = async (data: OverviewForm | { engineeringMains: EngineeringMainList } | { annexFiles: Array<AnnexFile> }) => {
addRepostData.value = Object.assign({}, addRepostData.value, data); addRepostData.value = Object.assign({}, addRepostData.value, data);
if (active.value >= datas.length - 1) { if (active.value >= datas.length - 1) {
await submit(); await submit();
// router.push("/project/supervision/SupervisionRecord/index"); // router.push("/project/supervision/SupervisionRecord/index");
@ -84,6 +83,7 @@ watch(
emits("confirm"); emits("confirm");
if (n) { if (n) {
active.value = 0; active.value = 0;
addRepostData.value = {};
} else { } else {
} }
} }

View File

@ -336,7 +336,7 @@ const removeEngineeringSingle = (row: EngineeringSingle) => {
i != null && form.value.engineeringSingles?.splice(i, 1); i != null && form.value.engineeringSingles?.splice(i, 1);
}; };
const next = async (formEl: FormInstance | undefined, params: any) => { const next = async (formEl: FormInstance | undefined) => {
if (!formEl) return; if (!formEl) return;
await formEl.validate(async (valid, fields) => { await formEl.validate(async (valid, fields) => {
if (valid) { if (valid) {

View File

@ -190,7 +190,7 @@ const handleAddItem = () => {
}; };
// //
const onEdit = async row => { const onEdit = async row => {
const res = await getIdEngApproveList({ id: row.id }); const res: any = await getIdEngApproveList({ id: row.id });
store.Message = res.result; store.Message = res.result;
approvalTitle.value = "编辑"; approvalTitle.value = "编辑";
detailsDialog.value = true; detailsDialog.value = true;