Commit 8630ad26 by lichengming

修改了客户委托量查询

parent d1631455
......@@ -33,16 +33,17 @@
<!--内容-->
<Col span="24">
<Row :gutter="16">
<Col span="14">
<Col span="10">
<element-table
id="table-year"
ref="pageTable"
:table-height="tableHeight"
:get-page="getPage"
@on-result-change="_tableResultChange"
:hide-page="true"
hide-checkbox
>
<el-table-column fixed type="index" label="序号" width="100">
<el-table-column fixed type="index" label="序号" width="50">
</el-table-column>
<el-table-column
v-for="item in pageColumns"
......@@ -50,7 +51,7 @@
:prop="item.key"
:label="item.title"
:width="item.width"
:min-width="200"
:min-width="100"
:fixed="item.fixed?item.fixed:undefined"
>
<template slot-scope="scope">
......@@ -62,7 +63,7 @@
</el-table-column>
</element-table>
</Col>
<Col span="10">
<Col span="14">
<!--pie-->
<UserTestPie ref="testPieModal"></UserTestPie>
</Col>
......@@ -97,9 +98,9 @@ export default {
tester: '',
testerId: '',
pageColumns: [
{ title: '委托单位', key: 'client', detail: true },
{ title: '委托数量', key: 'quantity' },
{ title: '委托额度', key: 'fee' }
{ title: '委托单位', key: 'client', detail: true, width: 230 },
{ title: '委托数量', key: 'quantity', width: 80 },
{ title: '委托额度', key: 'fee', width: 80 }
],
groupData: [],
getPage: {
......@@ -218,7 +219,7 @@ export default {
_tableResultChange(msg, data) {
switch (msg) {
case 'changeSize':
// this._page()
this._getData()
break
}
},
......
......@@ -4,7 +4,7 @@
<label>{{ groupName }} 客户委托量比率</label>
</div>
<div :style="heightObj" class="chartCont">
<div v-if="showStatistic" style="width:90%">
<div v-if="showStatistic" style="width:100%">
<IEcharts :option="option" :style="optionObj"></IEcharts>
</div>
<div v-else :style="noDataObj" class="no-statistic-bg"></div>
......@@ -35,7 +35,7 @@ export default {
title: {
x: 'center',
textStyle: {
fontSize: 14,
fontSize: 12,
fontWeight: 'normal'
}
},
......@@ -55,9 +55,7 @@ export default {
legend: {
type: 'scroll',
orient: 'vertical',
right: 0,
top: 20,
bottom: 20,
left: 10,
data: ['直接访问', '邮件营销', '联盟广告', '视频广告', '搜索引擎']
},
color: this.$echartColor,
......@@ -65,6 +63,7 @@ export default {
{
name: '访问来源',
type: 'pie',
center: ['60%', '50%'],
radius: ['50%', '70%'],
avoidLabelOverlap: false,
label: {
......@@ -92,7 +91,9 @@ export default {
]
},
optionObj: {
height: ''
height: '',
width: '600px'
// marginLeft: '200px'
},
noDataObj: {
marginTop: ''
......@@ -109,7 +110,7 @@ export default {
this.noDataObj.marginTop =
(document.documentElement.clientHeight - 450) / 2 + 'px'
this.optionObj.width =
(document.documentElement.clientWidth - 200) / 2.6 + 'px'
(document.documentElement.clientWidth - 20) / 2 + 'px'
},
_openPie(data) {
const testerList = []
......
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