Commit 1a23b014 authored by liwei's avatar liwei

修改了暂存提交不跳转页面的问题

parent ce00b998
...@@ -41,7 +41,7 @@ const biddingPlan: AppRouteModule = { ...@@ -41,7 +41,7 @@ const biddingPlan: AppRouteModule = {
component: () => import('@/views/biddingManagement/statisticsBidding.vue'), component: () => import('@/views/biddingManagement/statisticsBidding.vue'),
meta: { meta: {
auth: '/www/dist/index.html#/biddingManagement/index', auth: '/www/dist/index.html#/biddingManagement/index',
title: '统计招标情况', title: '招标情况统计',
orderNo: 3, orderNo: 3,
}, },
}, },
......
...@@ -228,7 +228,6 @@ ...@@ -228,7 +228,6 @@
handleNew(params); handleNew(params);
} }
async function handleSubmit(isSubmit) { async function handleSubmit(isSubmit) {
console.log('1111:')
for(let i = 0; i < tabsFormSchema.length; i++){ for(let i = 0; i < tabsFormSchema.length; i++){
let formSchema = tabsFormSchema[i].Form[1] let formSchema = tabsFormSchema[i].Form[1]
const { updateSchema } = formSchema const { updateSchema } = formSchema
...@@ -266,7 +265,6 @@ ...@@ -266,7 +265,6 @@
}, },
]) ])
} else { } else {
console.log('222222')
updateSchema([ updateSchema([
{field: 'projectName', required: true}, {field: 'projectName', required: true},
{field: 'fundingSource', required: true}, {field: 'fundingSource', required: true},
...@@ -325,8 +323,12 @@ ...@@ -325,8 +323,12 @@
addItemData.businessId = routeId.value; addItemData.businessId = routeId.value;
addItemData.businessType = '招标管理'; addItemData.businessType = '招标管理';
const showDatem = await addItemApi(addItemData); const showDatem = await addItemApi(addItemData);
if (isSubmit === '0'){
createMessage.success('暂存成功!');
}else{
createMessage.success('提交成功!'); createMessage.success('提交成功!');
router.back(); }
// router.back();
} catch (e) { } catch (e) {
// 验证失败或出错,切换到对应标签页 // 验证失败或出错,切换到对应标签页
console.log(e); console.log(e);
......
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