tangning před 10 měsíci
rodič
revize
46c76ed254

+ 19 - 0
src/components/Application/src/AppLogo.vue

@@ -20,6 +20,7 @@
   import { PageEnum } from '/@/enums/pageEnum';
   import { useUserStore } from '/@/store/modules/user';
   import { addressKey } from '/@/api/jyUserPlatform/index';
+  import { useMessage } from '/@/hooks/web/useMessage';
   const props = defineProps({
     /**
      * The theme of the current parent component
@@ -35,12 +36,17 @@
     alwaysShowTitle: { type: Boolean },
   });
 
+  const { createConfirm } = useMessage();
   const { prefixCls } = useDesign('app-logo');
   const { getCollapsedShowTitle } = useMenuSetting();
   const userStore = useUserStore();
   const { title1 } = useGlobSetting();
   const zdyTitile = ref(title1)
   const go = useGo();
+  const onClose = () => {
+    window.opener = null;
+    window.open('about:blank', '_top')?.close();
+  };
   function getUrlParams2() {
     let url = window.location.href
     let urlStr = url.split('?')[1]
@@ -51,6 +57,19 @@
     if(address){
       addressKey(address).then(res => {
         console.log(res, 'getUrlParams2')
+        if(res.status == 1){
+          createConfirm({
+            iconType: 'warning',
+            title: '警告',
+            content: `当前账户已停用,请联系平台管理员`,
+            onOk: async () => {
+              onClose()
+            },
+            onCancel: async () => {
+              onClose()
+            },
+          });
+        }
         zdyTitile.value = res.platformName
       })
     }

+ 1 - 1
src/views/lanUser/platformList.vue

@@ -26,7 +26,7 @@
             {
               label: '启用',
               ifShow: getCheckPerm('platformList-enable') && record.status != 0,
-              onClick: handleEdit.bind(null, record.id),
+              onClick: handleEdit.bind(null, record),
             },
             {
               label: '编辑',