diff --git a/src/store/index.js b/src/store/index.js index 327cada..6a2df30 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -3,6 +3,7 @@ import Vuex from 'vuex'; Vue.use(Vuex); const store = new Vuex.Store({ state: { + avatar: 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png', courseId:'', userId: '', roleId: '', @@ -17,6 +18,9 @@ const store = new Vuex.Store({ loginToken: '' }, mutations:{ + userAvatar(state,payload){ + state.avatar = payload.avatar + }, userData (state, payload) { state.userId = payload.user_id }, diff --git a/src/utils/api.js b/src/utils/api.js index 4ae60d5..f3bac3b 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -35,8 +35,8 @@ export default { resetPwdCustomer: `${host3}/nakadai/customer/resetPwd`, queryCustomerIsExists: `${host3}/nakadai/customer/queryCustomerIsExists`, updateEnabled: `${host3}/nakadai/customer/updateEnabled`, - queryCustomerIndustryClass: `${host}/liuwanr/customer/queryCustomerIndustryClass`, - queryCustomerIndustry: `${host}/liuwanr/customer/queryCustomerIndustry`, + queryCustomerIndustryClass: `${host3}/nakadai/hrIndustryClass/queryIndustryClass`, + queryCustomerIndustry: `${host3}/nakadai/hrIndustry/queryIndustry`, queryPhone: `${host}/liuwanr/user/queryPhone`, querySchoolData: `${host3}/nakadai/school/querySchool`, queryPlatform: `${host}/liuwanr/userInfo/queryPlatform`, @@ -89,8 +89,8 @@ export default { querySchool: `${host}/liuwanr/school/querySchool`, //查询学校 querySchoolDetails: `${host}/liuwanr/school/querySchoolDetails`, //查询学校详情 - queryProvince: `${host}/liuwanr/province/queryProvince`, //查询省份 - queryCity: `${host}/liuwanr/city/queryCity`, //查询城市 + queryProvince: `${host3}/nakadai/province/queryProvince`, //查询省份 + queryCity: `${host3}/nakadai/city/queryCity`, //查询城市 queryCourseDiscipline: `${host}/liuwanr/course/queryCourseDiscipline`, //查询课程学科 queryCourseProfessionalClass: `${host}/liuwanr/course/queryCourseProfessionalClass`, //查询专业类 diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue index b60a2c5..95f671d 100644 --- a/src/views/customer/AddCustomer.vue +++ b/src/views/customer/AddCustomer.vue @@ -140,14 +140,18 @@ 数据平台权限
- + - - - - - + + + + + + +