Browse Source

隐藏首页

lr 2 years ago
parent
commit
8631ef3f8f
1 changed files with 15 additions and 37 deletions
  1. 15 37
      src/views/home.vue

+ 15 - 37
src/views/home.vue

@@ -3,29 +3,26 @@
     <el-row>
       <el-image :src="Background" />
     </el-row>
-    <el-row class="routerCardPar">
-      <template v-for="(system, index) in systemList">
-        <!--        <el-card :key="system.id" :body-style="{ padding: '0px' }" class="routerCard"  @click.native="sso(system.systemUrl)">-->
-        <!--          <img :src="system.storage.url" class="image">-->
-        <!--          <div class="content">-->
-        <!--            <span>{{ system.systemName }}</span>-->
-        <!--          </div>-->
-        <!--        </el-card>-->
-        <el-card :key="system.id" class="routerCard" @click.native="sso(system.systemUrl)">
-          <img :src="system.storage.url">
-          <!--          <img src="@/assets/images/hyxt.png" />-->
-          <span>{{ system.systemName }}</span>
-        </el-card>
-      </template>
-    </el-row>
+    <!--    <el-row class="routerCardPar">-->
+    <!--      <template v-for="(system, index) in systemList">-->
+    <!--        &lt;!&ndash;        <el-card :key="system.id" :body-style="{ padding: '0px' }" class="routerCard"  @click.native="sso(system.systemUrl)">&ndash;&gt;-->
+    <!--        &lt;!&ndash;          <img :src="system.storage.url" class="image">&ndash;&gt;-->
+    <!--        &lt;!&ndash;          <div class="content">&ndash;&gt;-->
+    <!--        &lt;!&ndash;            <span>{{ system.systemName }}</span>&ndash;&gt;-->
+    <!--        &lt;!&ndash;          </div>&ndash;&gt;-->
+    <!--        &lt;!&ndash;        </el-card>&ndash;&gt;-->
+    <!--        <el-card :key="system.id" class="routerCard" @click.native="sso(system.systemUrl)">-->
+    <!--          <img :src="system.storage.url">-->
+    <!--          &lt;!&ndash;          <img src="@/assets/images/hyxt.png" />&ndash;&gt;-->
+    <!--          <span>{{ system.systemName }}</span>-->
+    <!--        </el-card>-->
+    <!--      </template>-->
+    <!--    </el-row>-->
   </el-row>
 </template>
 
 <script>
-import { encrypt, decrypt } from '@/utils/rsaEncrypt'
-import { findPassWord } from '@/api/system/user'
 import { mapGetters } from 'vuex'
-import crudDmSystem from '@/api/dm/system/dmSystem'
 import Background from '@/assets/images/bg.png'
 export default {
   data() {
@@ -42,27 +39,8 @@ export default {
     ])
   },
   mounted() {
-    this.queryByUserId(this.user.id)
   },
   methods: {
-    queryByUserId(userId) {
-      crudDmSystem.queryByUserId(userId, 0).then(res => {
-        console.log('res', res)
-        this.systemList = res
-      })
-    },
-    // 单点登录
-    sso(url) {
-      findPassWord(this.user.username).then(res => {
-        const username = encrypt(this.user.username)
-        const password = this.userPassword
-        // location.href = `${url}/#/sso?username=${encodeURIComponent(username)}&password=${encodeURIComponent(password)}`
-        const aEle = document.createElement('a')
-        aEle.href = `${url}?username=${encodeURIComponent(username)}&password=${encodeURIComponent(password)}`
-        aEle.target = '_blank'
-        aEle.click()
-      })
-    }
   }
 }
 </script>