From 2f0789c087589a053f6c80e3bfb17b0a4c2c4514 Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期三, 01 十二月 2021 17:54:30 +0800 Subject: [PATCH] Merge branch 'master' of ssh://192.168.0.10:29418/pcalife/PAM --- PAMapp/components/QuickFilter/QuickFilterSelector.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/PAMapp/components/QuickFilter/QuickFilterSelector.vue b/PAMapp/components/QuickFilter/QuickFilterSelector.vue index a6d6924..915eca1 100644 --- a/PAMapp/components/QuickFilter/QuickFilterSelector.vue +++ b/PAMapp/components/QuickFilter/QuickFilterSelector.vue @@ -7,7 +7,7 @@ <span class="smTxt_bold text--primary" v-if="questionOption.name === 'communicationStyles'" - >�銴</span> + >(��憭��蝔�)</span> <span class="smTxt_bold text--primary" v-if="questionOption.name === 'avgScore'" @@ -25,6 +25,7 @@ :label="i.value" :name="i.value" :class="i.className" + @change="selectedCommunicationStyles" ></el-checkbox> </el-checkbox-group> </div> @@ -81,7 +82,7 @@ @Prop() isOpenQuestionPopUp!: boolean; @Prop() confirmItem!: Selected[]; - @Watch('isOpenQuestionPopUp') onPopUpChange() { + @Watch('isOpenQuestionPopUp', {immediate: true}) onPopUpChange() { this.pickedItem = { communicationStyles: this.communicationStyles, status: '', @@ -113,6 +114,12 @@ || name === 'communicationStyles' && !this.pickedItem[name].length } + selectedCommunicationStyles() { + if (this.pickedItem.communicationStyles.length > 2) { + this.pickedItem.communicationStyles.shift(); + } + } + @Emit('confirm') confirm() { const name = this.questionOption.name; -- Gitblit v1.8.0