Commit b0c86993 by 姜雷

Merge branch 'develop' into 'test'

Develop See merge request dcxy-manage-shell!2
parents ef335994 e6b531d2
......@@ -33,7 +33,7 @@
"nprogress": "^0.2.0",
"popmotion": "^8.1.22",
"qiniu-js": "^2.2.0",
"rym-element-ui": "^0.1.46",
"rym-element-ui": "^0.1.50",
"vue-qr": "^1.2.8",
"vuedraggable": "^2.16.0",
"wangeditor": "^3.1.1"
......
......@@ -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,10 +27,8 @@ const actions = {
return fetchServiceList({
params: { serviceType },
}).then(res => {
console.log(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 });
});
},
......@@ -38,8 +36,6 @@ const actions = {
const mutations = {
[SERVICE_TYPE_LIST](state, { list, index }) {
console.log(index, list);
state.lists[index] = list;
},
[FETCH_STATE](state, { value, index }) {
......
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