Commit b0c86993 by 姜雷

Merge branch 'develop' into 'test'

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