Commit 6eb7e8ea by wangzhihui

fixed

1 parent b074f09d
......@@ -209,14 +209,13 @@ export default {
// type: Number,
// default: 12
// }
selectPopperAppendToBody:{
selectPopperAppendToBody: {
type: Boolean,
default: true
}
},
mounted() {
},
mounted() {},
methods: {
// 选择框-添加其他属性
......
......@@ -59,7 +59,6 @@ export default {
},
getMax() {
let tickIntervalNum = 0
// 判断lineData是否有值,根据barList中最大值计算tickInterval
if (this.yData.length) {
let s = this.yData[0]
for (var i = 1; i < this.yData.length; i++) {
......@@ -78,7 +77,7 @@ export default {
// 确保最小值为0
let yAxisMin = 0
// 计算间隔,确保正好显示5个点 (0, interval, 2*interval, 3*interval, 4*interval)
let interval = Math.ceil(yAxisMax / 4)
let interval = Math.ceil(yAxisMax / 5)
var option = {
grid: {
......@@ -174,7 +173,7 @@ ${this.title}:${params[0].value}辆
},
// 设置y轴固定显示5个点
min: yAxisMin,
max: interval * 4, // 确保最大值是间隔的4倍,这样就有0,1,2,3,4共5个点
max: interval * 5, // 确保最大值是间隔的4倍,这样就有0,1,2,3,4共5个点
interval: interval
},
series: [
......
......@@ -70,6 +70,16 @@ export default {
.active {
color: #ffffff;
background: #2a58ad;
&:first-child {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
&:last-child {
border-right: none;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
}
.time:last-child {
border-right: none;
......
......@@ -62,7 +62,7 @@
</template>
<div class="value" v-else>-</div>
<div class="rate">
环比
<span>环比</span>
<span :class="['rateValue', item.isUp(statisticsObj, item.rateKey)]"
>{{ item.isSymbol(statisticsObj, item.rateKey) }}
<template
......@@ -113,7 +113,7 @@ export default {
return {
rangePickerOptions,
dataForm: {
merchantId: "",
merchantNos: "",
dateType: "1",
startDate: "",
endDate: "",
......@@ -420,7 +420,14 @@ export default {
getServiceStore({
scene: 7 //二手车
}).then((res) => {
this.storeIdList = res || []
res
? (this.storeIdList = [
{
merchantName: "全部",
merchantId: ""
}
].concat(res))
: []
})
},
handleClick(index) {
......@@ -480,6 +487,16 @@ export default {
.tabs-item-active {
color: #ffffff;
background: #2a58ad;
&:first-child {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
&:last-child {
border-right: none;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
}
.tabs-item:last-child {
border-right: none;
......@@ -500,7 +517,7 @@ export default {
box-sizing: border-box;
.data-statistics-item {
width: calc((100% - 16px * 4) / 5);
min-height: 139px;
height: 139px;
padding: 20px;
border-radius: 4px;
opacity: 1;
......@@ -516,16 +533,21 @@ export default {
.value {
color: #1d1d1d;
font-size: 32px;
line-height: 45px;
height: 45px;
margin: 12px 0 2px 0;
font-weight: bold;
}
.rate {
display: flex;
align-items: center;
color: #888888;
font-size: 12px;
line-height: 20px;
height: 20px;
span {
font-size: 12px;
color: #888888;
display: inline-block;
}
.rateValue {
color: #888888;
font-size: 14px;
......@@ -553,7 +575,7 @@ export default {
border-top: 6px solid #43cf7c;
}
.none-icon {
width: 20px;
// width: 20px;
height: 20px;
margin-top: 5px;
}
......
......@@ -128,15 +128,18 @@ export default {
},
{
label: "车牌号",
prop: "licensePlate"
prop: "licensePlate",
width: "100px"
},
{
label: "车架号",
prop: "vin"
prop: "vin",
width: 160
},
{
label: "车型",
prop: "carTypeName"
prop: "carTypeName",
minWidth: 150
},
{
label: "上牌时间",
......@@ -145,7 +148,7 @@ export default {
{
label: "评估单编号",
prop: "evalOrderNo",
minWidth: 150
width: 160
},
{
label: "上牌城市",
......@@ -157,7 +160,7 @@ export default {
formatter: (cellValue) => {
const statusItem = this.getStatusItem(
this.baseData,
"usageTypeOpt", // 配置项数组的键名
"usageTypeOpt",
cellValue,
"usageType"
)
......
......@@ -166,15 +166,19 @@ export default {
},
{
label: "车牌号",
prop: "licensePlate"
prop: "licensePlate",
width: "100px",
width: "100px"
},
{
label: "车架号",
prop: "vin"
prop: "vin",
width: 160
},
{
label: "车型",
prop: "carTypeName"
prop: "carTypeName",
minWidth: 150
},
{
label: "签约时间",
......@@ -184,7 +188,7 @@ export default {
{
label: "评估单编号",
prop: "evalOrderNo",
minWidth: 150
width: 160
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!