固定住运行环境状态
This commit is contained in:
@@ -68,13 +68,19 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSwitchSystem() {
|
handleSwitchSystem() {
|
||||||
this.$http.defaults.baseURL = this.currentLib == "apps" ? "/lan" :
|
this.changeConfig()
|
||||||
this.currentLib == "sass" ? "/saas" : "/"
|
sessionStorage.setItem("prj", this.currentLib)
|
||||||
this.getApps()
|
this.getApps()
|
||||||
this.logout()
|
this.logout()
|
||||||
|
},
|
||||||
|
changeConfig() {
|
||||||
|
this.$http.defaults.baseURL = this.currentLib == "apps" ? "/lan" :
|
||||||
|
this.currentLib == "sass" ? "/saas" : "/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.currentLib = sessionStorage.getItem("prj") || "apps"
|
||||||
|
this.changeConfig()
|
||||||
this.agentSign(this.$route.query)
|
this.agentSign(this.$route.query)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
@@ -4,21 +4,21 @@
|
|||||||
<div class="select-gird" v-if="component != 'Map' && isAdmin">
|
<div class="select-gird" v-if="component != 'Map' && isAdmin">
|
||||||
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
||||||
<div @click="linkTo('./SelectGird')">
|
<div @click="linkTo('./SelectGird')">
|
||||||
{{params.girdName}}
|
{{ params.girdName }}
|
||||||
<img src="./components/img/down-icon.png" alt="" class="down-icon">
|
<img src="./components/img/down-icon.png" alt="" class="down-icon">
|
||||||
</div>
|
</div>
|
||||||
<span @click="linkTo('./SetGird')" v-if="checkType == 2">网格配置</span>
|
<span @click="linkTo('./SetGird')" v-if="checkType == 2">网格配置</span>
|
||||||
</div>
|
</div>
|
||||||
<component v-if="refresh && isAdmin" :is="component" @change="onChange" :params="params"> </component>
|
<component v-if="refresh && isAdmin" :is="component" @change="onChange" :params="params"></component>
|
||||||
<div class="tabs" v-if="isTab && isAdmin">
|
<div class="tabs" v-if="isTab && isAdmin">
|
||||||
<div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index">
|
<div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index">
|
||||||
<img :src="tabIndex == index ? item.activeImg : item.img" alt="" />
|
<img :src="tabIndex == index ? item.activeImg : item.img" alt=""/>
|
||||||
<p :class="tabIndex == index ? 'color-3267F0' : ''">{{ item.text }}</p>
|
<p :class="tabIndex == index ? 'color-3267F0' : ''">{{ item.text }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!isAdmin" class="empty">
|
<div v-if="!isAdmin" class="empty">
|
||||||
<img src="./components/img/no-admin.png" alt="">
|
<img src="./components/img/no-admin.png" alt="">
|
||||||
<p>没有网格员权限<br />无法查看网格信息哦~</p>
|
<p>没有网格员权限<br/>无法查看网格信息哦~</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -96,26 +96,25 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
linkTo(url) {
|
linkTo(url) {
|
||||||
uni.navigateTo({ url })
|
uni.navigateTo({url})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '网格管理'
|
document.title = '网格管理'
|
||||||
|
this.isGirdUser()
|
||||||
uni.$on('hideTab', () => {
|
uni.$on('hideTab', () => {
|
||||||
this.isTab = false
|
this.isTab = false
|
||||||
})
|
})
|
||||||
uni.$on('showTab', () => {
|
uni.$on('showTab', () => {
|
||||||
this.isTab = true
|
this.isTab = true
|
||||||
})
|
})
|
||||||
},
|
|
||||||
onLoad() {
|
|
||||||
this.isGirdUser()
|
|
||||||
uni.$on('goback', (res) => {
|
uni.$on('goback', (res) => {
|
||||||
this.params = res
|
this.params = res
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if(!this.tabIndex) {
|
if (!this.tabIndex) {
|
||||||
uni.$emit('nextList')
|
uni.$emit('nextList')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -126,22 +125,26 @@ export default {
|
|||||||
.AppGridManagement {
|
.AppGridManagement {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
.pad-t32{
|
|
||||||
|
.pad-t32 {
|
||||||
padding-top: 32px;
|
padding-top: 32px;
|
||||||
}
|
}
|
||||||
.select-gird{
|
|
||||||
|
.select-gird {
|
||||||
width: calc(100% - 60px);
|
width: calc(100% - 60px);
|
||||||
padding: 24px 32px;
|
padding: 24px 32px;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
margin: 0 30px 32px;
|
margin: 0 30px 32px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
img{
|
|
||||||
|
img {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
div{
|
|
||||||
|
div {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: calc(100% - 144px);
|
width: calc(100% - 144px);
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
@@ -151,11 +154,13 @@ export default {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333;
|
color: #333;
|
||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
img{
|
|
||||||
|
img {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
span{
|
|
||||||
|
span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 112px;
|
width: 112px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
@@ -166,6 +171,7 @@ export default {
|
|||||||
line-height: 48px;
|
line-height: 48px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs {
|
.tabs {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 98px;
|
height: 98px;
|
||||||
@@ -175,14 +181,17 @@ export default {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 56px;
|
width: 56px;
|
||||||
height: 56px;
|
height: 56px;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
font-family: PingFangSC-Medium, PingFang SC;
|
font-family: PingFangSC-Medium, PingFang SC;
|
||||||
@@ -190,19 +199,23 @@ export default {
|
|||||||
color: #c4cad4;
|
color: #c4cad4;
|
||||||
line-height: 8px;
|
line-height: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-3267F0 {
|
.color-3267F0 {
|
||||||
color: #3267f0;
|
color: #3267f0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.empty{
|
|
||||||
|
.empty {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
img{
|
|
||||||
|
img {
|
||||||
width: 282px;
|
width: 282px;
|
||||||
height: 306px;
|
height: 306px;
|
||||||
margin: 136px auto 0;
|
margin: 136px auto 0;
|
||||||
}
|
}
|
||||||
p{
|
|
||||||
|
p {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
color: #999;
|
color: #999;
|
||||||
|
|||||||
Reference in New Issue
Block a user