Commit 6a78c0fa by 姜雷

修改服务类型获取接口

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