diff --git a/src/api/admin/dept.js b/src/api/admin/dept.js index b64db69..65f08b2 100644 --- a/src/api/admin/dept.js +++ b/src/api/admin/dept.js @@ -1,20 +1,3 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - import request from '@/router/axios' export function fetchTree(query) { diff --git a/src/api/admin/user.js b/src/api/admin/user.js index b36c521..c9a9f80 100644 --- a/src/api/admin/user.js +++ b/src/api/admin/user.js @@ -42,10 +42,17 @@ export function getObj(id) { export function delObj(id) { return request({ - url: '/admin/user/' + id, + url: '/admin/user/registerDel/' + id, method: 'delete' }) } +export function delObj1(query) { + return request({ + url: '/admin/user/orgDel', + method: 'delete', + params:query + }) +} export function putObj(obj) { return request({ diff --git a/src/api/modules/api.js b/src/api/modules/api.js index 5030099..b310d09 100644 --- a/src/api/modules/api.js +++ b/src/api/modules/api.js @@ -185,3 +185,37 @@ export function zkagentPage(query) { params: query }) } +// 获取公司列表 +export function zkorg(query) { + return request({ + url: '/autoSR/zkorg/page', + method: 'get', + params: query + }) +} + + +// 获取注册用户列表 +export function registerUserList(query) { + return request({ + url: '/admin/user/registerUserList', + method: 'get', + params: query + }) +} + +// 获取组织用户列表 +export function orgUserList(query) { + return request({ + url: '/admin/user/orgUserList', + method: 'get', + params: query + }) +} +// 验证电话号码是否存在 +export function verPhone(username) { + return request({ + url: 'admin/user/info/'+username, + method: 'get', + }) +} diff --git a/src/page/check/chose.vue b/src/page/check/chose.vue index 576af09..c066fb3 100644 --- a/src/page/check/chose.vue +++ b/src/page/check/chose.vue @@ -68,7 +68,38 @@ --> -
这是公司
+
+ +
+
+
{{ item.name }}
+ +
区域位置:{{ item.address||'暂无' }}
+
+
+
这是楼盘
@@ -91,6 +121,8 @@ export default { flag: 1, currentPage: 1, agentName: "", //代理商名称 + companyName:'', + total:20, list: [], }; }, @@ -105,6 +137,7 @@ export default { this.getAgentList(); } else if (this.flag == 2) { // 获取公司 + this.getCompanyList() } else { // 获取楼盘 } @@ -115,13 +148,28 @@ export default { getAgentList() { this.$api.api .zkagentPage({ - pageNum: this.currentPage, + current: this.currentPage, pageSize: 10, agentName: this.agentName, }) .then((res) => { console.log(res); this.list = res.data.records; + this.total=res.data.total + }); + }, + getCompanyList() { + this.$api.api + .zkorg({ + current: this.currentPage, + size: 10, + name: this.companyName, + orgType:localStorage.getItem('orgType') + }) + .then((res) => { + console.log(res); + this.list = res.data.records; + this.total=res.data.total }); }, chose(item) { @@ -142,6 +190,7 @@ export default { this.getAgentList(); } else if (this.flag == 2) { // 获取公司 + this.getCompanyList() } else { // 获取楼盘 } diff --git a/src/page/check/index.vue b/src/page/check/index.vue index 948fac8..cbf2dab 100644 --- a/src/page/check/index.vue +++ b/src/page/check/index.vue @@ -9,19 +9,19 @@
选择后台
-
+
质控管家后台
-
+
代理商后台
-
+
公司后台
-
+
楼盘后台
@@ -46,7 +46,7 @@ export default { }, computed: {}, mounted() { - console.log(this.$route.query.backFlag); + // console.log(this.$route.query.backFlag); if (this.$route.query.backFlag) { this.backFlag = this.$route.query.backFlag; } @@ -58,6 +58,11 @@ export default { this.$api.api.getTab().then((res) => { // console.log(res) // 循环数组,给定各种标志 + this.tabFlag1 = true; + this.tabFlag2 = true; + this.tabFlag3 = true; + this.tabFlag4 = true; + return res.data.map((item) => { if (item.orgType == 0) { this.tabFlag1 = true; diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue index cb0a8b2..792da2d 100644 --- a/src/page/index/top/index.vue +++ b/src/page/index/top/index.vue @@ -12,9 +12,19 @@
-
+
代理商
- {{companyName}} + {{ + companyName + }} 切换 -
+
+
注册用户
+
组织用户
+
+ +
- - + + + + + + + + + + + + + - - + + - - - - + + 查询 + 重置 + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + - - - - + + + + - 查询 - 重置 + 查询 + 重置
+ +
- 批量删除 + 添加
- - + prop="name" + label="用户名"> + > + prop="userRoleTypeName" + label="性别"> + - + prop="orgName" + label="所属组织"> + prop="createTime" + label="注册时间"> + prop="address" + label="操作"> + + + + type="selection" + width="55" + > + + + label="登录手机" + prop="username" + > - - + prop="userRoleTypeName" + label="性别"> + + + + - - + + + + + @@ -375,10 +314,20 @@
- + + + + + + +
+ 取 消 + 确 定 +
+
- + @@ -393,7 +342,7 @@ -