Commit 6eb7e8ea by wangzhihui

fixed

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