Compare commits
No commits in common. "c4748444c403fb4303071c1dd9e02c9d3747f37e" and "f07fde0025c83504caa18d4827848eca707d2d53" have entirely different histories.
c4748444c4
...
f07fde0025
|
|
@ -24,6 +24,3 @@ VUE_APP_AICEPS_URL = 'http://10.201.62.87:6891/gz-aiceps-manage'
|
||||||
|
|
||||||
VUE_APP_AICEPS_SERVICE_URL = 'http://localhost:9549'
|
VUE_APP_AICEPS_SERVICE_URL = 'http://localhost:9549'
|
||||||
|
|
||||||
#运维系统
|
|
||||||
VUE_APP_DEVOPS = 'https://www.chinaweal.com.cn:1777/devops-gd'
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,3 @@ VUE_APP_AICEPS_URL = 'http://10.201.62.87:6891/gz-aiceps-manage'
|
||||||
# 年报服务地址 无需写/aiceps-service-web 如和aiccs同域名同端口部署则置空
|
# 年报服务地址 无需写/aiceps-service-web 如和aiccs同域名同端口部署则置空
|
||||||
VUE_APP_AICEPS_SERVICE_URL = ''
|
VUE_APP_AICEPS_SERVICE_URL = ''
|
||||||
|
|
||||||
#运维系统
|
|
||||||
VUE_APP_DEVOPS = 'https://www.chinaweal.com.cn:1777/devops-gd'
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<router-view />
|
<router-view />
|
||||||
<RightBar />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getSsoToken_CK } from './utils/auth'
|
import { getSsoToken_CK } from './utils/auth'
|
||||||
import RightBar from '@/components/RightBar'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
components: { RightBar },
|
|
||||||
computed: {
|
computed: {
|
||||||
currentSSOToken() {
|
currentSSOToken() {
|
||||||
return this.$store.state.app.currentSSOToken
|
return this.$store.state.app.currentSSOToken
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
|
|
@ -1,209 +0,0 @@
|
||||||
<template>
|
|
||||||
<div id="OM" class="OM" :class="{'slider':isSlider,'sliderLeft':sliderLeft}">
|
|
||||||
<div class="show">
|
|
||||||
<div class="tipPic" :class="{'show-active':isActive}" @click="toggleClick" />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="item" style="text-align:center;font-size: 14px" @click="tofillOM">
|
|
||||||
<div class="omlist">
|
|
||||||
<img style="width:100%" src="../../assets/images/devops1.png" alt="">
|
|
||||||
</div>
|
|
||||||
报障
|
|
||||||
</div>
|
|
||||||
<div class="item" style="text-align:center;font-size: 14px" @click="toList">
|
|
||||||
<div class="omlist">
|
|
||||||
<img style="width:100%" src="../../assets/images/devops2.png" alt="">
|
|
||||||
</div>
|
|
||||||
记录
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
isSlider: true,
|
|
||||||
sliderLeft: true,
|
|
||||||
isActive: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
userInfo() {
|
|
||||||
const user = JSON.parse(sessionStorage.getItem('user') || '{}')
|
|
||||||
return {
|
|
||||||
userId: this.$store.state.user.keys,
|
|
||||||
nickname: this.$store.state.user.name,
|
|
||||||
username: this.$store.state.user.username,
|
|
||||||
unitName: this.$store.state.user.unitName,
|
|
||||||
...user
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
hide() {
|
|
||||||
this.isSlider = true
|
|
||||||
this.sliderLeft = false
|
|
||||||
},
|
|
||||||
toggleClick() {
|
|
||||||
this.isActive = !this.isActive
|
|
||||||
if (this.sliderLeft) {
|
|
||||||
this.isSlider = !this.isSlider
|
|
||||||
this.sliderLeft = false
|
|
||||||
} else {
|
|
||||||
this.sliderLeft = !this.sliderLeft
|
|
||||||
this.isSlider = false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
tofillOM() {
|
|
||||||
const { nickname, username, userId, unitName } = this.userInfo
|
|
||||||
if (!userId) {
|
|
||||||
this.$message.warning('请先登录')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const source = 10
|
|
||||||
window.open(`${process.env.VUE_APP_DEVOPS}/#/auth?info=${btoa(encodeURI(JSON.stringify({ userId, username: username || '', name: nickname || unitName || '游客', ts: Date.now() })))}&source=${source}&roleType=outer&redirect=/repair/outerAdd`)
|
|
||||||
},
|
|
||||||
toList() {
|
|
||||||
const { nickname, username, userId, unitName } = this.userInfo
|
|
||||||
if (!userId) {
|
|
||||||
this.$message.warning('请先登录')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const source = 10
|
|
||||||
window.open(`${process.env.VUE_APP_DEVOPS}/#/auth?info=${btoa(encodeURI(JSON.stringify({ userId, username: username || '', name: nickname || unitName || '游客', ts: Date.now() })))}&source=${source}&roleType=outer&redirect=/repair/outer`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
|
|
||||||
.OM {
|
|
||||||
.omlist {
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
margin: 10px auto;
|
|
||||||
font-size: 13px;
|
|
||||||
img {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
width: 80px;
|
|
||||||
height: auto;
|
|
||||||
background: #fff;
|
|
||||||
padding: 10px 0;
|
|
||||||
position: fixed;
|
|
||||||
margin-right: 42px;
|
|
||||||
border-radius: 20px;
|
|
||||||
right: -100px;
|
|
||||||
bottom: 150px;
|
|
||||||
cursor: pointer;
|
|
||||||
box-shadow: 8px 8px 20px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
z-index: 1000;
|
|
||||||
|
|
||||||
ul {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-card__body {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.show {
|
|
||||||
width: 45px;
|
|
||||||
height: 100%;
|
|
||||||
position: absolute;
|
|
||||||
left: -35px;
|
|
||||||
top: 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
z-index: 9999;
|
|
||||||
transform: rotate(0);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.tipPic {
|
|
||||||
width: 45px;
|
|
||||||
height: 45px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background: url('../../assets/images/show.png');
|
|
||||||
background-size: 100%;
|
|
||||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.tipPic:hover {
|
|
||||||
background: url('../../assets/images/active.png');
|
|
||||||
background-size: 100%;
|
|
||||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.show-active {
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.item{
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.item:last-child{
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.slider {
|
|
||||||
animation: mymove 1s ease-in-out 0s 1 alternate forwards;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sliderLeft {
|
|
||||||
animation: moveLeft 1s ease-in-out 0s 1 alternate forwards;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes mymove {
|
|
||||||
0% {
|
|
||||||
right: 0%;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
right: -100px;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@-webkit-keyframes mymove {
|
|
||||||
0% {
|
|
||||||
|
|
||||||
/* right:6%; */
|
|
||||||
right: 0%;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
right:-100px;
|
|
||||||
/* right: -6%; */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes moveLeft {
|
|
||||||
0% {
|
|
||||||
right: -100px;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@-webkit-keyframes moveLeft {
|
|
||||||
0% {
|
|
||||||
right: -100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
Loading…
Reference in New Issue