|
@@ -351,7 +351,8 @@ import { mapGetters, mapActions } from 'vuex'
|
|
|
import ResetPwd from '@/views/user/ResetPwd.vue'
|
|
|
import newProduct from '@/views/productManagement/newProduct/modal.vue'
|
|
|
import { queryNewProductPage } from '@/api/product'
|
|
|
-import { bizStateCount, bizData, dealerData, findAllLookup } from '@/api/data'
|
|
|
+import { bizStateCount, bizData, dealerData } from '@/api/data'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'Home',
|
|
|
components: { ResetPwd, newProduct },
|
|
@@ -787,7 +788,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions(['getAllLookUp','getLookUpDataByCode']),
|
|
|
+ ...mapActions(['getAllLookUp', 'getLookUpDataByCode']),
|
|
|
hasNewProduct () {
|
|
|
queryNewProductPage({ pageNo: 1, pageSize: 20, onlineFalg: this.onlineFalg }).then(res => {
|
|
|
if (res.status == 200) {
|
|
@@ -877,22 +878,24 @@ export default {
|
|
|
dealerData({}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.dealerData = res.data
|
|
|
+ this.$store.state.user.dealerLevel = res.data.dealerLevel
|
|
|
} else {
|
|
|
this.dealerData = null
|
|
|
+ this.$store.state.user.dealerLevel = ''
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
activated () {
|
|
|
const vm = this
|
|
|
-
|
|
|
+
|
|
|
// 请求导航指引合计
|
|
|
this.getNavCount()
|
|
|
this.getMerchantData()
|
|
|
-
|
|
|
+
|
|
|
// 获取所有数据字典
|
|
|
const allLookup = sessionStorage.getItem('allLookup')
|
|
|
- if(!allLookup){
|
|
|
+ if (!allLookup) {
|
|
|
this.getAllLookUp()
|
|
|
}
|
|
|
},
|