fix: BUG修改
This commit is contained in:
parent
0dca61a3b5
commit
7a65a16195
@ -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 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user