Commit 8630ad26 by lichengming

修改了客户委托量查询

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