mo 2 tahun lalu
induk
melakukan
4b64599456
1 mengubah file dengan 15 tambahan dan 12 penghapusan
  1. 15 12
      src/school/attendance/components/teacher-attendDetail.tsx

+ 15 - 12
src/school/attendance/components/teacher-attendDetail.tsx

@@ -26,6 +26,7 @@ export default defineComponent({
     const attendanceScope = ref(0)
     const teacherAttInfo = ref({} as any)
     const platformApi = ref(globalState.platformApi)
+    console.log(platformApi.value)
     const showContact = ref(false)
     const startContact = () => {
       showContact.value = true
@@ -139,16 +140,18 @@ export default defineComponent({
                   <p class={styles.infoMsgSub}>{teacherAttInfo.value?.orchestraName}</p>
                 </div>
               </div>
-              <div
-                class={styles.msgIcon}
-                onClick={(e: any) => {
-                  e.stopPropagation()
-                  e.preventDefault()
-                  startContact()
-                }}
-              >
-                <img src={msgIcon} alt="" />
-              </div>
+              {platformApi.value == '/api-teacher' ? null : (
+                <div
+                  class={styles.msgIcon}
+                  onClick={(e: any) => {
+                    e.stopPropagation()
+                    e.preventDefault()
+                    startContact()
+                  }}
+                >
+                  <img src={msgIcon} alt="" />
+                </div>
+              )}
             </div>
           </div>
 
@@ -268,7 +271,7 @@ export default defineComponent({
                 <div class={styles.attRang}>
                   <p>
                     {' '}
-                    {teacherAttInfo.value?.signInLongitudeLatitudeStatus === 'NORMAL'
+                    {teacherAttInfo.value?.signOutLongitudeLatitudeStatus === 'NORMAL'
                       ? '考勤范围内'
                       : '考勤范围外'}
                   </p>
@@ -278,7 +281,7 @@ export default defineComponent({
                     }}
                     class={[
                       styles.locP,
-                      teacherAttInfo.value?.signInLongitudeLatitudeStatus === 'NORMAL'
+                      teacherAttInfo.value?.signOutLongitudeLatitudeStatus === 'NORMAL'
                         ? styles.pass
                         : styles.error
                     ]}