实时数据-实时趋势页面调试

This commit is contained in:
zhujiyan
2024-07-31 10:42:04 +08:00
parent a545692e33
commit 44684c99ed
9 changed files with 658 additions and 380 deletions

View File

@@ -52,7 +52,7 @@
</div>
</div>
<div class="history_chart" v-loading="loading">
<MyEchart ref="historyChart" :isExport="true" :options="echartsData" />
<MyEchart ref="historyChart" :options="echartsData" />
</div>
</div>
</template>
@@ -144,6 +144,7 @@ const getTrendRequest = async (val: any) => {
}
//初始化趋势图
const init = async () => {
loading.value = true
// 选择指标的时候切换legend内容和data数据
let list: any = []
legendDictList.value?.selectedList?.map((item: any) => {
@@ -173,8 +174,7 @@ const init = async () => {
initSearchFormIndexAndCount(searchForm.value.index)
//查询历史趋势
historyDataList.value = []
loading.value = true
chartTitle.value=''
chartTitle.value = ''
searchForm.value.index.map((item: any, indexs: any) => {
indexOptions.value.map((vv: any) => {
@@ -287,15 +287,15 @@ const init = async () => {
},
grid: {
left: '3%',
right: '3%',
bottom: '10%',
right: '4%',
bottom: '5%',
top: '5%',
containLabel: true
},
xAxis: [
{
type: 'category',
name: '\n\n\n\n\n时间',
name: '时间',
axisLabel: {
color: '#A9AEB2',
fontSize: 12,