6 changed files with 204 additions and 128 deletions
@ -1,5 +1,8 @@ |
|||
{ |
|||
|
|||
"usingComponents": { |
|||
"ec-canvas": "../components/ec-canvas/ec-canvas", |
|||
"van-calendar": "@vant/weapp/calendar/index" |
|||
|
|||
} |
|||
} |
@ -1,15 +1,34 @@ |
|||
<!--package/subSystem/subSystem.wxml--> |
|||
|
|||
<view style="display: flex;justify-content: space-around;padding-top: 10px; background-image: linear-gradient(179deg, #006BE3 0%, #4E87FF 16%, #4e87ff00 93%);"> |
|||
<view> |
|||
<view>本月巡检次数</view> |
|||
<view class="number">0</view> |
|||
</view> |
|||
<view> |
|||
<view>本月维修次数</view> |
|||
<view class="number">0</view> |
|||
<!--总览图--> |
|||
<view style="display: flex;justify-content: space-around;margin-bottom: 10px; padding-top: 10px; background-image: linear-gradient(179deg, #006BE3 0%, #4E87FF 16%, #4e87ff00 93%);"> |
|||
<view> |
|||
<view>本月巡检次数</view> |
|||
<view class="number">0</view> |
|||
</view> |
|||
<view> |
|||
<view>本月维修次数</view> |
|||
<view class="number">0</view> |
|||
</view> |
|||
</view> |
|||
<!--饼图--> |
|||
<view class="card" > |
|||
<ec-canvas id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas> |
|||
</view> |
|||
<!--巡检日历--> |
|||
<view class="card"> |
|||
<ec-canvas id="mychart-dom-bar" canvas-id="mychart-bar" echarts="{{ echarts }}" ec="{{ ec }}"></ec-canvas> |
|||
<view class="header"> |
|||
<view class="xunjian">巡检日历</view> |
|||
<view class="yearMonth">{{currentYear+'年'+currentMonth+'月'}}</view> |
|||
</view> |
|||
<van-calendar |
|||
max-date="{{lastDay}}" |
|||
v-model="selectedDate" |
|||
readonly |
|||
show-title="{{false}}" |
|||
show-subtitle="{{false}}" |
|||
poppable="{{ false }}" |
|||
show-confirm="{{ false }}" |
|||
:default-date="defaultDate" |
|||
formatter="{{formatter}}" |
|||
class="calendar" /> |
|||
</view> |
Loading…
Reference in new issue