Commit f69e7d20 by 前端

二轮bug修复

1 parent 94156456
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
color: #606266; color: #606266;
} }
.rank-name{ .rank-name{
cursor: pointer; cursor: default;
span{ span{
display: block; display: block;
width: 93%; width: 93%;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div class='content'> <div class='content'>
<div class='top'> <div class='top'>
<view-content-left /> <view-content-left />
<!-- <div class='line'></div>-->
<view-content-right /> <view-content-right />
</div> </div>
<div class='bottom'> <div class='bottom'>
...@@ -27,13 +28,16 @@ export default { ...@@ -27,13 +28,16 @@ export default {
position: relative; position: relative;
padding: 1vh 24px 1.1vh; padding: 1vh 24px 1.1vh;
min-height: 94.15vh; min-height: 94.15vh;
//z-index: 1000;
.top{ .top{
display: grid; display: grid;
grid-template-columns: 30% 70%; grid-template-columns: 30% 70%;
gap: 0 24px; gap: 0 10px;
} //.line{
.bottom{ // background: red;
//background: #0a0909; // height: 100%;
// width: 1px;
//}
} }
} }
</style> </style>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</el-form-item> </el-form-item>
<el-form-item label='查询时间' size='mini'> <el-form-item label='查询时间' size='mini'>
<el-date-picker <el-date-picker
class="top-date" class='top-date'
size='mini' size='mini'
value-format='yyyy-MM-dd' value-format='yyyy-MM-dd'
v-model='renewalSearchForm.withdrawalTime' v-model='renewalSearchForm.withdrawalTime'
...@@ -359,7 +359,8 @@ export default { ...@@ -359,7 +359,8 @@ export default {
clickDialogTable(row, type, index) { clickDialogTable(row, type, index) {
const { merchantName, merchantId } = row const { merchantName, merchantId } = row
const list = this.switchType(row, type) const list = this.switchType(row, type)
this.selectedData = { ...list[index], merchantName, type, merchantId } const params = this.getSearchForm()
this.selectedData = { ...list[index], merchantName, type, merchantId, params }
// this.$nextTick(() => { // this.$nextTick(() => {
// this.showFuncIntro = !this.showFuncIntro // this.showFuncIntro = !this.showFuncIntro
// }) // })
...@@ -375,6 +376,7 @@ export default { ...@@ -375,6 +376,7 @@ export default {
color: #ffffff; color: #ffffff;
//border: 1px solid #93bee7 !important; //border: 1px solid #93bee7 !important;
} }
//.el-picker-panel .el-date-range-picker__time-header { //.el-picker-panel .el-date-range-picker__time-header {
// border-bottom: 1px solid #93bee7 !important; // border-bottom: 1px solid #93bee7 !important;
//} //}
...@@ -383,6 +385,7 @@ export default { ...@@ -383,6 +385,7 @@ export default {
height: 10px; height: 10px;
color: #EB6001 !important; color: #EB6001 !important;
} }
.el-picker-panel .el-input__inner { .el-picker-panel .el-input__inner {
background-color: #333; background-color: #333;
//border: #75ebf2; //border: #75ebf2;
...@@ -392,9 +395,11 @@ export default { ...@@ -392,9 +395,11 @@ export default {
.el-picker-panel .el-date-range-picker__header { .el-picker-panel .el-date-range-picker__header {
color: #fff; color: #fff;
} }
.el-picker-panel .el-date-table th { .el-picker-panel .el-date-table th {
color: #fff; color: #fff;
} }
.el-picker-panel .el-date-table td.available { .el-picker-panel .el-date-table td.available {
//width: 14px; //width: 14px;
//height: 14px; //height: 14px;
...@@ -403,28 +408,35 @@ export default { ...@@ -403,28 +408,35 @@ export default {
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
} }
.el-picker-panel .el-date-table td.available:hover { .el-picker-panel .el-date-table td.available:hover {
color: #ffffff; color: #ffffff;
} }
.el-date-table td.end-date span, .el-date-table td.start-date span{
.el-date-table td.end-date span, .el-date-table td.start-date span {
background-color: #EB6001 !important; background-color: #EB6001 !important;
} }
.el-date-table td.today span{
.el-date-table td.today span {
color: #EB6001 !important; color: #EB6001 !important;
} }
.el-picker-panel .el-date-table td.available{
.el-picker-panel .el-date-table td.available {
color: #c5c5c5; color: #c5c5c5;
} }
.el-select-dropdown__list{
background: #333; .el-select-dropdown__list {
background: #333;
} }
</style> </style>
<style lang='scss' scoped> <style lang='scss' scoped>
.high-light-num{ .high-light-num {
color: #FFF; color: #FFF;
cursor: pointer;
//font-weight: 700; //font-weight: 700;
} }
.activity-Name { .activity-Name {
//width: 100%; //width: 100%;
display: grid; display: grid;
...@@ -450,14 +462,17 @@ export default { ...@@ -450,14 +462,17 @@ export default {
height: 56px; height: 56px;
width: 100%; width: 100%;
position: relative; position: relative;
.demo-form-inline { .demo-form-inline {
height: 76px; height: 76px;
display: flex; display: flex;
align-items: center; align-items: center;
/deep/.el-select-dropdown__item.selected{
/deep/ .el-select-dropdown__item.selected {
color: #EB6001; color: #EB6001;
} }
/deep/ .el-date-table td.available today span{
/deep/ .el-date-table td.available today span {
color: red !important; color: red !important;
} }
...@@ -469,11 +484,14 @@ export default { ...@@ -469,11 +484,14 @@ export default {
/deep/ .el-input--mini .el-input__inner, /deep/ .el-range-editor--mini.el-input__inner, /deep/ .el-range-editor--mini .el-range-input { /deep/ .el-input--mini .el-input__inner, /deep/ .el-range-editor--mini.el-input__inner, /deep/ .el-range-editor--mini .el-range-input {
background: #353535; background: #353535;
border: none; border: none;
color: #fff;
} }
.btn-out-warp{
.btn-out-warp {
right: 0; right: 0;
position: absolute; position: absolute;
} }
.btn-wrap { .btn-wrap {
.btn { .btn {
border: none; border: none;
...@@ -510,6 +528,7 @@ export default { ...@@ -510,6 +528,7 @@ export default {
background: #262525; background: #262525;
border-color: #606266; border-color: #606266;
} }
/deep/ .el-table .descending .sort-caret.descending { /deep/ .el-table .descending .sort-caret.descending {
//border-bottom-color:#EB6001; //border-bottom-color:#EB6001;
border-top-color: #EB6001 border-top-color: #EB6001
...@@ -521,7 +540,7 @@ export default { ...@@ -521,7 +540,7 @@ export default {
} }
/deep/ .el-table__empty-block { /deep/ .el-table__empty-block {
max-height:20vh; max-height: 20vh;
background: #0A0909; background: #0A0909;
} }
...@@ -537,7 +556,7 @@ export default { ...@@ -537,7 +556,7 @@ export default {
/deep/ .el-table--enable-row-hover .el-table__body tr:hover > td { /deep/ .el-table--enable-row-hover .el-table__body tr:hover > td {
background-color: #353535 !important; background-color: #353535 !important;
cursor: pointer; cursor: default;
} }
//去掉外边框线 //去掉外边框线
......
<template> <template>
<div class="left"> <div class='left'>
<div class="top"> <div class='top'>
<view-sub-title title="数据总览" /> <view-sub-title title='数据总览' />
<view-tabs /> <view-tabs />
</div> </div>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type='text/ecmascript-6'>
import datas from '../utils/data' import datas from '../utils/data'
export default { export default {
name: 'ViewContentLeft', name: 'ViewContentLeft',
components: { components: {},
},
data() { data() {
return { return {
defaultHeight: datas.DefaultData.defaultPieHeight, defaultHeight: datas.DefaultData.defaultPieHeight
} }
}, },
mounted() { mounted() {
}, },
methods: { methods: {}
}
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang='scss'>
.left { .left {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.top{
height: 100%;
}
} }
</style> </style>
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
<template> <template>
<div class='right'> <div class='right'>
<!-- <view-sub-title title="售后数据总览" />--> <!-- <view-sub-title title="售后数据总览" />-->
<StaticRank :rankDataList='totalRank' name='viewMerchant' numName='viewNum' title='访问排名'/> <StaticRank :rankDataList='totalRank' name='viewMerchant' numName='viewNum' title='访问排名' />
<StaticRank :rankDataList='totalRank' name='forwardMerchant' numName='forwardMum' title='转发排名'/> <StaticRank :rankDataList='totalRank' name='forwardMerchant' numName='forwardMum' title='转发排名' />
<StaticRank :rankDataList='totalRank' name='clueMerchant' numName='clueMum' title='线索排名'/> <StaticRank :rankDataList='totalRank' name='clueMerchant' numName='clueMum' title='线索排名' />
<StaticRank :rankDataList='totalRank' name='activateMerchant' numName='activateMum' title='激活排名'/> <StaticRank :rankDataList='totalRank' name='activateMerchant' numName='activateMum' title='激活排名' />
</div> </div>
</template> </template>
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
this.getRank() this.getRank()
}, },
methods: { methods: {
getRank(){ getRank() {
this.api.renewal.getRanking().then(res => { this.api.renewal.getRanking().then(res => {
if (res.code == 0) { if (res.code == 0) {
this.totalRank = res.data.dataList this.totalRank = res.data.dataList
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.right { .right {
width: 98%; width: 99%;
display: grid; display: grid;
grid-template-columns: 25% 25% 25% 25%; grid-template-columns: 25% 25% 25% 25%;
} }
......
...@@ -141,12 +141,14 @@ export default { ...@@ -141,12 +141,14 @@ export default {
watch: { watch: {
selectedData: { selectedData: {
handler(newValue, oldValue) { handler(newValue, oldValue) {
console.log(newValue)
this.detailTitle = newValue && this.switchSelectedType(newValue.type) this.detailTitle = newValue && this.switchSelectedType(newValue.type)
this.renewalSearchForm.activityName = newValue.activityName this.renewalSearchForm.activityName = newValue.activityName
// '活动1' // '活动1'
this.renewalSearchForm.merchantId = newValue.merchantId this.renewalSearchForm.merchantId = newValue.merchantId
// '4419194XX' // '4419194XX'
this.renewalSearchForm.startDate = newValue.params.startDate
this.renewalSearchForm.endDate = newValue.params.endDate
setTimeout(() => { setTimeout(() => {
this.$refs.renewalListRef?.refreshTable() this.$refs.renewalListRef?.refreshTable()
this.showFuncIntro = true this.showFuncIntro = true
......
...@@ -37,4 +37,4 @@ export default { ...@@ -37,4 +37,4 @@ export default {
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -21,13 +21,14 @@ ...@@ -21,13 +21,14 @@
</div> </div>
</div> </div>
</div> </div>
<div class='tabs-content box'> <div class='tabs-content box' v-loading='loading'>
<div class='tabs-title title-icon'> <div class='tabs-title title-icon'>
<span> <span>
{{ linaBarTitle }} {{ linaBarTitle }}
</span> </span>
</div> </div>
<line-bar domId='viewTrendDomId' :dataList='viewTrendList' boxHeight='20vh'></line-bar>
<line-bar :isDatazoom='true' domId='viewTrendDomId' :dataList='viewTrendList' boxHeight='190px'></line-bar>
</div> </div>
</div> </div>
</template> </template>
...@@ -40,6 +41,7 @@ export default { ...@@ -40,6 +41,7 @@ export default {
mixins: [changeMixin], mixins: [changeMixin],
data() { data() {
return { return {
loading:false,
tabHead: [], tabHead: [],
tabTitle: '客户总数', tabTitle: '客户总数',
tabType: 'total', tabType: 'total',
...@@ -82,8 +84,10 @@ export default { ...@@ -82,8 +84,10 @@ export default {
this.getviewTrend(type, title) this.getviewTrend(type, title)
}, },
getOverview() { getOverview() {
// this.loading = true
this.api.renewal.getOverview().then(res => { this.api.renewal.getOverview().then(res => {
if (res.code == 0) { if (res.code == 0) {
// this.loading = false
this.dataOverView = res.data.dataList[0] this.dataOverView = res.data.dataList[0]
} }
}) })
...@@ -92,6 +96,7 @@ export default { ...@@ -92,6 +96,7 @@ export default {
// 获取浏览量趋势 // 获取浏览量趋势
getviewTrend(type = 'view', title = '访问量') { getviewTrend(type = 'view', title = '访问量') {
this.linaBarTitle = title this.linaBarTitle = title
if (type == 'views') type = 'view'
let params = { queryItem: type } let params = { queryItem: type }
this.api.renewal.getviewTrend(params).then(res => { this.api.renewal.getviewTrend(params).then(res => {
if (res.code == 0) { if (res.code == 0) {
...@@ -108,7 +113,7 @@ export default { ...@@ -108,7 +113,7 @@ export default {
//margin-bottom: 0.6vh; //margin-bottom: 0.6vh;
.tab { .tab {
height: 7.8vh; //height: 7.8vh;
display: grid; display: grid;
margin-bottom: 3px; margin-bottom: 3px;
// overflow: hidden; // overflow: hidden;
...@@ -169,7 +174,9 @@ export default { ...@@ -169,7 +174,9 @@ export default {
} }
&-content { &-content {
height: 24.4vh; //height: 24.4vh;
height: 67%;
overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
padding: 1vh 8px; padding: 1vh 8px;
display: flex; display: flex;
...@@ -186,96 +193,96 @@ export default { ...@@ -186,96 +193,96 @@ export default {
} }
} }
&-chart { //&-chart {
height: 20.2vh; // height: 20.2vh;
margin-top: auto; // margin-top: auto;
justify-content: space-between; // justify-content: space-between;
gap: 0 8px; // gap: 0 8px;
//
.line { // .line {
flex: 7; // flex: 7;
justify-content: center; // justify-content: center;
//
.canvas { // .canvas {
width: 100%; // width: 100%;
height: 100%; // height: 100%;
} // }
//
.empty-img { // .empty-img {
max-width: 20vh; // max-width: 20vh;
height: 9.5vh; // height: 9.5vh;
} // }
} // }
//
.table { // .table {
flex: 3; // flex: 3;
background: #262525; // background: #262525;
position: relative; // position: relative;
//
.table-position { // .table-position {
position: absolute; // position: absolute;
top: -20px; // top: -20px;
left: 50%; // left: 50%;
transform: translateX(-50%); // transform: translateX(-50%);
color: #606266 !important; // color: #606266 !important;
} // }
//
&-head { // &-head {
display: grid; // display: grid;
grid-template-columns: repeat(2, 50%); // grid-template-columns: repeat(2, 50%);
height: 2.4vh; // height: 2.4vh;
//
&-item { // &-item {
height: 100%; // height: 100%;
font-size: 10px; // font-size: 10px;
background: #353535; // background: #353535;
color: rgba($color: #fff, $alpha: 0.7); // color: rgba($color: #fff, $alpha: 0.7);
justify-content: center; // justify-content: center;
//
&:hover { // &:hover {
opacity: 0.9; // opacity: 0.9;
} // }
} // }
//
.active { // .active {
background: #eb6001; // background: #eb6001;
color: #fff; // color: #fff;
} // }
} // }
//
&-body { // &-body {
height: calc(100% - 2.4vh); // height: calc(100% - 2.4vh);
//
&-item { // &-item {
//line-height: 3.4vh; // //line-height: 3.4vh;
width: 100%; // width: 100%;
font-size: 10px; // font-size: 10px;
color: #ffffff; // color: #ffffff;
//
.table-num { // .table-num {
width: 22px; // width: 22px;
justify-content: center; // justify-content: center;
color: #606266; // color: #606266;
} // }
//
.table-key { // .table-key {
width: calc(100% - 96px); // width: calc(100% - 96px);
//height: 3.6vh; // //height: 3.6vh;
} // }
//
.tab-value { // .tab-value {
width: 52px; // width: 52px;
margin-left: auto; // margin-left: auto;
padding-right: 4px; // padding-right: 4px;
} // }
} // }
} // }
} // }
//
> div { // > div {
height: 100%; // height: 100%;
} // }
} //}
} }
} }
......
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
padding: 0 24px; padding: 0 24px;
position: relative; position: relative;
background: #1d1c1c; background: #1d1c1c;
z-index: 9999999999; z-index: 1000;
.view-title { .view-title {
color: transparent; color: transparent;
background: linear-gradient(left, #e60115 10%, #eb6001 25%, #f5aa01 50%, #fdf006 100%); background: linear-gradient(left, #e60115 10%, #eb6001 25%, #f5aa01 50%, #fdf006 100%);
......
...@@ -485,9 +485,9 @@ function getLineDoubleOptions(obj) { ...@@ -485,9 +485,9 @@ function getLineDoubleOptions(obj) {
function lineAndBarZoomOptions(list, namelist) { function lineAndBarZoomOptions(list, namelist) {
const statDate = namelist ? list.map(item => item[namelist.xName]) : list.map(item => item.statMonth) const statDate = namelist ? list.map(item => item[namelist.xName]) : list.map(item => item.statDate)
const orderNum = namelist ? list.map(item => item[namelist.leftYName]) : list.map(item => item.orderNum) const orderNum = namelist ? list.map(item => item[namelist.leftYName]) : list.map(item => item.viewsincr)
const orderMoney = namelist ? list.map(item => item[namelist.rightYName]) : list.map(item => item.orderMoney) const orderMoney = namelist ? list.map(item => item[namelist.rightYName]) : list.map(item => item.viewstotal)
// const statDate = list.map(item => item.statMonth) // const statDate = list.map(item => item.statMonth)
// const orderNum = list.map(item => item.orderNum) // const orderNum = list.map(item => item.orderNum)
// const orderMoney = list.map(item => item.orderMoney) // const orderMoney = list.map(item => item.orderMoney)
...@@ -501,17 +501,15 @@ function lineAndBarZoomOptions(list, namelist) { ...@@ -501,17 +501,15 @@ function lineAndBarZoomOptions(list, namelist) {
}, },
padding: 5, padding: 5,
borderWidth: 1, borderWidth: 1,
backgroundColor: 'rgba(35, 45, 152, 1)', backgroundColor: '#444444',
borderRadius: 4, borderRadius: 4,
textStyle: { textStyle: {
color: 'rgba(255,255,255,1)', color: 'rgba(255,255,255,1)',
fontSize: 10 fontSize: 10
}, },
formatter: function(item) { formatter: function(item) {
// console.log(item)
const items = list[item[0].dataIndex] const items = list[item[0].dataIndex]
return namelist ? `${items.statDate}<br>订单成功的门店数:${items.merchantNum}<br>订单数:${items.orderNum}<br>订单金额:${items.totalPrice}` : `订单数:${items.orderNum} return `${items.statDate}<br>总访问量:${items.viewstotal}<br>当日新增:${items.viewsincr}`
<br>订单金额:${items.orderMoney}`
} }
}, },
xAxis: [ xAxis: [
...@@ -563,13 +561,13 @@ function lineAndBarZoomOptions(list, namelist) { ...@@ -563,13 +561,13 @@ function lineAndBarZoomOptions(list, namelist) {
grid: { grid: {
left: '6%', left: '6%',
right: '5%', right: '5%',
top: '6%', top: '10%',
bottom: '1%', bottom: '1%',
containLabel: true containLabel: true
}, },
yAxis: [ yAxis: [
{ {
name: 'bar', name: '',
nameGap: 30, nameGap: 30,
type: 'value', type: 'value',
splitLine: { splitLine: {
...@@ -584,7 +582,7 @@ function lineAndBarZoomOptions(list, namelist) { ...@@ -584,7 +582,7 @@ function lineAndBarZoomOptions(list, namelist) {
splitNumber: 4 splitNumber: 4
}, },
{ {
name: 'line', name: '',
nameGap: 30, nameGap: 30,
type: 'value', type: 'value',
splitLine: { splitLine: {
...@@ -593,7 +591,7 @@ function lineAndBarZoomOptions(list, namelist) { ...@@ -593,7 +591,7 @@ function lineAndBarZoomOptions(list, namelist) {
} }
}, },
axisLabel: { axisLabel: {
color: '#769EFF', color: '#F5AA01',
fontSize: '0.8em' fontSize: '0.8em'
}, },
splitNumber: 4 splitNumber: 4
...@@ -636,8 +634,11 @@ function lineAndBarZoomOptions(list, namelist) { ...@@ -636,8 +634,11 @@ function lineAndBarZoomOptions(list, namelist) {
name: 'bar', name: 'bar',
type: 'bar', type: 'bar',
symbol: 'circle', symbol: 'circle',
itemStyle: {
color: '#F5AA01'
},
backgroundStyle: { backgroundStyle: {
color: '#6578FF' color: '#F5AA01'
}, },
yAxisIndex: 1, yAxisIndex: 1,
barWidth: '30%', barWidth: '30%',
......
...@@ -81,10 +81,12 @@ export default { ...@@ -81,10 +81,12 @@ export default {
background-image: url('./../../assets/images/login/login-bg.png'); background-image: url('./../../assets/images/login/login-bg.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
overflow: hidden;
.login-top { .login-top {
width: 100%; width: 100%;
height: 18vh; height: 18vh;
margin-top: 15px;
background-image: url('./../../assets/images/login/login-top.png'); background-image: url('./../../assets/images/login/login-top.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
...@@ -111,13 +113,14 @@ export default { ...@@ -111,13 +113,14 @@ export default {
.login-center { .login-center {
margin: 0 auto; margin: 0 auto;
width: 75%; width: 1068.03px;
height: 70%; height: 500px;
//display: block;
background-image: url('./../../assets/images/login/login-center.png'); background-image: url('./../../assets/images/login/login-center.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
justify-content: center; justify-content: center;
//align-items: center; align-items: center;
position: relative; position: relative;
.authorization-wrap { .authorization-wrap {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!