提交 93de9221 编写于 作者: huangwensu's avatar huangwensu

修改时间

上级 9d5c0665
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
v-model="searchParam.startDate" v-model="searchParam.startDate"
style="width: 200px;" style="width: 200px;"
:picker-options="endDateOpt" :picker-options="endDateOpt"
value-format="yyyy-MM-dd 00:00:00" value-format="yyyy-MM-dd"
> >
</el-date-picker> </el-date-picker>
<span>-</span> <span>-</span>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
v-model="searchParam.endDate" v-model="searchParam.endDate"
style="width: 200px;" style="width: 200px;"
:picker-options="endDateOpt1" :picker-options="endDateOpt1"
value-format="yyyy-MM-dd 23:59:59" value-format="yyyy-MM-dd"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
...@@ -94,8 +94,8 @@ export default { ...@@ -94,8 +94,8 @@ export default {
funnelId: '', funnelId: '',
name: '', name: '',
searchParam: { searchParam: {
endDate: '2020-11-23', endDate: '',
startDate: '2020-11-20', startDate: '',
version: '' version: ''
}, },
versionSelect: [], // 版本下拉数据 versionSelect: [], // 版本下拉数据
...@@ -123,6 +123,7 @@ export default { ...@@ -123,6 +123,7 @@ export default {
this.name = this.$route.query.name; this.name = this.$route.query.name;
}, },
mounted() { mounted() {
this.searchParam.endDate = new Date();
this.getAnalysisData(); this.getAnalysisData();
this.getVersionData(); this.getVersionData();
}, },
...@@ -157,7 +158,7 @@ export default { ...@@ -157,7 +158,7 @@ export default {
getAnalysisData() { getAnalysisData() {
let req = this.searchParam; let req = this.searchParam;
this.getData( this.getData(
"get", `/session/funnel/report?endDate=${req.endDate}&funnelId=${this.funnelId}&startDate=${req.endDate}&version=${req.version}`, {}, "get", `/session/funnel/report?endDate=${req.endDate}&funnelId=${this.funnelId}&startDate=${req.startDate}&version=${req.version}`, {},
res => { res => {
if(res.code == '000000') { if(res.code == '000000') {
this.funnelData = res.data; this.funnelData = res.data;
...@@ -186,22 +187,37 @@ export default { ...@@ -186,22 +187,37 @@ export default {
}], }],
global: false // 缺省为 false global: false // 缺省为 false
}; };
let data1 = [], dataArr = [], valueArr = [], lineArr = [], linksArr = [], arrowTop = 0, arrowH = 0, lineCur = 0; let data1 = [], dataArr = [], valueArr = [], lineArr = [], linksArr = [], arrowTop = 0, arrowH = 0, lineTop = 0, lineLeft = 0, lineHeight = 0;
if(len == 2) { if(len == 2) {
arrowTop = 105; arrowTop = 105;
arrowH = 130; arrowH = 130;
lineTop = 50;
lineLeft = 250;
lineHeight = 306;
}else if(len == 3) { }else if(len == 3) {
arrowTop = 115; arrowTop = 115;
arrowH = 130; arrowH = 130;
lineTop = 30;
lineLeft = 400;
lineHeight = 306;
}else if(len == 4) { }else if(len == 4) {
arrowTop = 88; arrowTop = 88;
arrowH = 210; arrowH = 210;
lineTop = 30;
lineLeft = 400;
lineHeight = 306;
}else if(len == 5) { }else if(len == 5) {
arrowTop = 70; arrowTop = 70;
arrowH = 260; arrowH = 260;
lineTop = 20;
lineLeft = 400;
lineHeight = 346;
}else if(len == 6) { }else if(len == 6) {
arrowTop = 105; arrowTop = 60;
arrowH = 130; arrowH = 260;
lineTop = 20;
lineLeft = 500;
lineHeight = 306;
} }
for (let i = 0; i < lineargroup.length; i++) { for (let i = 0; i < lineargroup.length; i++) {
let obj1 = { let obj1 = {
...@@ -236,7 +252,7 @@ export default { ...@@ -236,7 +252,7 @@ export default {
backgroundColor: '#ffffff', backgroundColor: '#ffffff',
grid: { grid: {
top: arrowTop, // 箭头距离顶部高度 3-115 4- top: arrowTop, // 箭头距离顶部高度 3-115 4-
left: "-34%", left: "-54%",
right: 20, right: 20,
height: arrowH, // 箭头之间的距离 3-145 4- height: arrowH, // 箭头之间的距离 3-145 4-
bottom: '0' bottom: '0'
...@@ -256,7 +272,7 @@ export default { ...@@ -256,7 +272,7 @@ export default {
height: 300 + len * 20, // 块高度 height: 300 + len * 20, // 块高度
gap: 40, // 块间距 gap: 40, // 块间距
minSize: 150, // 块两边斜度 minSize: 150, // 块两边斜度
left: '15%', // 块左边距离 left: '5%', // 块左边距离
width: '35%', // 块宽度 width: '35%', // 块宽度
label: { label: {
show: true, show: true,
...@@ -287,9 +303,9 @@ export default { ...@@ -287,9 +303,9 @@ export default {
}, },
{ // 转化率线 { // 转化率线
z: 1, z: 1,
top: 20, top: lineTop,
left: 500, left: lineLeft,
height: 306, height: lineHeight,
type: 'graph', type: 'graph',
layout: 'none', layout: 'none',
symbolSize: 0, symbolSize: 0,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册