sachinganesh před 2 roky
rodič
revize
85ee06163f
2 změnil soubory, kde provedl 33 přidání a 0 odebrání
  1. 22
    0
      assets/js/home.js
  2. 11
    0
      assets/js/mian.js

+ 22
- 0
assets/js/home.js Zobrazit soubor

@@ -0,0 +1,22 @@
1
+import { getCookie } from "./cookiehelper.js";
2
+import { initListIndex } from "./list.index.js";
3
+
4
+initListIndex();
5
+
6
+$('#detailBtn').click(function () {
7
+    $('.bdy-ul').addClass('d-none');
8
+    // Unibase.Themes.Compact.Components.Notification.Instance().loadReminderDetails(105013010001972,105010260000090,'Details','null',6,0,null)
9
+    const cookie = getCookie('_idty');
10
+    if (cookie) {
11
+        const {
12
+            unibaseId,
13
+            tenantId,
14
+            userId
15
+        } = JSON.parse(cookie);
16
+        debugger;
17
+        $('#detailIframe').html(
18
+            `<iframe width="100%" style="min-height:746px"  name="srcframe" id="srcframe" class="srcframe" src="http://localhost:1188/#/${unibaseId}/${tenantId}/${userId}/106457720000011/100010270000325/loadDetail"></iframe>`
19
+        );
20
+    }
21
+
22
+});

+ 11
- 0
assets/js/mian.js Zobrazit soubor

@@ -0,0 +1,11 @@
1
+import { isAuthenticated } from "./cookiehelper.js";
2
+
3
+function checkUser(params) {
4
+    if (isAuthenticated()) {
5
+        window.location = './authentication';
6
+    } else {
7
+        window.location = './login';
8
+    }
9
+}
10
+
11
+checkUser();

Loading…
Zrušit
Uložit