Commit dc2693ba authored by mengzixuan's avatar mengzixuan

feat: (修改bug): 72955

parent b63ff9cd
<template>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky v-loading="loading">
<template #extra>
<!-- <a-button type="primary" v-if="!disabled" danger> 删除 </a-button>-->
<a-button type="primary" v-if="!disabled" @click="handleSubmit"> 提交 </a-button>
......@@ -439,7 +439,7 @@
formData.value.year = filingCycle;
}
let res = isUpdate.value ? await updateItem(unref(formData)) : await addItem(unref(formData));
loading.value = false;
loading.value = true;
// console.log(res);
createMessage.success('提交成功!');
} catch (e) {
......
<template>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky v-loading="loading">
<template #extra>
<!-- <a-button type="primary" v-if="!disabled" danger> 删除 </a-button>-->
<a-button type="primary" v-if="!disabled" @click="handleSubmit"> 提交 </a-button>
......@@ -448,7 +448,7 @@
console.log(' formData()', unref(formData));
// console.log(' setTableData()', setTableData);
let res = isUpdate.value ? await updateItem(unref(formData)) : await addItem(unref(formData));
loading.value = false;
loading.value = true;
console.log(res);
createMessage.success('提交成功!');
router.back();
......
<template>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky v-loading="loading">
<template #extra>
<!-- <a-button type="primary" v-if="!disabled" danger> 删除 </a-button>-->
<a-button type="primary" v-if="!disabled" @click="handleSubmit"> 提交 </a-button>
......@@ -393,7 +393,7 @@
console.log(' formData()', unref(formData));
// console.log(' setTableData()', setTableData);
let res = isUpdate.value ? await updateItem(unref(formData)) : await addItem(unref(formData));
loading.value = false;
loading.value = true;
console.log(res);
createMessage.success('提交成功!');
router.back();
......
<template>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky v-loading="loading">
<template #extra>
<!-- <a-button type="primary" v-if="!disabled" danger> 删除 </a-button>-->
<a-button type="primary" v-if="!disabled" @click="handleSubmit"> 提交 </a-button>
......@@ -392,7 +392,7 @@
console.log(' formData()', unref(formData));
// console.log(' setTableData()', setTableData);
let res = isUpdate.value ? await updateItem(unref(formData)) : await addItem(unref(formData));
loading.value = false;
loading.value = true;
console.log(res);
createMessage.success('提交成功!');
router.back();
......
<template>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky>
<PageWrapper :title="getTitle" :contentBackground="false" headerSticky v-loading="loading">
<template #extra>
<!-- <a-button type="primary" v-if="!disabled" danger> 删除 </a-button>-->
<a-button type="primary" v-if="!disabled" @click="handleSubmit"> 提交 </a-button>
......@@ -393,7 +393,7 @@
console.log(' formData()', unref(formData));
// console.log(' setTableData()', setTableData);
let res = isUpdate.value ? await updateItem(unref(formData)) : await addItem(unref(formData));
loading.value = false;
loading.value = true;
console.log(res);
createMessage.success('提交成功!');
router.back();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment