客户关系维护
This commit is contained in:
		| @@ -10,6 +10,15 @@ export function listUser(query) { | ||||
|     }) | ||||
| } | ||||
|  | ||||
| // 查询用户列表 | ||||
| export function listlrrUser(query) { | ||||
|     return request({ | ||||
|         url: '/system/user/lrrlist', | ||||
|         method: 'get', | ||||
|         params: query | ||||
|     }) | ||||
| } | ||||
|  | ||||
| // 查询用户详细 | ||||
| export function getUser(userId) { | ||||
|     return request({ | ||||
|   | ||||
| @@ -70,6 +70,21 @@ | ||||
|             </el-select> | ||||
|           </el-form-item> | ||||
|         </el-col> | ||||
|         <el-col :xs="24" :ms="12" :md="5"> | ||||
|           <el-form-item label="录入人" prop="createUserid"> | ||||
|             <el-select | ||||
|               v-model="queryParams.createUserid" | ||||
|               placeholder="请选择录入人" | ||||
|             > | ||||
|               <el-option | ||||
|                 v-for="dict in lrrOptions" | ||||
|                 :key="dict.userId" | ||||
|                 :label="dict.nickName" | ||||
|                 :value="dict.userId" | ||||
|               ></el-option> | ||||
|             </el-select> | ||||
|           </el-form-item> | ||||
|         </el-col> | ||||
|         <el-col :xs="24" :ms="12" :md="4"> | ||||
|           <el-form-item class="no-margin"> | ||||
|             <el-button | ||||
| @@ -579,10 +594,14 @@ import { | ||||
|   updateCustomer, | ||||
|   exportCustomer, | ||||
| } from "@/api/benyi/customer"; | ||||
| import { listUser, getUserOnlyByRoleId } from "@/api/system/user"; | ||||
| import { | ||||
|   listUser, | ||||
|   listlrrUser, | ||||
|   getUserOnlyByRoleId, | ||||
|   getUserProfile, | ||||
| } from "@/api/system/user"; | ||||
| //导入省市区三级联动库 | ||||
| import VDistpicker from "v-distpicker"; | ||||
| import { getUserProfile } from "@/api/system/user"; | ||||
| export default { | ||||
|   name: "Customer", | ||||
|   data() { | ||||
| @@ -626,7 +645,7 @@ export default { | ||||
|       customerUserOptions: [], | ||||
|       // 用户选项 | ||||
|       userOptions: [], | ||||
|  | ||||
|       lrrOptions: [], | ||||
|       // 查询参数 | ||||
|       queryParams: { | ||||
|         // 当前页 | ||||
| @@ -695,6 +714,7 @@ export default { | ||||
|     this.getUserList(); | ||||
|     this.getUsersByRole(); | ||||
|     this.getUser(); | ||||
|     this.getLrrList(); | ||||
|   }, | ||||
|   components: { | ||||
|     //省市区三级联动全局组件 | ||||
| @@ -720,6 +740,12 @@ export default { | ||||
|         this.userOptions = response.rows; | ||||
|       }); | ||||
|     }, | ||||
|     /** 查询用户列表 */ | ||||
|     getLrrList() { | ||||
|       listlrrUser(null).then((response) => { | ||||
|         this.lrrOptions = response.rows; | ||||
|       }); | ||||
|     }, | ||||
|     /** 根据roleid查询用户列表 */ | ||||
|     getUsersByRole() { | ||||
|       getUserOnlyByRoleId(this.roleId).then((response) => { | ||||
| @@ -880,7 +906,7 @@ export default { | ||||
|       const id = row.id || this.ids; | ||||
|       getCustomer(id).then((response) => { | ||||
|         this.form = response.data; | ||||
|          if (response.data.sheng == null) { | ||||
|         if (response.data.sheng == null) { | ||||
|           this.diglogForm.province = ""; | ||||
|         } else { | ||||
|           this.diglogForm.province = response.data.sheng; | ||||
| @@ -908,7 +934,7 @@ export default { | ||||
|         // this.diglogForm.province = response.data.sheng; | ||||
|         // this.diglogForm.city = response.data.shi; | ||||
|         // this.diglogForm.area = response.data.quxian; | ||||
|          if (response.data.sheng == null) { | ||||
|         if (response.data.sheng == null) { | ||||
|           this.diglogForm.province = ""; | ||||
|         } else { | ||||
|           this.diglogForm.province = response.data.sheng; | ||||
|   | ||||
| @@ -74,6 +74,23 @@ public class SysUserController extends BaseController { | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|  | ||||
|     @GetMapping("/lrrlist") | ||||
|     public TableDataInfo lrrlist(SysUser user) { | ||||
|         int l1=103; | ||||
|         user.setDeptId(Long.valueOf(l1)); | ||||
|         List<SysUser> list = userService.selectUserList(user); | ||||
|  | ||||
|         int l2=105; | ||||
|         user.setDeptId(Long.valueOf(l2)); | ||||
|         list.addAll(userService.selectUserList(user)); | ||||
|  | ||||
|         int l3=107; | ||||
|         user.setDeptId(Long.valueOf(l3)); | ||||
|         list.addAll(userService.selectUserList(user)); | ||||
|  | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|  | ||||
|     @Log(title = "用户管理", businessType = BusinessType.EXPORT) | ||||
|     @PreAuthorize("@ss.hasPermi('system:user:export')") | ||||
|     @GetMapping("/export") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user