去除多余接口

dev
yujialong 3 years ago
parent 264581408d
commit ebd717f0c8
  1. 18
      src/utils/api.js
  2. 5
      src/views/user/AddUser.vue
  3. 6
      src/views/user/User.vue

@ -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`, //查询城市

@ -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()

@ -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()

Loading…
Cancel
Save