From 48bf4ac213a25983016648b15547d6d797cb48ae Mon Sep 17 00:00:00 2001 From: charlie <charlie@lvguanqingdeMacBook-Pro.local> Date: 星期六, 22 一月 2022 10:25:32 +0800 Subject: [PATCH] update: 新增顧問結案和新增約訪介面中的紅色必填星號 --- PAMapp/components/Interview/InterviewAdd.vue | 46 +++++++++++++++++++++++++++++++--------------- 1 files changed, 31 insertions(+), 15 deletions(-) diff --git a/PAMapp/components/Interview/InterviewAdd.vue b/PAMapp/components/Interview/InterviewAdd.vue index 7a47229..d86d7a6 100644 --- a/PAMapp/components/Interview/InterviewAdd.vue +++ b/PAMapp/components/Interview/InterviewAdd.vue @@ -5,7 +5,7 @@ <span>{{interviewRecord.lastModifiedDate | formatDate}} ��</span> </div> <el-row class="mdTxt mb-10"> - <el-col :xs="16" :sm="20">蝝赤����</el-col> + <el-col :xs="16" :sm="20" class="required">蝝赤����</el-col> <el-col :xs="8" :sm="4" class="text--right" v-if="interviewId"> <span v-if="!isEdit" @@ -77,7 +77,7 @@ @closePopUp="closePopup"> <div class="text--center mdTxt">{{confirmTxt}}嚗�</div> <div class="text--center mdTxt">蝡���赤�嚗�</div> - <div class="text--center mt-30"> + <div class="text--center mt-30" style="display:flex"> <el-button @click="closePopup">�����</el-button> <el-button @click="showInterviewMsgPopup = true" type="primary">���赤�</el-button> </div> @@ -165,24 +165,24 @@ } this.updateRecord(updateInterviewRecord); } - this.updateAppointmentDetail(+this.appointmentId); } private createdRecord(interviewRecordInfo) { appointmentService.createInterviewRecord(interviewRecordInfo).then(res => { - this.confirmTxt = '�憓���' - this.showPopUp(); + this.showPopUp('�憓���'); }); } private updateRecord(updateInterviewRecord) { appointmentService.updateInterviewRecord(updateInterviewRecord).then(res => { - this.confirmTxt = '蝺刻摩����'; - this.showPopUp(); + this.showPopUp('蝺刻摩����'); }); } - private showPopUp() { + private showPopUp(confirmTxt) { + this.confirmTxt = confirmTxt; + this.updateAppointmentDetail(+this.appointmentId); + if (new Date(this.interviewTime).getTime() >= new Date().getTime()) { this.showFutureDateConfirmPopup = true; } else { @@ -224,7 +224,7 @@ } </script> -<style lang="scss" scoped> +<style lang="scss" > .edit-appointment-record { padding-left : 10px; padding-right: 10px; @@ -235,15 +235,31 @@ margin-bottom : 26px; } } -.icon { - color : $PRIMARY_RED; - display : flex; - flex : 1; - justify-content: flex-end; -} .edit-appointment-record-btn{ margin-top: 30px; display: flex; justify-content: center; } +.el-textarea__inner { + border: 1px solid #707070; + padding: 10px 20px; + font-size: 20px; + &::placeholder { + font-size: 20px; + } +} +.required { + position: relative; + transform: translateX(10px); + + &::before { + content: '*'; + font-size: 15px; + font-weight: bold; + position: absolute; + color: #FF0000; + transform: translateX(-10px); + z-index: 5; + } +} </style> -- Gitblit v1.8.0