|
@@ -4,6 +4,16 @@
|
|
|
<th:block th:include="include :: header('用户列表')" />
|
|
|
<th:block th:include="include :: layout-latest-css" />
|
|
|
<th:block th:include="include :: ztree-css" />
|
|
|
+ <style>
|
|
|
+ .div_tdContent{
|
|
|
+ white-space:nowrap;
|
|
|
+ overflow:hidden;
|
|
|
+ text-overflow:ellipsis;
|
|
|
+ }
|
|
|
+ .tooltip-inner{
|
|
|
+ word-wrap: break-word;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
</head>
|
|
|
<body class="gray-bg">
|
|
|
<div class="ui-layout-west">
|
|
@@ -92,7 +102,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
- <table id="bootstrap-table"></table>
|
|
|
+ <table id="bootstrap-table" style='table-layout:fixed;'></table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -129,6 +139,7 @@
|
|
|
exportUrl: prefix + "/export",
|
|
|
importUrl: prefix + "/importData",
|
|
|
importTemplateUrl: prefix + "/importTemplate",
|
|
|
+ responseHandler: responseHandler,
|
|
|
sortName: "createTime",
|
|
|
sortOrder: "desc",
|
|
|
modalName: "用户",
|
|
@@ -137,19 +148,23 @@
|
|
|
},
|
|
|
{
|
|
|
field: 'userId',
|
|
|
- title: '用户ID'
|
|
|
+ title: '用户ID',
|
|
|
+ visible: false
|
|
|
},
|
|
|
{
|
|
|
field: 'loginName',
|
|
|
title: '登录名称',
|
|
|
+ width:90,
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
field: 'userName',
|
|
|
+ width: 70,
|
|
|
title: '用户名称'
|
|
|
},
|
|
|
{
|
|
|
field: 'dept.deptName',
|
|
|
+ width: 70,
|
|
|
title: '部门'
|
|
|
},
|
|
|
{
|
|
@@ -159,11 +174,13 @@
|
|
|
},
|
|
|
{
|
|
|
field: 'phonenumber',
|
|
|
+ width: 100,
|
|
|
title: '手机'
|
|
|
},
|
|
|
{
|
|
|
visible: editFlag == 'hidden' ? false : true,
|
|
|
title: '用户状态',
|
|
|
+ width: 70,
|
|
|
align: 'center',
|
|
|
formatter: function (value, row, index) {
|
|
|
return statusTools(row);
|
|
@@ -171,6 +188,7 @@
|
|
|
},
|
|
|
{
|
|
|
field: 'sysUserExt.salesLevel',
|
|
|
+ width: 90,
|
|
|
title: '销售人员等级',
|
|
|
formatter: function(value, row, index) {
|
|
|
return $.table.selectDictLabel(salesLevelDict, value);
|
|
@@ -178,15 +196,28 @@
|
|
|
},
|
|
|
{
|
|
|
field: 'sysUserExt.orgName',
|
|
|
- title: '组织名称'
|
|
|
+ title: '组织名称',
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ var reg = new RegExp( '"' , "g" )
|
|
|
+ if(value!==null&&value!=""){
|
|
|
+ value = value.replace(reg,'"');
|
|
|
+ var htmlStr = '<div data-original-title="'+value+'"' +
|
|
|
+ 'data-placement="bottom" data-toggle="tooltip" data-html="true"'+
|
|
|
+ 'class="div_tdContent">'+value+'</div>';
|
|
|
+ return htmlStr;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
field: 'sysUserExt.orgCode',
|
|
|
+ width: 90,
|
|
|
title: '组织code'
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|
|
|
align: 'center',
|
|
|
+ width: "180px",
|
|
|
formatter: function(value, row, index) {
|
|
|
var actions = [];
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.userId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
@@ -287,6 +318,9 @@
|
|
|
$.table.refresh();
|
|
|
})
|
|
|
}
|
|
|
+ function responseHandler(){
|
|
|
+ $('[data-toggle="tooltip"]').tooltip();
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
<!-- 导入区域 -->
|