Commit 71f9d249 authored by 张锡奇's avatar 张锡奇
parents 85038e49 4a7ef9e0
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="CONTENT"> <div class="CONTENT">
<div class="iCard" ref="chart1"> <div class="iCard" ref="chart1">
<p>前十名员工(联动)</p> <p>前十名员工(联动)</p>
<div ref="myChart1" :style="{width: '100vw', height: '300%',display:chartData1.length > 0 ? 'block' : 'none'}"></div> <div ref="myChart1" :style="{width: '100vw', height: '260px',display:chartData1.length > 0 ? 'block' : 'none'}"></div>
<div class="noData" v-if="chartData1.length <= 0"> <div class="noData" v-if="chartData1.length <= 0">
<img src="@/assets/noData.jpg" class="_img" alt=""> <img src="@/assets/noData.jpg" class="_img" alt="">
</div> </div>
...@@ -188,8 +188,10 @@ export default { ...@@ -188,8 +188,10 @@ export default {
} }
}, },
grid: { grid: {
top:"40",
bottom:"20",
left: '2%', // 与容器左侧的距离 left: '2%', // 与容器左侧的距离
right: '2%', // 与容器右侧的距离 right: '10%', // 与容器右侧的距离
containLabel: true containLabel: true
}, },
xAxis: [ xAxis: [
...@@ -260,21 +262,29 @@ export default { ...@@ -260,21 +262,29 @@ export default {
} }
} }
}, },
grid: {
top:"40",
bottom:"20",
left: '2%', // 与容器左侧的距离
right: '10%', // 与容器右侧的距离
containLabel: true
},
xAxis: { xAxis: {
type: 'category', type: 'category',
data: id == 0 ? this.chartData2.map(x=>x.sMonth) : this.chartData3.map(x=>x.sMonth) data: id == 0 ? this.chartData2.map(x=>x.sMonth) : this.chartData3.map(x=>x.sMonth)
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
name: '金额',
axisLabel: { axisLabel: {
margin: 2, margin: 2,
formatter: function (value, index) { formatter: function (value, index) {
if(value >= 1000 && value < 10000){ if(value >= 1000 && value < 10000){
value = value / 1000 + "千"; value = Math.round(value/10) / 100 + "千";
}else if (value >= 10000 && value < 10000000) { }else if (value >= 10000 && value < 10000000) {
value = value / 10000 + "万"; value = Math.round(value/100) / 100 + "万";
} else if (value >= 10000000) { } else if (value >= 10000000) {
value = value / 10000000 + "千万"; value = Math.round(value/1000) / 10000 + "千万";
} }
return value; return value;
} }
......
...@@ -63,9 +63,10 @@ ...@@ -63,9 +63,10 @@
<tbody> <tbody>
<template v-for="(v,k) in list"> <template v-for="(v,k) in list">
<tr class="name" :key="k+'_name'"> <tr class="name" :key="k+'_name'">
<td @click="toDetail(k)">{{v.sSampleMaterialNo}}</td> <td @click="toDetail(k)">
<td/> <div style="color: #cb855d;font-size: 11px;">{{v.sSampleMaterialNo||""}}</div>
<td/> <div style="font-size: 14px;">{{v.sProviderName||""}}</div>
</td>
</tr> </tr>
<tr :key="k+'_1'"> <tr :key="k+'_1'">
<td style="color:#048ECA;">期初库存</td> <td style="color:#048ECA;">期初库存</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment