Browse Source

[fix] 通用模块

修改前端通用js,ry-ui.js中table设置统一高度,解决万材说table下拉后看不到表头标题的问题;
ry-ui.js新增dropdownToggle方法,实现下拉进行按钮切换,并且实现按钮水平居中对齐,解决万材提出的操作栏内容过长问题;
dev
liuxiaoxu 2 months ago
parent
commit
b8c764203c
  1. 5
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
  2. 2
      ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html

5
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@ -71,7 +71,7 @@ var table = {
rightFixedColumns: false,
fixedRightNumber: 0,
queryParams: $.table.queryParams,
// height: $(window).height() - 100,
height: $(window).height() + 10,
rowStyle: {},
};
var options = $.extend(defaults, options);
@ -329,9 +329,8 @@ var table = {
// 下拉按钮切换
dropdownToggle: function (value) {
var actions = [];
actions.push('<div class="btn-group" style="width:100px;">');
actions.push('<div class="btn-group" style="width:100px;display: flex; justify-content: center; align-items: center;">');
actions.push('<button type="button" class="btn btn-xs dropdown-toggle" data-toggle="dropdown" aria-expanded="false">');
// 使用较大的图标
actions.push('<i class="fa fa-lg fa-cog"></i>&nbsp;'); // fa-lg 类可以使图标变大
actions.push('<span class="fa fa-lg fa-chevron-down"></span>'); // fa-lg 类可以使图标变大
actions.push('</button>');

2
ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html

@ -117,7 +117,6 @@
fixedColumns: true, // 启用冻结列
fixedRightNumber: 1, // 冻结右列个数
//height: $(window).height() - 120,
height: $(window).height(),
modalName: "销售出货通知",
columns: [{
checkbox: true
@ -285,7 +284,6 @@
{
title: '操作',
width: 200,
align: 'center',
formatter: function(value, row, index) {

Loading…
Cancel
Save