Commit 86abe52d by 胡悦

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

2 parents 152f3c45 8cc1fe18
...@@ -16,8 +16,8 @@ const state = { ...@@ -16,8 +16,8 @@ const state = {
boutique: { boutique: {
year: '', year: '',
channel: { channel: {
label: '', label: '全部渠道',
value: '' value: 'all'
} }
} }
} }
......
...@@ -94,13 +94,16 @@ export default { ...@@ -94,13 +94,16 @@ export default {
methods: { methods: {
init() { init() {
const _year = this.$store.state.app.solarYear const { boutique } = this.$store.state.app
this.getAllMerchantRank(_year) const params = {
year: boutique.year,
channelName: boutique.channel.value
}
this.getAllMerchantRank(params)
}, },
// 获取门店总产值、客单价、转化率排行 // 获取门店总产值、客单价、转化率排行
async getAllMerchantRank(year) { async getAllMerchantRank(params) {
const _data = await this.api.boutique.getAllMerchantRank({ year }) const _data = await this.api.boutique.getAllMerchantRank(params)
console.log(_data);
const { conversionRateRank, outputvalueRank, perCusTransRank } = _data.data.dataList[0] const { conversionRateRank, outputvalueRank, perCusTransRank } = _data.data.dataList[0]
this.storeOutputList = outputvalueRank this.storeOutputList = outputvalueRank
this.storePriceList = perCusTransRank this.storePriceList = perCusTransRank
......
...@@ -75,13 +75,16 @@ export default { ...@@ -75,13 +75,16 @@ export default {
methods: { methods: {
init() { init() {
const _year = this.$store.state.app.solarYear const { boutique } = this.$store.state.app
this.getAllStaffRank(_year) const params = {
year: boutique.year,
channelName: boutique.channel.value
}
this.getAllStaffRank(params)
}, },
// 获取门店员工业绩、客单价、转化率排行 // 获取门店员工业绩、客单价、转化率排行
async getAllStaffRank(year) { async getAllStaffRank(params) {
const _data = await this.api.boutique.getAllStaffRank({ year }) const _data = await this.api.boutique.getAllStaffRank(params)
console.log(_data);
const { performanceRank, perCusTransRank, conversionRateRank } = _data.data.dataList[0] const { performanceRank, perCusTransRank, conversionRateRank } = _data.data.dataList[0]
this.staffOutputList = performanceRank this.staffOutputList = performanceRank
this.staffPriceList = perCusTransRank this.staffPriceList = perCusTransRank
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
</template> </template>
<script> <script>
import { changeMixin } from '@/mixins' import { boutiqueMixin } from '@/mixins'
import BusinessDetailTrends from './BusinessDetailTrends.vue' import BusinessDetailTrends from './BusinessDetailTrends.vue'
export default { export default {
name: 'BoutiqueDetailLeft', name: 'BoutiqueDetailLeft',
mixins: [changeMixin], mixins: [boutiqueMixin],
components: { components: {
BusinessDetailTrends BusinessDetailTrends
}, },
......
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
<script> <script>
import BarLineChart from '../boutique/BarLineChart.vue' import BarLineChart from '../boutique/BarLineChart.vue'
import { changeMixin } from '@/mixins' import { boutiqueMixin } from '@/mixins'
export default { export default {
name: 'BusinessDetailTrends', name: 'BusinessDetailTrends',
components: { components: {
BarLineChart BarLineChart
}, },
mixins: [changeMixin], mixins: [boutiqueMixin],
props: { props: {
merchantid: String merchantid: String
}, },
......
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
</template> </template>
<script> <script>
import { changeMixin } from '@/mixins' import { boutiqueMixin } from '@/mixins'
import RightViewContent from '../solar/RightViewContent.vue' import RightViewContent from '../solar/RightViewContent.vue'
export default { export default {
name: 'GoodsPayPropertion', name: 'GoodsPayPropertion',
mixins: [changeMixin], mixins: [boutiqueMixin],
components: { components: {
RightViewContent RightViewContent
}, },
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
</template> </template>
<script> <script>
import { changeMixin } from '@/mixins' import { boutiqueMixin } from '@/mixins'
export default { export default {
name: 'GoodsRanking', name: 'GoodsRanking',
mixins: [changeMixin], mixins: [boutiqueMixin],
props: { props: {
merchantid: String merchantid: String
}, },
......
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
</template> </template>
<script> <script>
import { changeMixin } from '@/mixins' import { boutiqueMixin } from '@/mixins'
import RightViewContent from '../solar/RightViewContent.vue' import RightViewContent from '../solar/RightViewContent.vue'
export default { export default {
name: 'GoodsSupplierPropertion', name: 'GoodsSupplierPropertion',
mixins: [changeMixin], mixins: [boutiqueMixin],
components: { components: {
RightViewContent RightViewContent
}, },
......
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
</template> </template>
<script> <script>
import { changeMixin } from '@/mixins' import { boutiqueMixin } from '@/mixins'
import BoutiqueDetailLeft from './BoutiqueDetailLeft.vue' import BoutiqueDetailLeft from './BoutiqueDetailLeft.vue'
import BoutiqueDetailRight from './BoutiqueDetailRight.vue' import BoutiqueDetailRight from './BoutiqueDetailRight.vue'
import BoutiqueDetailDate from './BoutiqueDetailDate.vue' import BoutiqueDetailDate from './BoutiqueDetailDate.vue'
export default { export default {
name: 'BoutiqueDetail', name: 'BoutiqueDetail',
mixins: [changeMixin], mixins: [boutiqueMixin],
components: { components: {
BoutiqueDetailLeft, BoutiqueDetailLeft,
BoutiqueDetailRight, BoutiqueDetailRight,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!