From ed5ed8c8282bccaaafb1f431fbe49e631fa8d5aa Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Tue, 19 Jul 2022 10:22:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E7=94=B3=E8=AF=B7=20=20=20?= =?UTF-8?q?=20=E5=BA=94=E7=94=A8=E8=B5=84=E6=BA=90=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/apply.vue | 53 +++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index e4ff9bc0..849231e5 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -454,11 +454,11 @@ if (res.data.msg === 'success') { mybus.emit('getSgcNum') router.push({ - path: '/DetailsPageconetent', - query: { - select: '组件服务', - }, - }) + path: '/DetailsPageconetent', + query: { + select: '组件服务', + }, + }) } }) } @@ -468,29 +468,36 @@ }) console.log('提交数据==========================>', formName, ids) if (formName.system.length !== 0) { + if (formName.applicationSystem.length == 0) { + formName.applicationSystem = '' + } submitApply(formName).then((res) => { // applySuccess.value = false message.success('申请提交成功,请到消息中心查看!') console.log('能力申请================>', res) - if (ids && ids.length > 0) { - sgcDel({ ids: ids }).then((res) => { - if (res.data.msg === 'success') { - mybus.emit('getSgcNum') - router.push({ - path: '/DetailsPageconetent', - query: { - select: '组件服务', - }, - }) - } - }) + if (res.data.code == 0) { + if (ids && ids.length > 0) { + sgcDel({ ids: ids }).then((res) => { + if (res.data.msg === 'success') { + mybus.emit('getSgcNum') + router.push({ + path: '/DetailsPageconetent', + query: { + select: '组件服务', + }, + }) + } + }) + } else { + router.push({ + path: '/DetailsPageconetent', + query: { + select: '组件服务', + }, + }) + } } else { - router.push({ - path: '/DetailsPageconetent', - query: { - select: '组件服务', - }, - }) + message.error('申请失败!') } }) }