Commit 9c076302 by 向童

'服务添加参数'

parent b080e42f
......@@ -13,6 +13,10 @@ export default {
type: Number,
default: null,
},
isAll: {
type: Number,
default: null,
},
},
created() {
store.install(this.$store);
......@@ -20,6 +24,7 @@ export default {
this.fetchServiceTypeList({
serviceType: this.ServiceType,
serviceState: this.ServiceState,
isAll: this.isAll,
});
}
},
......
......@@ -21,11 +21,14 @@ const getters = {
};
const actions = {
fetchServiceTypeList({ state, commit }, { serviceType, serviceState }) {
fetchServiceTypeList(
{ state, commit },
{ serviceType, serviceState, isAll }
) {
if (state.fetching[serviceType]) return;
commit(FETCH_STATE, { value: true, index: serviceType });
return fetchServiceList({
params: { serviceType, state: serviceState },
params: { serviceType, state: serviceState, isAll: isAll },
}).then(res => {
const { selfService } = res;
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