Commit 10774cb2 by 王志慧

commit

1 parent fb99243c
......@@ -137,54 +137,33 @@ color: #333333;
}
// tooltip样式
.chart-wrapper {
position: relative;
background-color:#fff ;
padding: 5px;
border-radius: 3px;
text-align: center;
width:160px;
height:100px;
.line-tooltip {
opacity: 0;
position: absolute;
// width: 140px;
// height: 70px;
border-radius: 6px;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
background: #ffffff;
z-index: 99;
flex-direction: column;
font-size: 12px;
box-sizing: border-box;
padding: 10px;
left: 0;
top: 0;
/deep/.time {
color: #a9a9a9;
}
.f2-tooltip {
box-shadow: 0px 3px 10px 0px rgba(223, 228, 234, 0.81);
border-radius: 4px;
position: absolute;
z-index: 99;
background-color: #fff;
padding: 5px;
border-radius: 3px;
text-align: center;
width: 120px;
opacity: 0;
.time{
font-size: 10px;
font-weight: 400;
color: #666666;
line-height: 15px;
text-align:left;
}
span {
font-size: 11px;
color: #333333;
line-height: 15px;
margin-top:4px;
.info{
margin-left:2px;
color:#333333;
}
}
/deep/.item,
/deep/.time {
width: 100%;
text-align: left;
font-size: 12px;
}
/deep/.arc {
border-radius: 100%;
font-size: 8px;
margin-right: 4px;
}
// .f2-tooltip
// .f2-tooltip span:nth-child(1) {
// marg: 11px !important;
// }
// .f2-tooltip span:nth-child(2) {
// font-size: 13px !important;
// }
// .van-swipe{
// overflow: visible!important;
// }
\ No newline at end of file
}
\ No newline at end of file
......@@ -9,13 +9,13 @@
.icon-icondown { width: 5px; height: 8px; background-position: -323px -244px;}
.icon-iconup { width: 5px; height: 8px; background-position: -338px -244px;}
.icon-liushi { width: 40px; height: 44px; background-position: -100px -190px;}
.icon-masonry { width: 26px; height: 26px; background-position: -109px -244px;}
.icon-message { width: 14px; height: 13px; background-position: -277px -244px;}
.icon-production { width: 40px; height: 44px; background-position: -150px -190px;}
.icon-proportion { width: 26px; height: 26px; background-position: -109px -244px;}
.icon-proportion { width: 26px; height: 26px; background-position: -145px -244px;}
.icon-Qy { width: 40px; height: 44px; background-position: -200px -190px;}
.icon-qycustomer { width: 26px; height: 26px; background-position: -145px -244px;}
.icon-qycustomer { width: 26px; height: 26px; background-position: -181px -244px;}
.icon-rank { width: 27px; height: 26px; background-position: 0px -244px;}
.icon-speed { width: 26px; height: 26px; background-position: -181px -244px;}
.icon-speed { width: 26px; height: 26px; background-position: -217px -244px;}
.icon-totalCu { width: 40px; height: 44px; background-position: -250px -190px;}
.icon-wechat-customers { width: 40px; height: 44px; background-position: -300px -190px;}
.icon-masonry { width: 26px; height: 26px; background-position: -217px -244px;}
\ No newline at end of file
.icon-wechat-customers { width: 40px; height: 44px; background-position: -300px -190px;}
\ No newline at end of file

175 KB | W: | H:

175 KB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -22,13 +22,14 @@ export default {
watch: {
tabIndex: {
handler() {
this.initData()
this.initTextData()
},
immediate: true
},
outputData: {
handler() {
this.initTextData()
},
deep: true,
immediate: true
......@@ -67,6 +68,7 @@ export default {
this.text = time[1]&&time[1].split('')[1] + '月'
}
}
this.initData()
},
initData() {
let {
......
......@@ -35,6 +35,11 @@ export default {
userInfo: state => state.report.userInfo
})
},
watch: {
reportData() {
this.initFastData()
}
},
methods: {
initFastData() {
let {
......@@ -59,7 +64,8 @@ export default {
? '精品升级'
: '权益提单'
}
console.log(fastOrderSource)
console.log(text)
if (accountLevel !== 4) {
this.fastData.push(
{ text: '增长速度最快的业务:', info: text, icon: 'rank' },
......
......@@ -19,7 +19,7 @@
<van-swipe-item class="container" :key="add.id + 'new'">
<div class="text-message">{{ add.title }}</div>
<div class="flex-between">
<span class="add-count">{{ add.value(reportData) }}</span>
<span class="add-count"><label v-if="tabIndex == 1">¥</label>{{ add.value(reportData) }}</span>
<template v-if="add.sequential(reportData)">
<div class="ratio text-message flex">
<!-- {{ reportType == 0 ? '周环比' : '月环比' }} -->
......@@ -80,7 +80,7 @@ export default {
...mapState({
reportData: state => state.report.reportData,
statisticsObj: state => state.report.statisticsObj,
// reportType: state => state.report.reportType
tabIndex: state => state.report.tabIndex
})
},
mounted() {},
......
......@@ -118,18 +118,18 @@ export default {
this.chart.axis(false)
this.chart.legend(false)
this.chart.tooltip(false)
this.chart.guide().html({
position: ['50%', '50%'],
html: '<div style="text-align: center;width:150px;height: 50px;">\n <p style="font-size: 12px;color: #999;margin: 0" id="title"></p>\n <p style="font-size: 18px;color: #343434;margin: 0;font-weight: bold;" id="money"></p>\n </div>'
})
// this.chart.guide().html({
// position: ['50%', '50%'],
// html: '<div style="text-align: center;width:150px;height: 50px;">\n <p style="font-size: 12px;color: #999;margin: 0" id="title"></p>\n <p style="font-size: 18px;color: #343434;margin: 0;font-weight: bold;" id="money"></p>\n </div>'
// })
this.chart.interval().position('count*newProductionValue').adjust('stack').color('orderSource', ['#3975C6', '#43B899', '#FFC667', '#FF9DAA'])
this.chart.pieLabel({
sidePadding: 10,
activeShape: true,
label1(data) {
label1(data,color) {
return {
text: `${orderSource[data.orderSource]}-占${data.newProductionValueRate}`,
fill: '#333'
fill: color
}
},
label2(data) {
......
......@@ -2,7 +2,7 @@
<div>
<div class="top flex">
<div class="report-name text-hide">
{{ userInfo.merchantName || 'XXXX商户名称-10月小结' }}
{{ userInfo.merchantName || 'XXXX商户名称-10月小结' }}-<span>{{text}}</span>小结
</div>
<template v-if="outputData.reportTimeStart && reportType == 0">
<div class="time small-text" @click="showDateSelect = true">
......@@ -29,7 +29,8 @@ export default {
data() {
return {
showDateSelect: false,
dateColumns: []
dateColumns: [],
text:''
}
},
computed: {
......@@ -84,7 +85,23 @@ export default {
this.SET_START_TIME({
reportTimeStart: this.dateColumns[this.dateColumns.length - 1] + '-01'
})
}
this.initTextData()
},
initTextData() {
let { reportType, outputData } = this
if (reportType == 0) {
this.text = '本周'
} else {
let time = outputData.reportTimeStart.split('-')
if (parseInt(time[1]) > 9) {
this.text = time[1] + '月'
} else {
this.text = time[1]&&time[1].split('')[1] + '月'
}
}
},
confirmDate(e) {
let {
......@@ -141,6 +158,7 @@ export default {
}
})
}
this.initTextData()
this.SET_TABTYPE_INDEX({ index: 0 })
this.showDateSelect = false
}
......
......@@ -112,7 +112,7 @@ const actions = {
})
} else {
util.showLoading()
let { appid } = getParams('corpId') //从链接获取
let { appid } = getParams('corpId')?getParams('corpId'):'' //从链接获取
let dj_scrm = util.getLocalStorage('dj_scrm_corpId')
if (!appid) appid = (dj_scrm && dj_scrm.corpId) || 'ww7ee69c648ae1b7e6'
util.setLocalStorage('dj_scrm_corpId', { corpId: appid })
......
......@@ -167,7 +167,7 @@ export default {
sequential: obj => {
return obj.newProductionValueSequential
},
icon: 'production',
icon: 'equity',
up: obj => {
return obj.newProductup
}
......@@ -181,7 +181,7 @@ export default {
sequential: obj => {
return obj.newEquityBillLadingSequential
},
icon: 'equity',
icon: 'production',
up: obj => {
return obj.newEquityup
}
......
......@@ -50,8 +50,6 @@ export default {
},
mounted() {
this.getData()
// this.$refs.canvasTab.initData()
scriptData().then(res => {})
},
created() {
let reportType = this.getQuery().reportType ? this.getQuery().reportType : JSON.parse(window.localStorage.getItem('reportType')).reportType
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!