From b0733e169ddcdf67e81f70dcf7f4dc948e85ff19 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期五, 21 一月 2022 22:20:12 +0800
Subject: [PATCH] fixed#134599 修正 [ 顧問管理流程 ] 結案狀態的預約單 : 在結案明細中,點擊「發送滿意度通知」沒有反映。

---
 PAMapp/components/Ui/UiField.vue |   51 +++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 37 insertions(+), 14 deletions(-)

diff --git a/PAMapp/components/Ui/UiField.vue b/PAMapp/components/Ui/UiField.vue
index 588af8d..dfa1512 100644
--- a/PAMapp/components/Ui/UiField.vue
+++ b/PAMapp/components/Ui/UiField.vue
@@ -3,7 +3,7 @@
       v-if="fieldDisplayDevice === 'ALL'
       || fieldDisplayDevice === currentDevice">
       <div class="pam-field__label">
-        <div class="pam-field__title"><i :class="fieldIcon"></i>{{ fieldLabel }}</div>
+        <div class="pam-field__title" :style="{ 'font-size': fieldLabelSize }"><i :class="fieldIcon"></i>{{ fieldLabel }}</div>
       </div>
       <p class="pam-field__content">
         <slot></slot>
@@ -14,16 +14,36 @@
 <script lang="ts">
 import { Vue, Component, Prop } from 'vue-property-decorator';
 
-@Component
-export default class UiCarousel extends Vue {
+import UtilsService from '~/shared/services/utils.service';
 
-  @Prop() span!: number;
-  @Prop() icon!: string;
-  @Prop() label!: string;
-  @Prop() content!: string;
-  @Prop() displayDevice!: 'MOBILE' | 'DESKTOP' | 'ALL';
+@Component
+export default class UiField extends Vue {
+
+  @Prop()
+  span!: number;
+
+  @Prop()
+  icon!: string;
+
+  @Prop()
+  label!: string;
+
+  @Prop()
+  content!: string;
+
+  @Prop()
+  labelSize?: number;
+
+  @Prop()
+  displayDevice!: 'MOBILE' | 'DESKTOP' | 'ALL';
 
   currentDevice: 'MOBILE' | 'DESKTOP' = 'MOBILE';
+
+  //////////////////////////////////////////////////////////////////
+
+  mounted(): void {
+    this.currentDevice = UtilsService.isMobileDevice() ? 'MOBILE' : 'DESKTOP';
+  }
 
   get fieldSpan(): number {
     return this.span || 24;
@@ -41,28 +61,31 @@
     return this.displayDevice || 'ALL';
   }
 
+  get fieldLabelSize(): string {
+    return (this.labelSize || 16) + 'px';
+  }
+
 }
 </script>
 
-
 <style lang="scss" scoped>
 .pam-field {
-  display: flex;
+  display       : flex;
   flex-direction: column;
   .pam-field__label {
-    display: flex;
     align-items: center;
+    display    : flex;
     .pam-icon {
       font-size: 12px;
     }
     .pam-field__title {
-      font-size: 16px;
-      font-weight: bold;
-      display: flex;
       align-items: center;
+      display    : flex;
+      font-weight: bold;
     }
   }
   .pam-field__content {
+    display    : flex;
     padding-top: 10px;
   }
 }

--
Gitblit v1.8.0