|
@@ -1,13 +1,17 @@
|
|
|
const state = {
|
|
|
- search: '',
|
|
|
+ searchValueOfMyCustomer: '',
|
|
|
+ searchValueOfPartner: '',
|
|
|
isSearchOfPartnerCustomer: 0,
|
|
|
isSearchOfPartnerAll: 0,
|
|
|
defaultNav: '' // 记录销售页nav切换时,路由名
|
|
|
}
|
|
|
|
|
|
const getters = {
|
|
|
- searchValue (state) {
|
|
|
- return state.search
|
|
|
+ searchValueOfMyCustomer (state) {
|
|
|
+ return state.searchValueOfMyCustomer
|
|
|
+ },
|
|
|
+ searchValueOfPartner (state) {
|
|
|
+ return state.searchValueOfPartner
|
|
|
},
|
|
|
isSearchOfPartnerCustomer (state) {
|
|
|
return state.isSearchOfPartnerCustomer
|
|
@@ -21,8 +25,11 @@ const getters = {
|
|
|
}
|
|
|
|
|
|
const actions = {
|
|
|
- setSearchValue ({ commit }, value) {
|
|
|
- commit('UPDATE_SEARCH_VALUE', value)
|
|
|
+ setSearchValueOfMyCustomer ({ commit }, value) {
|
|
|
+ commit('UPDATE_SEARCHOFMYCUSTOMER_VALUE', value)
|
|
|
+ },
|
|
|
+ setSearchValueOfPartner ({ commit }, value) {
|
|
|
+ commit('UPDATE_SEARCHOFPARTNER_VALUE', value)
|
|
|
},
|
|
|
setIsSearchOfPartnerCustomer ({ commit }, value) {
|
|
|
commit('UPDATE_ISSEARCHOFPARTNERCUSTOMER_VALUE', value)
|
|
@@ -36,8 +43,11 @@ const actions = {
|
|
|
}
|
|
|
|
|
|
const mutations = {
|
|
|
- UPDATE_SEARCH_VALUE (state, value) {
|
|
|
- state.search = value
|
|
|
+ UPDATE_SEARCHOFMYCUSTOMER_VALUE (state, value) {
|
|
|
+ state.searchValueOfMyCustomer = value
|
|
|
+ },
|
|
|
+ UPDATE_SEARCHOFPARTNER_VALUE (state, value) {
|
|
|
+ state.searchValueOfPartner = value
|
|
|
},
|
|
|
UPDATE_ISSEARCHOFPARTNERCUSTOMER_VALUE (state, value) {
|
|
|
state.isSearchOfPartnerCustomer = value
|