From 242fad1691917c4fd82c7f04b6190a7113628e93 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期五, 11 三月 2022 15:31:04 +0800 Subject: [PATCH] Merge branch 'pollex-dev' into sit --- PAMapp/components/AddAndReservedBtns.vue | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/PAMapp/components/AddAndReservedBtns.vue b/PAMapp/components/AddAndReservedBtns.vue index f2f3177..14d3cfb 100644 --- a/PAMapp/components/AddAndReservedBtns.vue +++ b/PAMapp/components/AddAndReservedBtns.vue @@ -14,6 +14,8 @@ import { Vue, Component, Prop, Emit, Action, State, namespace } from 'nuxt-property-decorator'; import { Consultant } from '~/shared/models/consultant.model'; +const roleStorage = namespace('localStorage'); + @Component export default class AddAndReservedBtns extends Vue { @@ -29,6 +31,9 @@ @Prop() cusClass!: string; + @roleStorage.Getter + isUserLogin!: boolean; + isVisiblePopUp = false; ////////////////////////////////////////////////////////////////////// @@ -41,6 +46,12 @@ ////////////////////////////////////////////////////////////////////// addConsultant(item: Consultant): void { + if (!this.isUserLogin) { + item = { + ...item, + updateTime: new Date().toISOString() + }; + } this.addToMyConsultantList(item).then(addOk => { addOk && this.openPopUp(); }); -- Gitblit v1.8.0