From 74200a6b3e1fe5b027575ef65e829af952d379a8 Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Mon, 28 Aug 2023 11:35:29 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B9=81=E0=B8=9B=E0=B8=A3=20sugges?= =?UTF-8?q?tion=20=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=84=E0=B8=94=E0=B9=89?= =?UTF-8?q?=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B9=84=E0=B8=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/03_leave/views/result.vue | 33 ++++++++++++++------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/modules/03_leave/views/result.vue b/src/modules/03_leave/views/result.vue index df76563..425a58c 100644 --- a/src/modules/03_leave/views/result.vue +++ b/src/modules/03_leave/views/result.vue @@ -107,22 +107,22 @@ const adjust_option = ref([ const saveForm = () => { let hasError = false if ( - reasonWork.value === 0 - // reasonWorkOther.value.length < 0 || - // timeThink.value === 0 || - // exitFactor.value === 0 || - // exitFactorOther.value.length < 0 || - // adjust.value === 0 || - // adjustOther.value.length < 0 || - // realReason.value.length < 1 || - // notExitFactor.value.length < 1 || - // haveJob.value === null || - // haveJobReason.value.length < 0 || - // suggestFriends.value === null || - // suggestFriendsReason.value.length < 0 || - // futureWork.value === null || - // futureWorkReason.value.length < 0 || - // suggestion.value.length < 1 + reasonWork.value === 0 && + reasonWorkOther.value.length < 1 || + timeThink.value === 0 || + exitFactor.value === 0 && + exitFactorOther.value.length < 1 || + adjust.value === 0 && + adjustOther.value.length < 1 || + realReason.value.length < 1 || + notExitFactor.value.length < 1 || + haveJob.value === null && + haveJobReason.value.length < 1 || + suggestFriends.value === null && + suggestFriendsReason.value.length < 1 || + futureWork.value === null && + futureWorkReason.value.length < 1 || + suggestion.value.length < 1 ) { hasError = true } else { @@ -185,6 +185,7 @@ const createResult = async () => { SuggestFriendsReason: suggestFriendsReason.value, FutureWork: futureWork.value, FutureWorkReason: futureWorkReason.value, + Suggestion:suggestion.value } await http .post(config.API.listquestionnaire(), data)