|
@@ -118,7 +118,140 @@
|
|
<view class="project-content">
|
|
<view class="project-content">
|
|
<view class="remind-chart">
|
|
<view class="remind-chart">
|
|
<qiun-data-charts type="pie" :opts="opts" :chartData="chartData" :canvas2d="true"
|
|
<qiun-data-charts type="pie" :opts="opts" :chartData="chartData" :canvas2d="true"
|
|
- canvasId="bmaEHARrUHkgUsKxeQaXEEonSPXpGtUP">
|
|
|
|
|
|
+ canvasId="remind1">
|
|
|
|
+ </qiun-data-charts>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="project-item">
|
|
|
|
+ <view class="project-title">
|
|
|
|
+ <view class="title-line"></view>
|
|
|
|
+ <view class="title-label">工单管理</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="project-content">
|
|
|
|
+ <view class="order-title">内部工单</view>
|
|
|
|
+ <view class="order-item">
|
|
|
|
+ <view class="order-content">
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">工单数</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">已完成</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">未完成</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="order-chart">
|
|
|
|
+ <qiun-data-charts type="arcbar" :opts="orderOpts" :chartData="orderChartData" :canvas2d="true"
|
|
|
|
+ canvasId="order1">
|
|
|
|
+ </qiun-data-charts>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="order-title">外部工单</view>
|
|
|
|
+ <view class="order-item">
|
|
|
|
+ <view class="order-content">
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">工单数</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">已完成</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">未完成</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="order-chart">
|
|
|
|
+ <qiun-data-charts type="arcbar" :opts="orderOpts" :chartData="orderChartData" :canvas2d="true"
|
|
|
|
+ canvasId="order2">
|
|
|
|
+ </qiun-data-charts>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="project-item">
|
|
|
|
+ <view class="project-title">
|
|
|
|
+ <view class="title-line"></view>
|
|
|
|
+ <view class="title-label">设备管理</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="project-content">
|
|
|
|
+ <view class="device-content">
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">总设备</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="line"></view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">在线</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="line"></view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">离线</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="line"></view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">故障</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="device-content">
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">总设备</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="line"></view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">在线</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="line"></view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">离线</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="line"></view>
|
|
|
|
+ <view class="order-item-li">
|
|
|
|
+ <view class="order-number">0</view>
|
|
|
|
+ <view class="order-label">故障</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="project-item">
|
|
|
|
+ <view class="project-title">
|
|
|
|
+ <view class="title-line"></view>
|
|
|
|
+ <view class="title-label">客户管理</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="project-content">
|
|
|
|
+ <view class="bill-content" style="margin: 30rpx 0;">
|
|
|
|
+ <view class="air-item">
|
|
|
|
+ <view class="test-item">
|
|
|
|
+ <view class="name">总客户</view>
|
|
|
|
+ <view class="number">120</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="line"></view>
|
|
|
|
+ <view class="test-item">
|
|
|
|
+ <view class="name">月新增</view>
|
|
|
|
+ <view class="number">120</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="line"></view>
|
|
|
|
+ <view class="test-item">
|
|
|
|
+ <view class="name">洽商客户</view>
|
|
|
|
+ <view class="number">120</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="remind-chart">
|
|
|
|
+ <qiun-data-charts type="line" :opts="clinetOpts" :chartData="clientChartData" :ontouch="true"
|
|
|
|
+ :canvas2d="true" canvasId="clent1">
|
|
</qiun-data-charts>
|
|
</qiun-data-charts>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -152,6 +285,72 @@
|
|
linearType: "custom"
|
|
linearType: "custom"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ orderChartData: {
|
|
|
|
+ series: [{
|
|
|
|
+ name: "",
|
|
|
|
+ color: "#2fc25b",
|
|
|
|
+ data: 0.8
|
|
|
|
+ }]
|
|
|
|
+ },
|
|
|
|
+ orderOpts: {
|
|
|
|
+ color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
|
|
|
|
+ "#ea7ccc"
|
|
|
|
+ ],
|
|
|
|
+ padding: undefined,
|
|
|
|
+ title: {
|
|
|
|
+ name: "80%",
|
|
|
|
+ fontSize: 15,
|
|
|
|
+ color: "#2fc25b"
|
|
|
|
+ },
|
|
|
|
+ subtitle: {
|
|
|
|
+ name: "",
|
|
|
|
+ fontSize: 25,
|
|
|
|
+ color: "#666666"
|
|
|
|
+ },
|
|
|
|
+ extra: {
|
|
|
|
+ arcbar: {
|
|
|
|
+ type: "default",
|
|
|
|
+ width: 12,
|
|
|
|
+ backgroundColor: "#E9E9E9",
|
|
|
|
+ startAngle: 0.75,
|
|
|
|
+ endAngle: 0.25,
|
|
|
|
+ gap: 2,
|
|
|
|
+ linearType: "custom"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ clientChartData: {
|
|
|
|
+ categories: ["24/01", "24/02", "24/03", "24/04", "24/05", "24/06"],
|
|
|
|
+ series: [{
|
|
|
|
+ name: "新增客户",
|
|
|
|
+ data: [35, 8, 25, 37, 4, 20]
|
|
|
|
+ }]
|
|
|
|
+ },
|
|
|
|
+ //您可以通过修改 config-ucharts.js 文件中下标为 ['line'] 的节点来配置全局默认参数,如都是默认参数,此处可以不传 opts 。实际应用过程中 opts 只需传入与全局默认参数中不一致的【某一个属性】即可实现同类型的图表显示不同的样式,达到页面简洁的需求。
|
|
|
|
+ clientOpts: {
|
|
|
|
+ color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
|
|
|
|
+ "#ea7ccc"
|
|
|
|
+ ],
|
|
|
|
+ padding: [15, 15, 0, 5],
|
|
|
|
+ enableScroll: true,
|
|
|
|
+ legend: {},
|
|
|
|
+ xAxis: {
|
|
|
|
+ disableGrid: true,
|
|
|
|
+ scrollShow: true,
|
|
|
|
+ itemCount: 4
|
|
|
|
+ },
|
|
|
|
+ yAxis: {
|
|
|
|
+ gridType: "dash",
|
|
|
|
+ dashLength: 2
|
|
|
|
+ },
|
|
|
|
+ extra: {
|
|
|
|
+ line: {
|
|
|
|
+ type: "straight",
|
|
|
|
+ width: 2,
|
|
|
|
+ activeType: "hollow"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -198,14 +397,85 @@
|
|
.project-container {
|
|
.project-container {
|
|
padding: 30rpx;
|
|
padding: 30rpx;
|
|
|
|
|
|
- .bill-title {
|
|
|
|
|
|
+ .device-content {
|
|
|
|
+ text-align: center;
|
|
|
|
+ padding-right: 30rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ margin-top: 30rpx;
|
|
|
|
+ align-items: center;
|
|
|
|
+
|
|
|
|
+ .line {
|
|
|
|
+ height: 32rpx;
|
|
|
|
+ width: 2rpx;
|
|
|
|
+ background: $uni-border-1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-item-li {
|
|
|
|
+ flex: 1;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-number {
|
|
|
|
+ font-size: 40rpx;
|
|
|
|
+ color: $uni-primary;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-label {
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ color: $uni-secondary-color;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-title {
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-item {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-content {
|
|
|
|
+ flex: 1;
|
|
|
|
+ width: 0;
|
|
|
|
+ padding-right: 30rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+
|
|
|
|
+ .order-item-li {
|
|
|
|
+ flex: 1;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-number {
|
|
|
|
+ font-size: 40rpx;
|
|
|
|
+ color: $uni-primary;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-label {
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ color: $uni-secondary-color;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-title {
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .order-chart {
|
|
|
|
+ width: 200rpx;
|
|
|
|
+ height: 200rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .bill-title,
|
|
|
|
+ .order-title {
|
|
padding: 10rpx;
|
|
padding: 10rpx;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
|
|
.bill-content {
|
|
.bill-content {
|
|
background: $uni-background-color;
|
|
background: $uni-background-color;
|
|
- padding: 6rpx 0 10rpx 0;
|
|
|
|
|
|
+ padding: 6rpx 0 14rpx 0;
|
|
border-radius: 16rpx;
|
|
border-radius: 16rpx;
|
|
}
|
|
}
|
|
|
|
|