|
@@ -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">-->
|
|
|
+ <!-- <!– <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>
|
|
|
</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>
|