| | |
| | | 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; |
| | | |
| | |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |
| | |
| | | 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: '用户名'} |
| | |
| | | </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"> |