Commit 68b04e81 by 姜雷

修改服务类型中的字段名

parent ed162585
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
if (!this.serviceTypeLists[this.ServiceType].length) { if (!this.serviceTypeLists[this.ServiceType].length) {
this.fetchServiceTypeList({ this.fetchServiceTypeList({
serviceType: this.ServiceType, serviceType: this.ServiceType,
state: this.ServiceState, serviceState: this.ServiceState,
}); });
} }
}, },
......
...@@ -21,11 +21,11 @@ const getters = { ...@@ -21,11 +21,11 @@ const getters = {
}; };
const actions = { const actions = {
fetchServiceTypeList({ state, commit }, { serviceType, state }) { fetchServiceTypeList({ state, commit }, { serviceType, serviceState }) {
if (state.fetching[serviceType]) return; if (state.fetching[serviceType]) return;
commit(FETCH_STATE, { value: true, index: serviceType }); commit(FETCH_STATE, { value: true, index: serviceType });
return fetchServiceList({ return fetchServiceList({
params: { serviceType, state }, params: { serviceType, state: serviceState },
}).then(res => { }).then(res => {
const { selfService } = res; const { selfService } = res;
commit(SERVICE_TYPE_LIST, { list: selfService, index: serviceType }); commit(SERVICE_TYPE_LIST, { list: selfService, index: serviceType });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment