|
@@ -1,8 +1,8 @@
|
|
|
const state = {
|
|
|
searchValueOfMyCustomer: '',
|
|
|
searchValueOfPartner: '',
|
|
|
- isSearchOfPartnerCustomer: 0,
|
|
|
- isSearchOfPartnerAll: 0,
|
|
|
+ isSearchOfMyCustomer: 0,
|
|
|
+ isSearchOfPartner: 0,
|
|
|
defaultNav: '' // 记录销售页nav切换时,路由名
|
|
|
}
|
|
|
|
|
@@ -13,11 +13,11 @@ const getters = {
|
|
|
searchValueOfPartner (state) {
|
|
|
return state.searchValueOfPartner
|
|
|
},
|
|
|
- isSearchOfPartnerCustomer (state) {
|
|
|
- return state.isSearchOfPartnerCustomer
|
|
|
+ isSearchOfMyCustomer (state) {
|
|
|
+ return state.isSearchOfMyCustomer
|
|
|
},
|
|
|
- isSearchOfPartnerAll (state) {
|
|
|
- return state.isSearchOfPartnerAll
|
|
|
+ isSearchOfPartner (state) {
|
|
|
+ return state.isSearchOfPartner
|
|
|
},
|
|
|
defaultNav (state) {
|
|
|
return state.defaultNav
|
|
@@ -31,11 +31,11 @@ const actions = {
|
|
|
setSearchValueOfPartner ({ commit }, value) {
|
|
|
commit('UPDATE_SEARCHOFPARTNER_VALUE', value)
|
|
|
},
|
|
|
- setIsSearchOfPartnerCustomer ({ commit }, value) {
|
|
|
- commit('UPDATE_ISSEARCHOFPARTNERCUSTOMER_VALUE', value)
|
|
|
+ setIsSearchOfMyCustomer ({ commit }, value) {
|
|
|
+ commit('UPDATE_ISSEARCHOFMYCUSTOMER_VALUE', value)
|
|
|
},
|
|
|
- setIsSearchOfPartnerAll ({ commit }, value) {
|
|
|
- commit('UPDATE_ISSEARCHOFPARTNERALL_VALUE', value)
|
|
|
+ setIsSearchOfPartner ({ commit }, value) {
|
|
|
+ commit('UPDATE_ISSEARCHOFPARTNER_VALUE', value)
|
|
|
},
|
|
|
setDefaultNav ({ commit }, value) {
|
|
|
commit('UPDATE_DEFAULTNAV_VALUE', value)
|
|
@@ -49,11 +49,11 @@ const mutations = {
|
|
|
UPDATE_SEARCHOFPARTNER_VALUE (state, value) {
|
|
|
state.searchValueOfPartner = value
|
|
|
},
|
|
|
- UPDATE_ISSEARCHOFPARTNERCUSTOMER_VALUE (state, value) {
|
|
|
- state.isSearchOfPartnerCustomer = value
|
|
|
+ UPDATE_ISSEARCHOFMYCUSTOMER_VALUE (state, value) {
|
|
|
+ state.isSearchOfMyCustomer = value
|
|
|
},
|
|
|
- UPDATE_ISSEARCHOFPARTNERALL_VALUE (state, value) {
|
|
|
- state.isSearchOfPartnerAll = value
|
|
|
+ UPDATE_ISSEARCHOFPARTNER_VALUE (state, value) {
|
|
|
+ state.isSearchOfPartner = value
|
|
|
},
|
|
|
UPDATE_DEFAULTNAV_VALUE (state, value) {
|
|
|
state.defaultNav = value
|