|
|
|
@ -124,9 +124,9 @@ |
|
|
|
|
<button type="button">确定</button> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
<el-dialog class="view" :visible.sync="manageVisible" width="1280px" @close="closeData" :close-on-click-modal="false" :show-close="false" custom-class="data-dia"> |
|
|
|
|
<div class="system" style="margin-top:-8vh" v-if="manageVisible" width="1280px"> |
|
|
|
|
<router-view></router-view> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
@ -150,7 +150,8 @@ export default { |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
'$route.path':function(val){ // 控制弹框显隐 |
|
|
|
|
if(val.split('/').pop()==="manage"){ |
|
|
|
|
let arr = val.split('/').slice(-2) |
|
|
|
|
if(arr.pop()==="manage"||arr[0]==='manage'){ |
|
|
|
|
this.manageVisible = true |
|
|
|
|
}else{ |
|
|
|
|
this.manageVisible = false |
|
|
|
@ -158,10 +159,13 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created(){ |
|
|
|
|
console.log(this.$route.path.split('/').pop(),'path'); |
|
|
|
|
if(this.$route.path.split('/').pop()==="manage"){// 使用children当组件 |
|
|
|
|
let arr = this.$route.path.split('/').slice(-2) |
|
|
|
|
if(arr.pop()==="manage"||arr[0]==='manage'){ |
|
|
|
|
this.manageVisible = true |
|
|
|
|
}else{ |
|
|
|
|
this.manageVisible = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
@ -186,7 +190,7 @@ export default { |
|
|
|
|
// 展示系统管理 |
|
|
|
|
showManage(){ |
|
|
|
|
this.manageVisible=true |
|
|
|
|
this.$router.push('/index/list/manage') |
|
|
|
|
this.$router.push('/index/list/manage/consumerClient') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
@ -194,9 +198,10 @@ export default { |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.wrap{ |
|
|
|
|
// position: relative; |
|
|
|
|
// min-height: calc(100vh - 68px); |
|
|
|
|
|
|
|
|
|
position: relative; |
|
|
|
|
width: 100%; |
|
|
|
|
height: calc(100vh - 68px); |
|
|
|
|
overflow: hidden; |
|
|
|
|
.sth{ |
|
|
|
|
position: absolute; |
|
|
|
|
&.cp{ |
|
|
|
@ -348,6 +353,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
/deep/.data-dia{ |
|
|
|
|
border-radius: 16px; |
|
|
|
|
margin-top: 11vh!important; |
|
|
|
|
.el-dialog__header{ |
|
|
|
|
padding: 0; |
|
|
|
|
border-bottom: 0; |
|
|
|
@ -428,7 +434,12 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
/deep/ .view .el-dialog__body{ |
|
|
|
|
padding: 0!important; |
|
|
|
|
.system{ |
|
|
|
|
position: absolute; |
|
|
|
|
top: 12%; |
|
|
|
|
left: 50%; |
|
|
|
|
z-index: 9; |
|
|
|
|
transform: translate(-50%,0); |
|
|
|
|
// display: flex; |
|
|
|
|
} |
|
|
|
|
</style> |