|
|
|
@ -1,12 +1,8 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="page system" |
|
|
|
|
style="padding: 0"> |
|
|
|
|
<div class="page system" style="padding: 0"> |
|
|
|
|
<div class="tabs"> |
|
|
|
|
<a class="item" |
|
|
|
|
v-for="(item,index) in tabs" |
|
|
|
|
:key="index" |
|
|
|
|
:class="{active: index == active}" |
|
|
|
|
@click="tabChange(index)">{{ item }}</a> |
|
|
|
|
<a class="item" v-for="(item, index) in tabs" :key="index" :class="{ active: index == active }" |
|
|
|
|
@click="tabChange(index)">{{ item }}</a> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<staff v-if="active == 'staff'"></staff> |
|
|
|
@ -16,8 +12,8 @@ |
|
|
|
|
<div v-if="active == 'task'"> |
|
|
|
|
<p class="tips">账号:admin;密码:huoran@2023</p> |
|
|
|
|
<iframe class="frame" |
|
|
|
|
:src="isPro ? 'https://xxl.huorantech.cn/xxl-job-admin/' : 'http://121.37.12.51:8001/xxl-job-admin/'" |
|
|
|
|
frameborder="0"></iframe> |
|
|
|
|
:src="isPro ? 'https://xxl.huorantech.cn/xxl-job-admin/' : 'http://121.37.12.51:8001/xxl-job-admin/'" |
|
|
|
|
frameborder="0"></iframe> |
|
|
|
|
</div> |
|
|
|
|
<taskLog v-if="active == 'taskLog'"></taskLog> |
|
|
|
|
</div> |
|
|
|
@ -56,7 +52,7 @@ export default { |
|
|
|
|
taskLog |
|
|
|
|
}, |
|
|
|
|
created () { |
|
|
|
|
Setting.dynamicRoute && this.initTabs(); |
|
|
|
|
Setting.dynamicRoute && this.initTabs() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
tabChange (index) { |
|
|
|
@ -90,13 +86,15 @@ export default { |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.system { |
|
|
|
|
min-height: calc(100vh - 170px); |
|
|
|
|
min-height: calc(100vh - 170px); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tips { |
|
|
|
|
padding: 10px; |
|
|
|
|
padding: 10px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.frame { |
|
|
|
|
width: 100%; |
|
|
|
|
height: calc(100vh - 280px); |
|
|
|
|
width: 100%; |
|
|
|
|
height: calc(100vh - 280px); |
|
|
|
|
} |
|
|
|
|
</style> |