From 835d497be4c813d49415bba9925b017e6598a1a7 Mon Sep 17 00:00:00 2001 From: zx <604444282@qq.com> Date: Fri, 10 Dec 2021 11:15:14 +0800 Subject: [PATCH] zx --- src/lycomponents/iSwitchBrand/index.vue | 5 +++-- src/lycomponents/iSwitchEvent/index.vue | 4 +++- src/lycomponents/iSwitchModel/index.vue | 9 ++++----- src/views/EventInsight/hotEventPO/index.vue | 6 +++++- src/views/Index/salesRank/index.vue | 16 ++++++++++++++-- src/views/Index/spreadTheSound/index.vue | 17 ++++++++++++++--- src/views/Index/tailInsight/index.vue | 16 ++++++++++++++-- .../MTDrearWingInformationList/index.vue | 8 ++++---- .../rearWingInformationList/index.vue | 8 ++++---- 9 files changed, 65 insertions(+), 24 deletions(-) diff --git a/src/lycomponents/iSwitchBrand/index.vue b/src/lycomponents/iSwitchBrand/index.vue index aeddf23..f11c785 100644 --- a/src/lycomponents/iSwitchBrand/index.vue +++ b/src/lycomponents/iSwitchBrand/index.vue @@ -142,9 +142,9 @@ export default { handlerChoose(row) { this.showActive = row.brandid; this.chooseBrand = row; - console.log(this.chooseBrand) + //console.log(this.chooseBrand) this.brandname = this.chooseBrand.brandname; - this.getUserSeriesName(this.brandname); + // this.getUserSeriesName(this.brandname); }, // 获取车型 getUserSeriesName(brandName) { @@ -160,6 +160,7 @@ export default { // 确定品牌 handlerSubmit() { if (this.chooseBrand) { + this.getUserSeriesName(this.brandname); this.$emit("change", [this.chooseBrand, this.chooseModel]); this.handlerClose(); } else { diff --git a/src/lycomponents/iSwitchEvent/index.vue b/src/lycomponents/iSwitchEvent/index.vue index 4327bfc..54c860c 100644 --- a/src/lycomponents/iSwitchEvent/index.vue +++ b/src/lycomponents/iSwitchEvent/index.vue @@ -39,18 +39,20 @@ export default { chooseChange(arr) { this.$refs.ect.list = arr; this.subList = arr; + this.setEComparison(this.subList); }, // 删除事件 handlerDel(arr) { this.$nextTick(() => { this.$refs.erdl.chooseList = arr; this.subList = arr; + this.setEComparison(this.subList); }) }, // 开始对比 handlerBegin() { - if(this.subList.length < 2) { + if(this.subList.length < 2 || (this.getEComparison[0].events_id == "" || this.getEComparison[1].events_id == "")) { this.$message.warning('至少2个事件进行对比'); return } diff --git a/src/lycomponents/iSwitchModel/index.vue b/src/lycomponents/iSwitchModel/index.vue index 403f64d..ed8c49d 100644 --- a/src/lycomponents/iSwitchModel/index.vue +++ b/src/lycomponents/iSwitchModel/index.vue @@ -1,7 +1,7 @@
-