Commit 10774cb2 by 王志慧

commit

1 parent fb99243c
...@@ -137,54 +137,33 @@ color: #333333; ...@@ -137,54 +137,33 @@ color: #333333;
} }
.line-tooltip {
opacity: 0;
// tooltip样式 position: absolute;
.chart-wrapper { // width: 140px;
position: relative; // height: 70px;
background-color:#fff ; border-radius: 6px;
padding: 5px; box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
border-radius: 3px; background: #ffffff;
text-align: center; z-index: 99;
width:160px; flex-direction: column;
height:100px; font-size: 12px;
box-sizing: border-box;
padding: 10px;
left: 0;
top: 0;
/deep/.time {
color: #a9a9a9;
} }
.f2-tooltip { /deep/.item,
box-shadow: 0px 3px 10px 0px rgba(223, 228, 234, 0.81); /deep/.time {
border-radius: 4px; width: 100%;
position: absolute; text-align: left;
z-index: 99; font-size: 12px;
background-color: #fff; }
padding: 5px; /deep/.arc {
border-radius: 3px; border-radius: 100%;
text-align: center; font-size: 8px;
width: 120px; margin-right: 4px;
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;
}
}
} }
// .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
}
\ No newline at end of file \ No newline at end of file
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
.icon-icondown { width: 5px; height: 8px; background-position: -323px -244px;} .icon-icondown { width: 5px; height: 8px; background-position: -323px -244px;}
.icon-iconup { width: 5px; height: 8px; background-position: -338px -244px;} .icon-iconup { width: 5px; height: 8px; background-position: -338px -244px;}
.icon-liushi { width: 40px; height: 44px; background-position: -100px -190px;} .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-message { width: 14px; height: 13px; background-position: -277px -244px;}
.icon-production { width: 40px; height: 44px; background-position: -150px -190px;} .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-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-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-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 \ No newline at end of file
.icon-wechat-customers { width: 40px; height: 44px; background-position: -300px -190px;}
\ No newline at end of file \ 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 { ...@@ -22,13 +22,14 @@ export default {
watch: { watch: {
tabIndex: { tabIndex: {
handler() { handler() {
this.initData() this.initTextData()
}, },
immediate: true immediate: true
}, },
outputData: { outputData: {
handler() { handler() {
this.initTextData() this.initTextData()
}, },
deep: true, deep: true,
immediate: true immediate: true
...@@ -67,6 +68,7 @@ export default { ...@@ -67,6 +68,7 @@ export default {
this.text = time[1]&&time[1].split('')[1] + '月' this.text = time[1]&&time[1].split('')[1] + '月'
} }
} }
this.initData()
}, },
initData() { initData() {
let { let {
......
...@@ -35,6 +35,11 @@ export default { ...@@ -35,6 +35,11 @@ export default {
userInfo: state => state.report.userInfo userInfo: state => state.report.userInfo
}) })
}, },
watch: {
reportData() {
this.initFastData()
}
},
methods: { methods: {
initFastData() { initFastData() {
let { let {
...@@ -59,7 +64,8 @@ export default { ...@@ -59,7 +64,8 @@ export default {
? '精品升级' ? '精品升级'
: '权益提单' : '权益提单'
} }
console.log(fastOrderSource)
console.log(text)
if (accountLevel !== 4) { if (accountLevel !== 4) {
this.fastData.push( this.fastData.push(
{ text: '增长速度最快的业务:', info: text, icon: 'rank' }, { text: '增长速度最快的业务:', info: text, icon: 'rank' },
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<van-swipe-item class="container" :key="add.id + 'new'"> <van-swipe-item class="container" :key="add.id + 'new'">
<div class="text-message">{{ add.title }}</div> <div class="text-message">{{ add.title }}</div>
<div class="flex-between"> <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)"> <template v-if="add.sequential(reportData)">
<div class="ratio text-message flex"> <div class="ratio text-message flex">
<!-- {{ reportType == 0 ? '周环比' : '月环比' }} --> <!-- {{ reportType == 0 ? '周环比' : '月环比' }} -->
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
...mapState({ ...mapState({
reportData: state => state.report.reportData, reportData: state => state.report.reportData,
statisticsObj: state => state.report.statisticsObj, statisticsObj: state => state.report.statisticsObj,
// reportType: state => state.report.reportType tabIndex: state => state.report.tabIndex
}) })
}, },
mounted() {}, mounted() {},
......
...@@ -118,18 +118,18 @@ export default { ...@@ -118,18 +118,18 @@ export default {
this.chart.axis(false) this.chart.axis(false)
this.chart.legend(false) this.chart.legend(false)
this.chart.tooltip(false) this.chart.tooltip(false)
this.chart.guide().html({ // this.chart.guide().html({
position: ['50%', '50%'], // 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>' // 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.interval().position('count*newProductionValue').adjust('stack').color('orderSource', ['#3975C6', '#43B899', '#FFC667', '#FF9DAA'])
this.chart.pieLabel({ this.chart.pieLabel({
sidePadding: 10, sidePadding: 10,
activeShape: true, activeShape: true,
label1(data) { label1(data,color) {
return { return {
text: `${orderSource[data.orderSource]}-占${data.newProductionValueRate}`, text: `${orderSource[data.orderSource]}-占${data.newProductionValueRate}`,
fill: '#333' fill: color
} }
}, },
label2(data) { label2(data) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<div class="top flex"> <div class="top flex">
<div class="report-name text-hide"> <div class="report-name text-hide">
{{ userInfo.merchantName || 'XXXX商户名称-10月小结' }} {{ userInfo.merchantName || 'XXXX商户名称-10月小结' }}-<span>{{text}}</span>小结
</div> </div>
<template v-if="outputData.reportTimeStart && reportType == 0"> <template v-if="outputData.reportTimeStart && reportType == 0">
<div class="time small-text" @click="showDateSelect = true"> <div class="time small-text" @click="showDateSelect = true">
...@@ -29,7 +29,8 @@ export default { ...@@ -29,7 +29,8 @@ export default {
data() { data() {
return { return {
showDateSelect: false, showDateSelect: false,
dateColumns: [] dateColumns: [],
text:''
} }
}, },
computed: { computed: {
...@@ -84,7 +85,23 @@ export default { ...@@ -84,7 +85,23 @@ export default {
this.SET_START_TIME({ this.SET_START_TIME({
reportTimeStart: this.dateColumns[this.dateColumns.length - 1] + '-01' 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) { confirmDate(e) {
let { let {
...@@ -141,6 +158,7 @@ export default { ...@@ -141,6 +158,7 @@ export default {
} }
}) })
} }
this.initTextData()
this.SET_TABTYPE_INDEX({ index: 0 }) this.SET_TABTYPE_INDEX({ index: 0 })
this.showDateSelect = false this.showDateSelect = false
} }
......
...@@ -112,7 +112,7 @@ const actions = { ...@@ -112,7 +112,7 @@ const actions = {
}) })
} else { } else {
util.showLoading() util.showLoading()
let { appid } = getParams('corpId') //从链接获取 let { appid } = getParams('corpId')?getParams('corpId'):'' //从链接获取
let dj_scrm = util.getLocalStorage('dj_scrm_corpId') let dj_scrm = util.getLocalStorage('dj_scrm_corpId')
if (!appid) appid = (dj_scrm && dj_scrm.corpId) || 'ww7ee69c648ae1b7e6' if (!appid) appid = (dj_scrm && dj_scrm.corpId) || 'ww7ee69c648ae1b7e6'
util.setLocalStorage('dj_scrm_corpId', { corpId: appid }) util.setLocalStorage('dj_scrm_corpId', { corpId: appid })
......
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
sequential: obj => { sequential: obj => {
return obj.newProductionValueSequential return obj.newProductionValueSequential
}, },
icon: 'production', icon: 'equity',
up: obj => { up: obj => {
return obj.newProductup return obj.newProductup
} }
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
sequential: obj => { sequential: obj => {
return obj.newEquityBillLadingSequential return obj.newEquityBillLadingSequential
}, },
icon: 'equity', icon: 'production',
up: obj => { up: obj => {
return obj.newEquityup return obj.newEquityup
} }
......
...@@ -50,8 +50,6 @@ export default { ...@@ -50,8 +50,6 @@ export default {
}, },
mounted() { mounted() {
this.getData() this.getData()
// this.$refs.canvasTab.initData()
scriptData().then(res => {})
}, },
created() { created() {
let reportType = this.getQuery().reportType ? this.getQuery().reportType : JSON.parse(window.localStorage.getItem('reportType')).reportType 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!