Commit 6a78c0fa by 姜雷

修改服务类型获取接口

parent ac9340cf
...@@ -21,7 +21,7 @@ export const fetchSelectList = req => ...@@ -21,7 +21,7 @@ export const fetchSelectList = req =>
//获取服务类型 //获取服务类型
export const fetchServiceList = req => export const fetchServiceList = req =>
fetch({ fetch({
url: path + '/baseData/get/service', url: path + '/dcxy/api/base/service/all/about/service',
method: 'get', method: 'get',
...req, ...req,
}); });
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<el-option <el-option
v-for="(item, index) in serviceTypeLists[ServiceType]" v-for="(item, index) in serviceTypeLists[ServiceType]"
:key="index" :key="index"
:value="item.value" :value="item.id"
:label="item.name" :label="item.serviceName"
></el-option> ></el-option>
</el-select> </el-select>
</template> </template>
......
...@@ -24,7 +24,6 @@ export default { ...@@ -24,7 +24,6 @@ export default {
let item = this.serviceTypeLists[this.ServiceType].find( let item = this.serviceTypeLists[this.ServiceType].find(
ServiceType => ServiceType.id === id ServiceType => ServiceType.id === id
); );
return item ? item.serviceName : ''; return item ? item.serviceName : '';
}, },
}, },
......
...@@ -27,8 +27,8 @@ const actions = { ...@@ -27,8 +27,8 @@ const actions = {
return fetchServiceList({ return fetchServiceList({
params: { serviceType }, params: { serviceType },
}).then(res => { }).then(res => {
const { data } = res; const { selfService } = res;
commit(SERVICE_TYPE_LIST, { list: data, index: serviceType }); commit(SERVICE_TYPE_LIST, { list: selfService, index: serviceType });
commit(FETCH_STATE, { value: false, index: serviceType }); commit(FETCH_STATE, { value: false, 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