From afaaa390b00bee8aea26e5de978fdb19c82aaa8a Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期四, 02 十一月 2023 09:23:07 +0800
Subject: [PATCH] 故障报修单

---
 src/views/user/Login.vue |   25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue
index 4caaae3..539640c 100644
--- a/src/views/user/Login.vue
+++ b/src/views/user/Login.vue
@@ -45,6 +45,8 @@
 
 import LoginAccount from './LoginAccount'
 import LoginPhone from './LoginPhone'
+import store from '@/store'
+import { getAction } from '../../api/manage'
 
 export default {
     components: {
@@ -52,7 +54,8 @@
       TwoStepCaptcha,
       // ThirdLogin,
       LoginAccount,
-      LoginPhone
+      LoginPhone,
+      store
     },
     data () {
       return {
@@ -65,6 +68,9 @@
           key:"",
           iv:"",
         },
+        url:{
+          getPrimaryInfo:"/sys/sysAnnouncementSend/getPrimaryInfo"
+        }
       }
     },
     created() {
@@ -106,13 +112,27 @@
       },
       // 鐧诲綍鍚庡彴鎴愬姛
       requestSuccess(loginResult){
-        this.$router.push({ path: "/dashboard/analysis" }).catch(()=>{
+        this.$router.push({ path: "/isps/userAnnouncement" }).catch(()=>{
           console.log('鐧诲綍璺宠浆棣栭〉鍑洪敊,杩欎釜閿欒浠庡摢閲屾潵鐨�')
         })
         this.$notification.success({
           message: '娆㈣繋',
           description: `${timeFix()}锛屾杩庡洖鏉,
         });
+        var userId = store.getters.userInfo.id;
+        let that = this;
+        getAction(this.url.getPrimaryInfo,{userId:userId}).then(res=>{
+            if(res.success){
+                for(var i=0;i<res.result.length;i++){
+                  that.$notification.success({
+                    message: '鏈�鏂版湭璇绘秷鎭��'+res.result[i].msgCategory+'銆�',
+                    description:res.result[i].msgContent,
+                    duration:60,
+                    icon:<a-icon type="exclamation-circle" style="color:red" />,
+                  });
+                }
+            }
+        })
         // this.$refs.loginSelect.show(loginResult)
       },
       //鐧诲綍鍚庡彴澶辫触
@@ -141,6 +161,7 @@
           message: '娆㈣繋',
           description: `${timeFix()}锛屾杩庡洖鏉,
         });
+     
       },
 
       stepCaptchaSuccess () {

--
Gitblit v1.9.3