能源权限
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<template>
|
||||
<div
|
||||
class="searchBarBox divHeight"
|
||||
ref="searchBarRef"
|
||||
:style="{ paddingRight: isFold ? '55px' : '0px' }">
|
||||
ref="searchBarRef">
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline">
|
||||
@@ -200,13 +199,6 @@
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span
|
||||
v-if="isFold"
|
||||
class="foldClass"
|
||||
@click="switchMode">
|
||||
{{ isExpand ? '收起' : '展开' }}
|
||||
<svg-icon :icon-class="isExpand ? 'upward' : 'downward'" />
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -217,16 +209,8 @@ import { getFactoryList } from '@/api/core/base/factory';
|
||||
import moment from 'moment';
|
||||
export default {
|
||||
name: 'searchArea',
|
||||
props: {
|
||||
isFold: {
|
||||
// 多行模式(默认否)
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isExpand: false, // 展开收起
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
energyTypeId: null,
|
||||
@@ -525,16 +509,6 @@ export default {
|
||||
let value = new Date(newData).getTime();
|
||||
return value;
|
||||
},
|
||||
switchMode() {
|
||||
// 展开和收起切换
|
||||
this.isExpand = !this.isExpand;
|
||||
const element = this.$refs.searchBarRef;
|
||||
if (this.isExpand) {
|
||||
element.classList.remove('divHeight');
|
||||
} else {
|
||||
element.classList.add('divHeight');
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -573,21 +547,6 @@ export default {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
}
|
||||
.searchBarBox .foldClass {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
right: 0;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
color: #0b58ff;
|
||||
}
|
||||
.searchBarBox .foldClass .iconfont {
|
||||
font-size: 14px;
|
||||
}
|
||||
.divHeight {
|
||||
height: 45px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.separateStyle {
|
||||
display: inline-block;
|
||||
width: 1px;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
id="contrastAnalysisBox">
|
||||
<!-- 搜索工作栏 -->
|
||||
<search-area
|
||||
:isFold="isFold"
|
||||
@submit="getList"
|
||||
@export="exportExl" />
|
||||
<div v-show="chartData.length">
|
||||
@@ -38,7 +37,6 @@ export default {
|
||||
mixins: [tableHeightMixin],
|
||||
data() {
|
||||
return {
|
||||
isFold: false,
|
||||
chartData: [],
|
||||
timeDim: '',
|
||||
tableProps: [],
|
||||
@@ -46,13 +44,6 @@ export default {
|
||||
tableH: this.tableHeight(250) / 2,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
window.addEventListener('resize', () => {
|
||||
this.isFold = this.searchBarWidth('contrastAnalysisBox', 1437);
|
||||
// console.log(document.getElementById("contrastAnalysisBox").offsetWidth)
|
||||
});
|
||||
this.isFold = this.searchBarWidth('contrastAnalysisBox', 1437);
|
||||
},
|
||||
methods: {
|
||||
_setTableHeight() {
|
||||
this.tableH = this.tableHeight(250) / 2;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<template>
|
||||
<div
|
||||
class="searchBarBox divHeight"
|
||||
ref="searchBarRef"
|
||||
:style="{ paddingRight: isFold ? '55px' : '0px' }">
|
||||
class="searchBarBox"
|
||||
ref="searchBarRef">
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline">
|
||||
@@ -172,9 +171,9 @@
|
||||
</el-button>
|
||||
<span
|
||||
class="separateStyle"
|
||||
v-hasPermi="['analysis:trend-analysis:export']"></span>
|
||||
v-hasPermi="['analysis:energy-analysis:query']"></span>
|
||||
<el-button
|
||||
v-hasPermi="['analysis:trend-analysis:export']"
|
||||
v-hasPermi="['analysis:energy-analysis:query']"
|
||||
type="primary"
|
||||
size="small"
|
||||
plain
|
||||
@@ -183,13 +182,6 @@
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span
|
||||
v-if="isFold"
|
||||
class="foldClass"
|
||||
@click="switchMode">
|
||||
{{ isExpand ? '收起' : '展开' }}
|
||||
<svg-icon :icon-class="isExpand ? 'upward' : 'downward'" />
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -198,16 +190,8 @@ import { getEnergyTypeListAll } from '@/api/base/energyType';
|
||||
import moment from 'moment';
|
||||
export default {
|
||||
name: 'searchArea',
|
||||
props: {
|
||||
isFold: {
|
||||
// 多行模式(默认否)
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isExpand: false, // 展开收起
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
energyTypeId: null,
|
||||
@@ -509,16 +493,6 @@ export default {
|
||||
let value = new Date(newData).getTime();
|
||||
return value;
|
||||
},
|
||||
switchMode() {
|
||||
// 展开和收起切换
|
||||
this.isExpand = !this.isExpand;
|
||||
const element = this.$refs.searchBarRef;
|
||||
if (this.isExpand) {
|
||||
element.classList.remove('divHeight');
|
||||
} else {
|
||||
element.classList.add('divHeight');
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -557,21 +531,6 @@ export default {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
}
|
||||
.searchBarBox .foldClass {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
right: 0;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
color: #0b58ff;
|
||||
}
|
||||
.searchBarBox .foldClass .iconfont {
|
||||
font-size: 14px;
|
||||
}
|
||||
.divHeight {
|
||||
height: 45px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.separateStyle {
|
||||
display: inline-block;
|
||||
width: 1px;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
id="trendAnalysisBox">
|
||||
<!-- 搜索工作栏 -->
|
||||
<search-area
|
||||
:isFold="isFold"
|
||||
@submit="getList"
|
||||
@export="exportExl" />
|
||||
<div v-show="chartData.length">
|
||||
@@ -33,20 +32,12 @@ export default {
|
||||
components: { SearchArea, LineChart },
|
||||
data() {
|
||||
return {
|
||||
isFold: false,
|
||||
chartData: [],
|
||||
timeDim: '',
|
||||
tableProps: [],
|
||||
list: [],
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
window.addEventListener('resize', () => {
|
||||
this.tableH = this.tableHeight(260);
|
||||
this.isFold = this.searchBarWidth('trendAnalysisBox', 1480);
|
||||
});
|
||||
this.isFold = this.searchBarWidth('trendAnalysisBox', 1480);
|
||||
},
|
||||
methods: {
|
||||
getList(params) {
|
||||
this.timeDim = params.timeDim;
|
||||
|
||||
Reference in New Issue
Block a user