首页取Locked属性判断是否锁定
This commit is contained in:
parent
10846b3a2e
commit
c1bc43dd56
@ -484,6 +484,7 @@ const StatusListData = () => {
|
|||||||
igenpower: item.attributeMap.igenpower,
|
igenpower: item.attributeMap.igenpower,
|
||||||
ikwhthisday: item.attributeMap.ikwhthisday,
|
ikwhthisday: item.attributeMap.ikwhthisday,
|
||||||
iturbineoperationmode: state,
|
iturbineoperationmode: state,
|
||||||
|
locked: item.attributeMap.locked,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -515,18 +516,6 @@ const powerChartData: { time: any; values: any } = {
|
|||||||
time: {},
|
time: {},
|
||||||
values: {},
|
values: {},
|
||||||
}
|
}
|
||||||
/*const powerChartData = {
|
|
||||||
time: {
|
|
||||||
iGenPower:['00:00','00:05','00:10','00:15'],
|
|
||||||
iTheoreticalPower:['00:00','00:05','00:10','00:15'],
|
|
||||||
iWindSpeed:['00:00','00:05','00:10','00:15']
|
|
||||||
},
|
|
||||||
values: {
|
|
||||||
iGenPower:[0,5,2,7],
|
|
||||||
iTheoreticalPower:[0,0,0,0],
|
|
||||||
iWindSpeed:[3,8,9,1]
|
|
||||||
},
|
|
||||||
}*/
|
|
||||||
const initpowerChart = () => {
|
const initpowerChart = () => {
|
||||||
const powerChart = state.charts.powerChart ?? echarts.init(powerChartRef.value as unknown as HTMLElement)
|
const powerChart = state.charts.powerChart ?? echarts.init(powerChartRef.value as unknown as HTMLElement)
|
||||||
const option = {
|
const option = {
|
||||||
@ -1127,10 +1116,9 @@ const tabhandleClick = () => {
|
|||||||
inittrendChart(trendChartType.value)
|
inittrendChart(trendChartType.value)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getAllChartData()
|
getAllChartData()
|
||||||
//inittrendChart(trendChartType.value)
|
|
||||||
//initpowerChart()
|
|
||||||
createScroll()
|
createScroll()
|
||||||
overviewList()
|
overviewList()
|
||||||
StatusListData()
|
StatusListData()
|
||||||
|
@ -56,6 +56,9 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="fanlist-bottom">
|
||||||
|
<el-tag v-if="item.attributeMap.locked === 1" class="tag-panel is-danger">已锁定</el-tag>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -183,7 +186,8 @@ const animationDuration=reactive({
|
|||||||
.fanlist-main{
|
.fanlist-main{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 10px;
|
/*padding: 10px;*/
|
||||||
|
padding: 10px 10px 0 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
.fanlist-pic{
|
.fanlist-pic{
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -241,7 +245,7 @@ const animationDuration=reactive({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.fanlist-text{
|
.fanlist-text{
|
||||||
margin-top:30px;
|
margin-top:10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.content-number{
|
.content-number{
|
||||||
@ -255,5 +259,14 @@ const animationDuration=reactive({
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.fanlist-bottom{
|
||||||
|
display: flex;
|
||||||
|
justify-content: end;
|
||||||
|
height: 24px;
|
||||||
|
.tag-panel{
|
||||||
|
border-radius: 0 0 8px 0;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user