中扬CRM客户关系管理系统
#
luxiaotao1123
2022-09-16 d9c5a848503c3181d582e5acb5256288a9917ae2
#
3个文件已修改
17 ■■■■ 已修改文件
src/main/java/com/zy/crm/system/entity/User.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/user/user.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/user/user.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/crm/system/entity/User.java
@@ -6,6 +6,7 @@
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.crm.system.service.DeptService;
import com.zy.crm.system.service.HostService;
import com.zy.crm.system.service.RoleService;
@@ -125,11 +126,11 @@
    }
    public String getDeptName() {
//        DeptService service = SpringUtils.getBean(DeptService.class);
//        Dept dept = service.selectById(this.deptId);
//        if (!Cools.isEmpty(dept)){
//            return dept.getName();
//        }
        DeptService service = SpringUtils.getBean(DeptService.class);
        Dept dept = service.selectById(this.deptId);
        if (!Cools.isEmpty(dept)){
            return dept.getName();
        }
        return null;
    }
src/main/webapp/static/js/user/user.js
@@ -23,7 +23,7 @@
        height: 'full-100',
        cols: [[
            {type: 'checkbox'}
            ,{field: 'hostName', align: 'center',title: '授权商户', templet: '#hostTpl', width: 140}
            ,{field: 'deptName', align: 'center',title: '所属部门', templet: '#deptTpl', width: 140}
            // ,{field: 'nickname', align: 'center',title: '用户名'}
            ,{field: 'mobile', align: 'center',title: '手机号'}
            ,{field: 'username', align: 'center',title: '用户名'}
src/main/webapp/views/user/user.html
@@ -76,8 +76,8 @@
    </div>
</div>
<script type="text/html" id="hostTpl">
    <span name="hostName" class="layui-badge layui-badge-gray">{{d.hostName}}</span>
<script type="text/html" id="deptTpl">
    <span name="deptName" class="layui-badge layui-badge-gray">{{d.deptName}}</span>
</script>
<script type="text/html" id="statusTpl">