From f9384d412c6b612264d757b195f82b38a000b6e9 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期三, 17 十一月 2021 11:09:26 +0800 Subject: [PATCH] update: [預約顧問] 在送出預約表單時,如果選擇的聯絡時段是全天、全時段,則存入'不限日期', '不限時間' --- PAMapp/pages/questionnaire/_agentNo.vue | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/PAMapp/pages/questionnaire/_agentNo.vue b/PAMapp/pages/questionnaire/_agentNo.vue index 12dfd10..6727003 100644 --- a/PAMapp/pages/questionnaire/_agentNo.vue +++ b/PAMapp/pages/questionnaire/_agentNo.vue @@ -65,11 +65,11 @@ <i class="icon-down down-icon " style="margin-right:18px" @click="showJobDrawer = true" ></i> </div> - + <div class="ques-footer"> <el-button type="primary" - :disabled=" isInitScheduleDisabled || !isSelected" + :disabled=" isInitScheduleDisabled || !isSelected" @click.native="sentDemand">�</el-button> </div> @@ -88,7 +88,7 @@ <PopUpFrame :isOpen.sync="showJobDrawer" drawerSize='60%'> <div class="job-drawerTxt fz-20"> <div class="subTitle mt-18">�璆�</div> - + <div class="radio-btn"> <el-radio-group class="pam-radio-group--col" v-model="staff"> <el-radio-button style="margin-top:30px" text-color='#F09491' label="憭"></el-radio-button> @@ -169,7 +169,7 @@ get disableActionButton(): boolean { return true; }; - + get isConnectMobile(): boolean { return this.connectDevices.includes('mobile'); @@ -196,16 +196,16 @@ this.initScheduleList = [{ selectWeekOptions:[], selectTimesOptions:[], - }] + }] } if (selectDevice === 'email') { this.email = ''; - } + } return; } this.connectDevices.push(selectDevice); - + } sentDemand() { @@ -232,10 +232,12 @@ } getHopeContactTime() { + const isFullDay = (selectedDay: string[]): boolean => selectedDay.length > 6; + const isFullTime = (selectedTime: string[]): boolean => selectedTime.length > 3; const initScheduleList = this.initScheduleList.map(item => { return { - selectWeekOptions: item.selectWeekOptions.toString(), - selectTimesOptions: item.selectTimesOptions.toString() + selectWeekOptions: isFullDay(item.selectWeekOptions) ? '銝����' : item.selectWeekOptions.toString(), + selectTimesOptions: isFullTime(item.selectTimesOptions) ? '銝����' : item.selectTimesOptions.toString() } }) @@ -559,4 +561,4 @@ } } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0