|
|
|
@ -1,6 +1,8 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div style="height: 100%"> |
|
|
|
<div style="height: 100%"> |
|
|
|
<div class="modelBox"> |
|
|
|
<div class="modelBox" :style="{ |
|
|
|
|
|
|
|
background: background |
|
|
|
|
|
|
|
}"> |
|
|
|
<Header v-if="deptName" :deptName="deptName" /> |
|
|
|
<Header v-if="deptName" :deptName="deptName" /> |
|
|
|
<all v-if="deptName" :deptName="deptName" /> |
|
|
|
<all v-if="deptName" :deptName="deptName" /> |
|
|
|
<div class="box-two"> |
|
|
|
<div class="box-two"> |
|
|
|
@ -29,12 +31,17 @@ import equipmentAnalyze from "./component/equipmentAnalyze.vue"; |
|
|
|
import { getDeptTree } from "@/api/system/dept" |
|
|
|
import { getDeptTree } from "@/api/system/dept" |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import background12 from "../../../public/img/energySources/background12.jpg" |
|
|
|
|
|
|
|
import background13 from "../../../public/img/energySources/background13.jpg" |
|
|
|
|
|
|
|
import background14 from "../../../public/img/energySources/background14.jpg" |
|
|
|
|
|
|
|
import background15 from "../../../public/img/energySources/background15.jpg" |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
deptId: '', |
|
|
|
deptId: '', |
|
|
|
deptName:'' |
|
|
|
deptName: '', |
|
|
|
|
|
|
|
background: '' |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
@ -70,6 +77,22 @@ export default { |
|
|
|
return data; |
|
|
|
return data; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
|
|
|
|
deptName() { |
|
|
|
|
|
|
|
if (this.deptName.length <= 12) { |
|
|
|
|
|
|
|
this.background = `url(${background12}) 0 0 / 100% 100%` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.deptName.length == 13) { |
|
|
|
|
|
|
|
this.background = `url(${background13}) 0 0 / 100% 100%` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.deptName.length == 14) { |
|
|
|
|
|
|
|
this.background = `url(${background14}) 0 0 / 100% 100%` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.deptName.length == 15) { |
|
|
|
|
|
|
|
this.background = `url(${background15}) 0 0 / 100% 100%` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getDept(id) { |
|
|
|
getDept(id) { |
|
|
|
getDeptTree().then(res => { |
|
|
|
getDeptTree().then(res => { |
|
|
|
@ -125,9 +148,8 @@ export default { |
|
|
|
height: 10.8rem; |
|
|
|
height: 10.8rem; |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
padding: 0.96rem 0.24rem 0 0.24rem; |
|
|
|
padding: 0.96rem 0.24rem 0 0.24rem; |
|
|
|
background: url("../../../public/img/energySources/background2.png"); |
|
|
|
|
|
|
|
background-size: 100% 100%; |
|
|
|
|
|
|
|
box-sizing: border-box; |
|
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
|
|
|
|
.box-two { |
|
|
|
.box-two { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
margin-top: 0.22rem; |
|
|
|
margin-top: 0.22rem; |
|
|
|
|