fix: 组件替换

This commit is contained in:
leiqiaochu 2023-03-14 17:51:51 +08:00
parent ea5761846e
commit fa5e34a77e
3 changed files with 27 additions and 27 deletions

View File

@ -1,21 +1,21 @@
<template>
<div>
<a-radio-group
<j-radio-group
v-if="quickBtn"
default-value="today"
button-style="solid"
v-model:value="radioValue"
@change="(e) => handleBtnChange(e.target.value)"
>
<a-radio-button
<j-radio-button
v-for="item in quickBtnList"
:key="item.value"
:value="item.value"
>
{{ item.label }}
</a-radio-button>
</a-radio-group>
<a-range-picker
</j-radio-button>
</j-radio-group>
<j-range-picker
format="YYYY-MM-DD HH:mm:ss"
valueFormat="YYYY-MM-DD HH:mm:ss"
style="margin-left: 12px"
@ -23,7 +23,7 @@
v-model:value="rangeVal"
:allowClear="false"
>
</a-range-picker>
</j-range-picker>
</div>
</template>

View File

@ -4,12 +4,12 @@
<div class="content-left">
<div class="content-left-title">
<span>{{ title }}</span>
<a-tooltip placement="top" v-if="tooltip">
<j-tooltip placement="top" v-if="tooltip">
<template #title>
<span>{{ tooltip }}</span>
</template>
<AIcon type="QuestionCircleOutlined" />
</a-tooltip>
</j-tooltip>
</div>
<div class="content-left-value">{{ value }}</div>
</div>
@ -23,7 +23,7 @@
<div class="top-card-footer">
<template v-for="(item, index) in footer" :key="index">
<span v-if="!item.status">{{ item.title }}</span>
<a-badge v-else :text="item.title" :status="item.status" />
<j-badge v-else :text="item.title" :status="item.status" />
<div class="footer-item-value">{{ item.value }}</div>
</template>
</div>

View File

@ -1,24 +1,24 @@
<template>
<page-container>
<div class="DashBoardBox">
<a-row :gutter="24">
<a-col :span="6">
<j-row :gutter="24">
<j-col :span="6">
<TopCard
title="产品数量"
:img="getImage('/device/device-product.png')"
:footer="productFooter"
:value="productTotal"
></TopCard>
</a-col>
<a-col :span="6">
</j-col>
<j-col :span="6">
<TopCard
title="设备数量"
:img="getImage('/device/device-number.png')"
:footer="deviceFooter"
:value="deviceTotal"
></TopCard
></a-col>
<a-col :span="6"
></j-col>
<j-col :span="6"
><TopCard
title="当前在线"
:footer="onlineFooter"
@ -29,18 +29,18 @@
:chartYData="barChartYData"
></BarChart> -->
<Charts :options="onlineOptions"></Charts> </TopCard
></a-col>
<a-col :span="6"
></j-col>
<j-col :span="6"
><TopCard
title="今日设备信息量"
:footer="messageFooter"
:value="dayMessage"
>
<Charts :options="TodayDevOptions"></Charts> </TopCard
></a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="24">
></j-col>
</j-row>
<j-row :gutter="24">
<j-col :span="24">
<div class="message-card">
<Guide title="设备消息">
<template #extra>
@ -56,18 +56,18 @@
<Charts :options="devMegOptions"></Charts>
</div>
</div>
</a-col>
</a-row>
<a-row :span="24">
<a-col :span="24">
</j-col>
</j-row>
<j-row :span="24">
<j-col :span="24">
<div class="device-position">
<Guide title="设备分布"></Guide>
<div class="device-map">
<Amap></Amap>
</div>
</div>
</a-col>
</a-row>
</j-col>
</j-row>
</div>
</page-container>
</template>