页面样式调整
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<div>
|
||||
<div class="select-container">
|
||||
<el-form :inline="true">
|
||||
<el-form-item label="Pcs">
|
||||
<el-form-item label="PCS">
|
||||
<el-select v-model="pcs" placeholder="请选择" :loading="loading" loading-text="正在加载数据">
|
||||
<el-option :label="item.name" :value="item.id" v-for="(item,index) in pcsOptions" :key="index+'sblxOptions'"></el-option>
|
||||
</el-select>
|
||||
@ -11,7 +11,7 @@
|
||||
<el-form-item label="时间选择">
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
type="date"
|
||||
range-separator="至"
|
||||
start-placeholder="开始时间"
|
||||
:picker-options="pickerOptions"
|
||||
@ -56,8 +56,8 @@ export default {
|
||||
return time.getTime() > Date.now();
|
||||
},
|
||||
},
|
||||
defaultDateRange:[],//默认展示的时间
|
||||
dateRange:[],
|
||||
defaultDateRange:'',//默认展示的时间
|
||||
dateRange:'',
|
||||
loading:false,
|
||||
pcs:'',
|
||||
pcsOptions: [
|
||||
@ -88,7 +88,7 @@ export default {
|
||||
// 重置
|
||||
onReset(){
|
||||
this.pcs = ''
|
||||
this.dateRange=[]
|
||||
this.dateRange=''
|
||||
this.getData()
|
||||
},
|
||||
getData(){
|
||||
@ -140,9 +140,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
const now = new Date();
|
||||
const lastMonth = new Date(now.getFullYear(), now.getMonth() - 1, 1);
|
||||
this.defaultDateRange = [lastMonth, now];
|
||||
this.defaultDateRange =new Date();
|
||||
this.initChart()
|
||||
this.getData()
|
||||
},
|
||||
|
@ -69,7 +69,7 @@ export default {
|
||||
btnList:[
|
||||
{name:'电网功率',id:'dwgl'},
|
||||
{name:'负载功率',id:'fzgl'},
|
||||
{name:'电储能功率',id:'cngl'},
|
||||
{name:'储能功率',id:'cngl'},
|
||||
{name:'光伏功率',id:'gfgl'},
|
||||
],
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
<div class="total-data">
|
||||
<div>总充电量:<span class="point">1390988kWh</span></div>
|
||||
<div>总放电量:<span class="point">988kWh</span></div>
|
||||
<div>总效益:<span class="point">99%</span></div>
|
||||
<div>综合效率:<span class="point">99%</span></div>
|
||||
</div>
|
||||
<div id="dlzbChart" style="height: 310px"></div>
|
||||
</div>
|
||||
|
@ -29,11 +29,6 @@ const childrenRoute = dzjk[0].children[0].children.find(item=> item.name==='Djzk
|
||||
console.log('设备监控子路由',childrenRoute)
|
||||
export default {
|
||||
name:'DzjkTjbb',
|
||||
computed: {
|
||||
theme() {
|
||||
return this.$store.state.settings.theme
|
||||
},
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
childrenRoute,
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div>
|
||||
<div class="select-container">
|
||||
<el-form :inline="true">
|
||||
<el-form-item label="Pcs">
|
||||
<el-form-item label="PCS">
|
||||
<el-select v-model="pcs" placeholder="请选择" :loading="loading" loading-text="正在加载数据">
|
||||
<el-option :label="item.name" :value="item.id" v-for="(item,index) in pcsOptions" :key="index+'sblxOptions'"></el-option>
|
||||
</el-select>
|
||||
|
Reference in New Issue
Block a user