Commit 6ee0d41f by 胡悦

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-pd into v1.0.0

2 parents f94aa298 0a03fb99
...@@ -4,15 +4,16 @@ ...@@ -4,15 +4,16 @@
<div v-for="(itm, inx) in rankingDataObj" :key="inx"> <div v-for="(itm, inx) in rankingDataObj" :key="inx">
<template v-if="inx === 0"> <template v-if="inx === 0">
<div class="ranking-box-item-left"> <div class="ranking-box-item-left">
<div class="circle" :style="{ 'background-image': index < 3 ? RankColor[index] : '' }">{{ index + 1 }}</div> <div class="circle" :style="{ 'background-image': index < 3 ? RankColor[index] : '' }">{{ index + 1 }}</div>
<!-- 证书超过滚动显示 --> <div class="text">{{ item[itm.name] }}</div>
<template v-if="!isMultiple"> <!-- 证书超过滚动显示 -->
<marquee class="marquee text" :direction="directionTimer" :delay="delayTimer" :text="item[itm.name]" /> <!-- <template v-if="!isMultiple">
</template> <marquee class="marquee text" :direction="directionTimer" :delay="delayTimer" :text="item[itm.name]" />
<template v-else> </template>
<div class="text">{{ item[itm.name] }}</div> <template v-else>
</template> <div class="text">{{ item[itm.name] }}</div>
</div> </template> -->
</div>
</template> </template>
<template v-else> <template v-else>
<div class="ranking-box-item-right">{{ itm.type == 'number' ? numAddSymbol(item[itm.name]) : item[itm.name] }}</div> <div class="ranking-box-item-right">{{ itm.type == 'number' ? numAddSymbol(item[itm.name]) : item[itm.name] }}</div>
...@@ -24,7 +25,6 @@ ...@@ -24,7 +25,6 @@
<script> <script>
import datas from '@/utils/data' import datas from '@/utils/data'
import router from '../router'
export default { export default {
name: 'Ranking', name: 'Ranking',
props: { props: {
...@@ -52,14 +52,12 @@ export default { ...@@ -52,14 +52,12 @@ export default {
} }
}, },
mounted() { mounted() {},
},
methods: { methods: {
// 跳转详情页面 // 跳转详情页面
goDetailPage(item) { goDetailPage(item) {
console.log(item) this.$emit('goDetailPage', item)
router.push('/solarDetail')
} }
} }
} }
...@@ -91,9 +89,9 @@ export default { ...@@ -91,9 +89,9 @@ export default {
cursor: default; cursor: default;
} }
.marquee { .marquee {
width: 17vw; width: 17vw;
height: 20px; height: 20px;
} }
.text:hover { .text:hover {
box-sizing: border-box; box-sizing: border-box;
// padding-bottom: 1px; // padding-bottom: 1px;
......
...@@ -8,23 +8,23 @@ ...@@ -8,23 +8,23 @@
<template> <template>
<div class="right"> <div class="right">
<!-- 右侧第一个盒子 --> <!-- 右侧第一个盒子 -->
<purchaseRank></purchaseRank> <PurchaseRank></PurchaseRank>
<!-- 右侧第二个盒子 --> <!-- 右侧第二个盒子 -->
<purchaseProgress></purchaseProgress> <PurchaseProgress></PurchaseProgress>
<!-- 右侧第三个盒子 --> <!-- 右侧第三个盒子 -->
<PurchasePropertion></PurchasePropertion> <PurchasePropertion></PurchasePropertion>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import purchaseRank from './purchaseRank.vue' import PurchaseRank from './PurchaseRank'
import purchaseProgress from './purchaseProgress.vue' import PurchaseProgress from './PurchaseProgress'
import PurchasePropertion from './purchasePropertion.vue' import PurchasePropertion from './PurchasePropertion'
export default { export default {
name: 'ContentRight', name: 'ContentRight',
components: { components: {
purchaseRank, PurchaseRank,
purchaseProgress, PurchaseProgress,
PurchasePropertion PurchasePropertion
}, },
data() { data() {
......
<template> <template>
<div class="storage-box"> <div class="storage-box">
<box-title title="入库使用情况"></box-title> <box-title title="入库使用情况"></box-title>
<pie-chart-shadow :id="chart.id" :list="listData" :height="chart.height" :colors="chart.colors"></pie-chart-shadow> <pie-chart :id="chart.id" :list="listData" :height="chart.height" :colors="chart.colors"></pie-chart>
<Legend class="legend" :list="listData" :legentList="legentList" :colors="chart.colors"></Legend> <Legend class="legend" :list="listData" :legentList="legentList" :colors="chart.colors"></Legend>
</div> </div>
</template> </template>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 门店排行 --> <!-- 门店排行 -->
<div class="merchant-box"> <div class="merchant-box">
<ranking :rankingsList="merchantsList" :rankingDataObj="merchantsDataObj" :isMultiple="false"></ranking> <ranking :rankingsList="merchantsList" :rankingDataObj="merchantsDataObj" :isMultiple="false" @goDetailPage="goDetailPage"></ranking>
</div> </div>
</div> </div>
</div> </div>
...@@ -85,6 +85,11 @@ export default { ...@@ -85,6 +85,11 @@ export default {
console.log(item) console.log(item)
this.purchase = item this.purchase = item
this.switchPurchase() this.switchPurchase()
},
// 跳转太阳膜详情页
goDetailPage(item) {
console.log(item)
this.$router.push({ name: 'solarDetail', params: item })
} }
} }
} }
......
...@@ -232,7 +232,9 @@ export default { ...@@ -232,7 +232,9 @@ export default {
selfPickLegendColors: ['#16E193', '#747DFF', '#E588FF', '#34AFFF', '#FFC200', '#EB6001'] selfPickLegendColors: ['#16E193', '#747DFF', '#E588FF', '#34AFFF', '#FFC200', '#EB6001']
} }
}, },
mounted() {}, mounted() {
console.log(this.$route.params, '000');
},
methods: { methods: {
init() { init() {
const p = new Promise((resolve) => { const p = new Promise((resolve) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!