diff --git a/src/store/index.js b/src/store/index.js index 7029e0d..327cada 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -3,7 +3,6 @@ import Vuex from 'vuex'; Vue.use(Vuex); const store = new Vuex.Store({ state: { - customerId:'', courseId:'', userId: '', roleId: '', @@ -21,9 +20,6 @@ const store = new Vuex.Store({ userData (state, payload) { state.userId = payload.user_id }, - customerData (state, payload) { - state.customerId = payload.customer_id - }, courseData (state, payload) { state.courseId = payload.course_id }, diff --git a/src/utils/api.js b/src/utils/api.js index db822ef..9b9dcc9 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -26,17 +26,20 @@ export default { deletePlatform: `${host}/liuwanr/userInfo/deletePlatform`, //更新用户组织架构 updateUserRoleId: `${host}/liuwanr/userInfo/updateUserRoleId`, //更新用户角色id接口 - deleteCustomer: `${host}/liuwanr/customer/deleteCustomer`, //删除客户 - updateCustomer: `${host}/liuwanr/customer/updateCustomer`, //更新客户 - addCustomer: `${host}/liuwanr/customer/addCustomer`, //添加客户 - queryCustomer: `${host}/liuwanr/customer/queryCustomer`, //查询客户 - queryCustomerIsExists: `${host}/liuwanr/customer/queryCustomerIsExists`, //查询客户是否存在 - queryCustomerDetails: `${host}/liuwanr/customer/queryCustomerDetails`, //查询客户详情 - queryCustomerIndustryClass: `${host}/liuwanr/customer/queryCustomerIndustryClass`, //查询行业类 - queryCustomerIndustry: `${host}/liuwanr/customer/queryCustomerIndustry`, //查询行业 - queryPhone: `${host}/liuwanr/user/queryPhone`, //查询电话 - querySchoolData: `${host}/liuwanr/customer/querySchool`, //根据学校名称查询学校信息 - queryPlatform: `${host}/liuwanr/userInfo/queryPlatform`, //查询系统列表 + // 客户管理 + deleteCustomer: `${host3}/nakadai/customer/delCustomer`, + updateCustomer: `${host3}/nakadai/customer/updateCustomer`, + addCustomer: `${host3}/nakadai/customer/addCustomer`, + queryCustomer: `${host3}/nakadai/customer/queryCustomer`, + queryCustomerDetails: `${host3}/nakadai/customer/queryCustomerDetails`, + 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`, + queryPhone: `${host}/liuwanr/user/queryPhone`, + querySchoolData: `${host}/liuwanr/customer/querySchool`, + queryPlatform: `${host}/liuwanr/userInfo/queryPlatform`, // 用户管理 delUserAccount: `${host3}/users/userAccount/delUserAccount`, @@ -51,7 +54,7 @@ export default { checkCode: `${host3}/users/userAccount/checkCode`, findPasswordByEmail: `${host3}/users/userAccount/findPasswordByEmail`, findPasswordByPhone: `${host3}/users/userAccount/findPasswordByPhone`, - + queryOrder: `${host}/liuwanr/order/queryOrder`, //查询订单 queryOrderDetails: `${host}/liuwanr/order/queryOrderDetails`, //查询订单详情 queryOrderCustomer: `${host}/liuwanr/order/queryOrderCustomer`, //查询订单客户 diff --git a/src/utils/http.js b/src/utils/http.js index e819b5a..b282a32 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -133,10 +133,8 @@ export function get(url, params){ resolve(res.data); break; case 500: - this.$message.error( - res.data.errmessage - ); - break; + reject(res.data) + break case 300: this.$message.error( res.data.errmessage @@ -229,6 +227,11 @@ export function post(url, params) { res.data.errmessage ); break; + case 10001: + this.$message.error( + res.data.message + ); + break; } }else{ resolve(res.data) diff --git a/src/views/Home.vue b/src/views/Home.vue index 7b38572..e043743 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -5,9 +5,9 @@
- + - +
diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue index a4a0159..096f778 100644 --- a/src/views/customer/AddCustomer.vue +++ b/src/views/customer/AddCustomer.vue @@ -7,7 +7,7 @@
返回 - +
确定
@@ -21,39 +21,36 @@
- + - + - - - + + + - - - - + + - - + + + + - - + + - - - - + + @@ -62,40 +59,36 @@ - - + + - - - - - - - - + + - - - - - - + + + + - - + + - - + + + + + + @@ -114,18 +107,47 @@ - + - + - + + - + + - + +
+ + + +
+

+ 数据平台权限 +
+
+ + + + + + +