Browse Source

[fix] 基础资料模块

按照万材要求:修改公司信息列表页面表头的按钮,去掉之前的修改按钮,采用统一样式;新增列表固定右列;新增操作栏,操作栏引用$.table.dropdownToggle方法
dev
liuxiaoxu 1 month ago
parent
commit
02837f83e4
  1. 36
      ruoyi-admin/src/main/resources/templates/system/companyInformation/companyInformation.html

36
ruoyi-admin/src/main/resources/templates/system/companyInformation/companyInformation.html

@ -23,13 +23,13 @@
</form> </form>
</div> </div>
<div class="btn-group-sm" id="toolbar" role="group"> <!-- <div class="btn-group-sm" id="toolbar" role="group">-->
<!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:companyInformation:add">--> <!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:companyInformation:add">-->
<!-- <i class="fa fa-plus"></i> 添加--> <!-- <i class="fa fa-plus"></i> 添加-->
<!-- </a>--> <!-- </a>-->
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:companyInformation:edit"> <!-- <a class="btn btn-success single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:companyInformation:edit">-->
<i class="fa fa-edit"></i> 修改 <!-- <i class="fa fa-edit"></i> 修改-->
</a> <!-- </a>-->
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:companyInformation:remove">--> <!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:companyInformation:remove">-->
<!-- <i class="fa fa-remove"></i> 删除--> <!-- <i class="fa fa-remove"></i> 删除-->
<!-- </a>--> <!-- </a>-->
@ -39,9 +39,9 @@
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:companyInformation:export">--> <!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:companyInformation:export">-->
<!-- <i class="fa fa-download"></i> 导出--> <!-- <i class="fa fa-download"></i> 导出-->
<!-- </a>--> <!-- </a>-->
</div> <!-- </div>-->
<div class="col-sm-12 select-table table-striped"> <div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table" style="white-space:nowrap"></table> <table id="bootstrap-table"></table>
</div> </div>
</div> </div>
</div> </div>
@ -66,6 +66,8 @@
importUrl: prefix + "/importData", importUrl: prefix + "/importData",
importTemplateUrl: prefix + "/importTemplate", importTemplateUrl: prefix + "/importTemplate",
clickToSelect: true, clickToSelect: true,
fixedColumns:true,
fixedRightNumber:1,
modalName: "公司信息", modalName: "公司信息",
columns: [{ columns: [{
checkbox: true checkbox: true
@ -216,18 +218,18 @@
return vArr[0]; return vArr[0];
} }
} }
} },
// { {
// title: '操作', title: '操作',
// align: 'center', align: 'center',
// formatter: function(value, row, index) { formatter: function(value, row, index) {
// var actions = []; var actions = [];
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.companyId + '\')"><i class="fa fa-edit"></i>编辑</a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.companyId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
// actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.companyId + '\')"><i class="fa fa-remove"></i>删除</a>'); var actionLinks = actions.join('');
// return actions.join(''); return $.table.dropdownToggle(actionLinks);
// } }
// } }
] ]
}; };
$.table.init(options); $.table.init(options);

Loading…
Cancel
Save