outputEchart.wxml
2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!--packagesList/packageOutput/components/outputEchart/outputEchart.wxml-->
<!-- <text>packagesList/packageOutput/components/outputEchart/outputEchart.wxml</text> -->
<wxs src="../../index.wxs" module="filter" />
<view class="container">
<view class="revenue">
<view class="title">
营收概要
<!-- <view wx:if="{{ phone && outputObj }}" class="title-tip">当月产值目标:{{
outputObj.targetOutputValue || 0 }}元
完成进度{{ outputObj.currentProgress || 0 }}%</view> -->
</view>
<view class="content">
<view wx:for="{{ tabIndex? revenueFormData.equityList: revenueFormData.membraneList }}" wx:key="index" class="flex row">
<view class="td">
<view class="label">{{ item.label }}</view>
<view class="num">{{filter.filterItemName(item,revenueData)}}</view>
</view>
<view class="td">
<view class="label">较上月</view>
<view class="flex">
<view class="{{ revenueData[item.name].revenueToClassMonth }}">{{revenueData[item.name].comparedWithLastMonth }}</view>
<image
wx:if="{{ revenueData[item.name].revenueToClassMonth }}"
class="icon-up-down"
src="../../images/icon-{{ revenueData[item.name].revenueToClassMonth }}.png"
/>
</view>
</view>
<view class="td">
<view class="label">较去年</view>
<view class="flex">
<view class="{{ revenueData[item.name].revenueToClassYear }}">{{revenueData[item.name].comparedWithLastYear }}</view>
<image
wx:if="{{ revenueData[item.name].revenueToClassYear }}"
class="icon-up-down"
src="../../images/icon-{{ revenueData[item.name].revenueToClassYear }}.png"
/>
</view>
</view>
</view>
</view>
</view>
<echart chartData="{{ chartData }}" tickCount="{{ opts.tickCount }}" keys="{{ opts.keys }}" tabIndex="{{ tabIndex }}"></echart>
<echart-pie
wx:if="{{ !tabIndex }}"
chartData="{{ chartDataPie }}"
customerList="{{ customerList }}"
tickCount="{{ opts.tickCount }}"
keys="{{ opts.keys }}"
></echart-pie>
<!-- wx:if="{{ chartData.diagnosticResults && !tabIndx }}" -->
<view class="resultContainer" wx:if="{{ chartData.diagnosticResults && !tabIndex }}">
<view class="title">诊断结果</view>
<view class="content">{{ chartData.diagnosticResults }}</view>
</view>
</view>