|
@@ -56,12 +56,12 @@
|
|
|
<u-button type="primary" text="归档时间" size="mini" @click="timeshow = true">归档时间</u-button>
|
|
<u-button type="primary" text="归档时间" size="mini" @click="timeshow = true">归档时间</u-button>
|
|
|
<u-select v-model="timeshow" mode="mutil-column" :list="list" @confirm="Hourchange" :default-value="defaultValue"></u-select>
|
|
<u-select v-model="timeshow" mode="mutil-column" :list="list" @confirm="Hourchange" :default-value="defaultValue"></u-select>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tendency">
|
|
|
|
|
|
|
+ <view class="tendency" v-if="!tiemshow && !timeshow">
|
|
|
<canvas canvas-id="canvasColumnA" id="canvasColumnA" class="charts" @touchstart="touchLineA($event)"
|
|
<canvas canvas-id="canvasColumnA" id="canvasColumnA" class="charts" @touchstart="touchLineA($event)"
|
|
|
@touchmove="moveLineA($event)" @touchend="touchEndLineA($event)" disable-scroll=true
|
|
@touchmove="moveLineA($event)" @touchend="touchEndLineA($event)" disable-scroll=true
|
|
|
:style="{'width':cWidth*pixelRatio+'px','height':cHeight*pixelRatio+'px', 'transform': 'scale('+(1/pixelRatio)+')','margin-left':-cWidth*(pixelRatio-1)/2+'px','margin-top':-cHeight*(pixelRatio-1)/2+'px'}"></canvas>
|
|
:style="{'width':cWidth*pixelRatio+'px','height':cHeight*pixelRatio+'px', 'transform': 'scale('+(1/pixelRatio)+')','margin-left':-cWidth*(pixelRatio-1)/2+'px','margin-top':-cHeight*(pixelRatio-1)/2+'px'}"></canvas>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tendency">
|
|
|
|
|
|
|
+ <view class="tendency" v-if="!tiemshow && !timeshow">
|
|
|
<canvas canvas-id="canvasRing" id="canvasRing" class="charts" @touchstart="touchRing"
|
|
<canvas canvas-id="canvasRing" id="canvasRing" class="charts" @touchstart="touchRing"
|
|
|
:style="{'width':cWidth*pixelRatio+'px','height':cHeight*pixelRatio+'px', 'transform': 'scale('+(1/pixelRatio)+')','margin-left':-cWidth*(pixelRatio-1)/2+'px','margin-top':-cHeight*(pixelRatio-1)/2+'px'}"></canvas>
|
|
:style="{'width':cWidth*pixelRatio+'px','height':cHeight*pixelRatio+'px', 'transform': 'scale('+(1/pixelRatio)+')','margin-left':-cWidth*(pixelRatio-1)/2+'px','margin-top':-cHeight*(pixelRatio-1)/2+'px'}"></canvas>
|
|
|
</view>
|
|
</view>
|