From ebd717f0c84d4849b65ecfc283c445b272623039 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 12 Jul 2021 14:59:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/api.js | 18 ------------------ src/views/user/AddUser.vue | 5 ----- src/views/user/User.vue | 6 +++--- 3 files changed, 3 insertions(+), 26 deletions(-) diff --git a/src/utils/api.js b/src/utils/api.js index bc72d33..8ec9bfa 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -16,20 +16,8 @@ export default { orderUpdate:`${host}/nakadai/order/update`,// 订单更新 - - addUser: `${host}/liuwanr/userInfo/addUser`, //增加用户新版 - queryUser: `${host}/liuwanr/userInfo/queryUserInfo`, //查询用户新版 - deleteUser: `${host}/liuwanr/userInfo/deleteUserInfo`, //删除用户新版 queryAccountIsExist: `${host}/liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在 - queryUserOR: `${host}/liuwanr/userInfo/queryUserOR`, //查询系统列表详情 queryWorkNumberIsExist:`${host}/liuwanr/userInfo/queryWorkNumberIsExist`,//查询学号、工号是否存在 - queryCustomerUser: `${host}/liuwanr/user/queryCustomer`, //用户模块查询客户接口 - queryStaffPro: `${host}/liuwanr/staffProfessionalArchitecture/queryAllStaffProfessionalArchitecture`, //查询一级部门 - queryStaffGrade: `${host}/liuwanr/staffGrade/queryStaffGrade`, //查询二级部门 - queryStuPro: `${host}/liuwanr/stuProfessionalArchitecture/queryStuProfessionalArchitecture`, //查询学生专业 - queryStuGrade: `${host}/liuwanr/stuProfessionalArchitecture/queryStuGrade`, //查询学生年级 - queryStuClass: `${host}/liuwanr/stuProfessionalArchitecture/queryStuClass`, //查询学生班级 - updateOR: `${host}/liuwanr/userInfo/updateOR`, //更新用户组织架构 // 客户管理 delCustomers: `${host}/nakadai/customer/delCustomers`, @@ -93,12 +81,6 @@ export default { queryServiceConfig: `${host}/liuwanr/serviceConfig/queryServiceConfig`, //查询服务配置 queryServiceConfigDetails: `${host}/liuwanr/serviceConfig/queryServiceConfigDetails`, //查询服务配置详情 - deleteSchool: `${host}/liuwanr/school/deleteSchool`, //删除学校 - updateSchool: `${host}/liuwanr/school/updateSchool`, //更新学校 - addSchool: `${host}/liuwanr/school/addSchool`, //添加学校 - querySchool: `${host}/liuwanr/school/querySchool`, //查询学校 - querySchoolDetails: `${host}/liuwanr/school/querySchoolDetails`, //查询学校详情 - queryProvince: `${host}/nakadai/province/queryProvince`, //查询省份 queryCity: `${host}/nakadai/city/queryCity`, //查询城市 diff --git a/src/views/user/AddUser.vue b/src/views/user/AddUser.vue index 9439100..6a666bc 100644 --- a/src/views/user/AddUser.vue +++ b/src/views/user/AddUser.vue @@ -633,11 +633,6 @@ export default { } }, methods: { - async getInfo(item ,index){ - let res = await this.$get(this.api.queryUserOR, { userId: this.userId, platformId: item.platformId}) - return (res.message) - }, - // 获取城市 getCity(){ if(this.form.provinceId){ this.getCityData() diff --git a/src/views/user/User.vue b/src/views/user/User.vue index 7aae50a..cc26920 100644 --- a/src/views/user/User.vue +++ b/src/views/user/User.vue @@ -282,8 +282,8 @@ export default { provinceId: this.form.provinces, cityId: this.form.city } - this.$get(this.api.querySchool,data).then(res => { - this.schoolList = res.message + this.$get(this.api.querySchoolData,data).then(res => { + this.schoolList = res.list }).catch(res => {}) }, currentChange(val) { @@ -348,7 +348,7 @@ export default { this.$confirm('确定要删除选中用户吗?', '提示', { type: 'warning' }).then(() => { - this.$post(this.api.deleteUser,delList).then(res => { + this.$post(this.api.delUserAccounts,delList).then(res => { this.multipleSelection = []; this.$message.success('删除成功') this.getData()