Commit 680d4be3 by yuhao

添加运控管理服务器

parent 0e0c5b32
<template> <template>
<div class="Content" style="display: flex;height: 100%;padding:5px 15px;box-sizing:border-box"> <div class="Content"
<iframe :src="url" style="height: 100%;width:100%" class="iframe"></iframe> style="display: flex;height: 100%;padding:5px 15px;box-sizing:border-box">
<iframe :src="url"
style="height: 100%;width:100%"
class="iframe"></iframe>
<!-- <div class="paneDiv" > --> <!-- <div class="paneDiv" > -->
<!--表格--> <!--表格-->
<!-- <el-table <!-- <el-table
...@@ -64,7 +67,7 @@ export default { ...@@ -64,7 +67,7 @@ export default {
SelectTree, SelectTree,
SelectTreeDialog, SelectTreeDialog,
}, },
data() { data () {
return { return {
tableData: [ tableData: [
{ {
...@@ -99,11 +102,11 @@ export default { ...@@ -99,11 +102,11 @@ export default {
}, },
watch: { watch: {
"$route": { "$route": {
handler(e) { handler (e) {
console.log(e); console.log(e);
// let path = e.params.label.replace('服务器', ''); let path = e.query.path.replace('服务器', '');
// console.log(path); // console.log(path);
// this.url = `http://${path}:19999` this.url = `http://${path}:19999`
// this.url = `http://74.6.54.${e.params.id}:19999` // this.url = `http://74.6.54.${e.params.id}:19999`
}, },
deep: true, deep: true,
...@@ -114,8 +117,8 @@ export default { ...@@ -114,8 +117,8 @@ export default {
</script> </script>
<style> <style>
/* @import url("../assets/styles/iconfont.css"); */ /* @import url("../assets/styles/iconfont.css"); */
.iframe{ .iframe {
border: 0 border: 0;
} }
.el-dialog__body { .el-dialog__body {
padding: 10px 15px !important; padding: 10px 15px !important;
......
...@@ -4,16 +4,16 @@ ...@@ -4,16 +4,16 @@
<div class="left"> <div class="left">
<i class="iconfont iconzidianmaxuanze"></i><span>运控管理</span> <i class="iconfont iconzidianmaxuanze"></i><span>运控管理</span>
</div> </div>
<div class="left" @click="toDp" style=" cursor: pointer;"> <div class="left"
@click="toDp"
style=" cursor: pointer;">
<i class="iconfont icondapingzhongduan"></i><span>运控管理门户</span> <i class="iconfont icondapingzhongduan"></i><span>运控管理门户</span>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
<left-menu <left-menu :propLeftMenu="propLeftMenu"
:propLeftMenu="propLeftMenu"
@changeSidebarIndex="changeSidebarIndex" @changeSidebarIndex="changeSidebarIndex"
:sidebarItemName="sidebarItemName" :sidebarItemName="sidebarItemName"></left-menu>
></left-menu>
<div class="rightContent"> <div class="rightContent">
<router-view></router-view> <router-view></router-view>
</div> </div>
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
components: { components: {
leftMenu, leftMenu,
}, },
data() { data () {
return { return {
sidebarItemName: this.$route.name, sidebarItemName: this.$route.name,
headerTitle: rzcxHeaderTitle, headerTitle: rzcxHeaderTitle,
...@@ -43,13 +43,14 @@ export default { ...@@ -43,13 +43,14 @@ export default {
}; };
}, },
methods: { methods: {
toDp() { toDp () {
let routeData = this.$router.resolve({ let routeData = this.$router.resolve({
path: "/ykgldpIndex", path: "/ykgldpIndex",
}); });
window.open(routeData.href, "_blank"); window.open(routeData.href, "_blank");
}, },
changeSidebarIndex(index, item) { changeSidebarIndex (index, item) {
console.log(index, item, 11);
// debugger // debugger
if (index.indexOf("-") == -1) { if (index.indexOf("-") == -1) {
this.sidebarItemName = item[index - 1].id; this.sidebarItemName = item[index - 1].id;
...@@ -62,11 +63,12 @@ export default { ...@@ -62,11 +63,12 @@ export default {
this.sidebarItemName = item[arr[0] - 1].children[arr[1] - 1].id; this.sidebarItemName = item[arr[0] - 1].children[arr[1] - 1].id;
this.$router.push({ this.$router.push({
path: item[arr[0] - 1].children[arr[1] - 1].id, path: item[arr[0] - 1].children[arr[1] - 1].id,
query: { 'path': item[arr[0] - 1].children[arr[1] - 1].label },
}); });
} }
}, },
}, },
mounted() {}, mounted () { },
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
...@@ -83,10 +85,10 @@ export default { ...@@ -83,10 +85,10 @@ export default {
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
font-weight: bold; font-weight: bold;
color: #ffffff; color: #ffffff;
span{ span {
padding-left: 12px; padding-left: 12px;
} }
i{ i {
font-size: 20px; font-size: 20px;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment