From 8f9faed1cc3c45721a55cdf46e70de806951c9b7 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 7 Jul 2021 14:51:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E3=80=81?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86=E6=8E=A5=E5=8F=A3=E8=81=94?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.js | 4 - src/utils/api.js | 27 ++- src/utils/http.js | 11 +- src/views/Home.vue | 4 +- src/views/customer/AddCustomer.vue | 350 +++++++++++++++-------------- src/views/customer/Dashboard.vue | 171 +++++++------- src/views/data/Product.vue | 5 +- src/views/setting/Person.vue | 99 ++++---- src/views/user/AddUser.vue | 18 +- src/views/user/User.vue | 71 +++--- 10 files changed, 366 insertions(+), 394 deletions(-) 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 @@ - + - + - + + - + + - + +
+ + + +
+

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