mirror of https://gitee.com/stylefeng/guns
统一修改form弹窗样式以及去掉复杂表单header,card-header仅供复杂表单使用
parent
58ed978560
commit
2c0422af18
|
@ -36,27 +36,14 @@ layui.define(['jquery', 'layer', 'admin', 'table'], function (exports) {
|
||||||
* 打开表单的弹框
|
* 打开表单的弹框
|
||||||
*/
|
*/
|
||||||
open: function (param) {
|
open: function (param) {
|
||||||
|
//默认宽度
|
||||||
|
const width = param.width || '1000px';
|
||||||
|
//默认高度
|
||||||
|
const height = param.height || '700px';
|
||||||
|
|
||||||
//宽度计算
|
param.area = [width, height];
|
||||||
var width = '1000px';
|
|
||||||
if (param.width) {
|
|
||||||
width = param.width;
|
|
||||||
}
|
|
||||||
|
|
||||||
//计算高度
|
|
||||||
var clientHeight = func.getClientHeight();
|
|
||||||
if (param.height) {
|
|
||||||
if (clientHeight < param.height) {
|
|
||||||
param.area = [width, clientHeight + "px"];
|
|
||||||
} else {
|
|
||||||
param.area = [width, param.height + "px"];
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
param.area = [width, clientHeight + "px"];
|
|
||||||
}
|
|
||||||
|
|
||||||
param.skin = 'layui-layer-admin';
|
param.skin = 'layui-layer-admin';
|
||||||
param.offset = '35px';
|
param.offset = '70px';
|
||||||
param.type = 2;
|
param.type = 2;
|
||||||
|
|
||||||
admin.putTempData('formOk', false);
|
admin.putTempData('formOk', false);
|
||||||
|
|
|
@ -46,7 +46,6 @@ layui.use(['table', 'HttpRequest', 'func', 'form'], function () {
|
||||||
*/
|
*/
|
||||||
App.openAddDlg = function () {
|
App.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 500,
|
|
||||||
title: '添加应用',
|
title: '添加应用',
|
||||||
content: Feng.ctxPath + '/view/app/add',
|
content: Feng.ctxPath + '/view/app/add',
|
||||||
tableId: App.tableId
|
tableId: App.tableId
|
||||||
|
@ -60,7 +59,6 @@ layui.use(['table', 'HttpRequest', 'func', 'form'], function () {
|
||||||
*/
|
*/
|
||||||
App.openEditDlg = function (data) {
|
App.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 500,
|
|
||||||
title: '修改应用',
|
title: '修改应用',
|
||||||
content: Feng.ctxPath + '/view/app/edit?appId=' + data.appId,
|
content: Feng.ctxPath + '/view/app/edit?appId=' + data.appId,
|
||||||
tableId: App.tableId
|
tableId: App.tableId
|
||||||
|
|
|
@ -21,7 +21,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
DictType.openAddDlg = function (data) {
|
DictType.openAddDlg = function (data) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '添加系统配置',
|
title: '添加系统配置',
|
||||||
content: Feng.ctxPath + '/view/config/addView?groupCode=' + data.dictCode,
|
content: Feng.ctxPath + '/view/config/addView?groupCode=' + data.dictCode,
|
||||||
tableId: Dict.tableId
|
tableId: Dict.tableId
|
||||||
|
@ -31,7 +30,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
/* 字典类型-点击编辑对话框 */
|
/* 字典类型-点击编辑对话框 */
|
||||||
DictType.openEditDlg = function (data) {
|
DictType.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '修改系统配置',
|
title: '修改系统配置',
|
||||||
content: Feng.ctxPath + '/view/config/editView?configId=' + data.configId,
|
content: Feng.ctxPath + '/view/config/editView?configId=' + data.configId,
|
||||||
tableId: Dict.tableId
|
tableId: Dict.tableId
|
||||||
|
@ -105,8 +103,7 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
/* 字典-点击新增对话框 */
|
/* 字典-点击新增对话框 */
|
||||||
Dict.openAddDlg = function (data) {
|
Dict.openAddDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
title: '添加配置类型',
|
||||||
title: '添加字典',
|
|
||||||
content: Feng.ctxPath + '/view/dict/addConfigView',
|
content: Feng.ctxPath + '/view/dict/addConfigView',
|
||||||
tableId: DictType.tableId
|
tableId: DictType.tableId
|
||||||
});
|
});
|
||||||
|
@ -115,8 +112,7 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
/* 字典-点击编辑对话框 */
|
/* 字典-点击编辑对话框 */
|
||||||
Dict.openEditDlg = function (data) {
|
Dict.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
title: '修改配置类型',
|
||||||
title: '修改字典',
|
|
||||||
content: Feng.ctxPath + '/view/dict/editView?dictId=' + data.dictId,
|
content: Feng.ctxPath + '/view/dict/editView?dictId=' + data.dictId,
|
||||||
tableId: Dict.tableId
|
tableId: Dict.tableId
|
||||||
});
|
});
|
||||||
|
|
|
@ -44,7 +44,6 @@ layui.use(['table', 'func', 'HttpRequest'], function () {
|
||||||
*/
|
*/
|
||||||
SysConfig.openAddDlg = function () {
|
SysConfig.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '添加系统配置',
|
title: '添加系统配置',
|
||||||
content: Feng.ctxPath + '/view/config/addView',
|
content: Feng.ctxPath + '/view/config/addView',
|
||||||
tableId: SysConfig.tableId
|
tableId: SysConfig.tableId
|
||||||
|
@ -70,7 +69,6 @@ layui.use(['table', 'func', 'HttpRequest'], function () {
|
||||||
*/
|
*/
|
||||||
SysConfig.openEditDlg = function (data) {
|
SysConfig.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '修改系统配置',
|
title: '修改系统配置',
|
||||||
content: Feng.ctxPath + '/view/config/editView?configId=' + data.configId,
|
content: Feng.ctxPath + '/view/config/editView?configId=' + data.configId,
|
||||||
tableId: SysConfig.tableId
|
tableId: SysConfig.tableId
|
||||||
|
|
|
@ -46,7 +46,6 @@ layui.use(['table', 'admin', 'HttpRequest', 'func'], function () {
|
||||||
*/
|
*/
|
||||||
DatabaseInfo.openAddDlg = function () {
|
DatabaseInfo.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '添加数据源',
|
title: '添加数据源',
|
||||||
content: Feng.ctxPath + '/view/datasource/add',
|
content: Feng.ctxPath + '/view/datasource/add',
|
||||||
tableId: DatabaseInfo.tableId
|
tableId: DatabaseInfo.tableId
|
||||||
|
|
|
@ -57,7 +57,6 @@ layui.use(['table', 'admin', 'ax', 'ztree', 'func', 'tree'], function () {
|
||||||
*/
|
*/
|
||||||
Dept.openAddDept = function () {
|
Dept.openAddDept = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 530,
|
|
||||||
title: '添加部门',
|
title: '添加部门',
|
||||||
content: Feng.ctxPath + '/dept/dept_add',
|
content: Feng.ctxPath + '/dept/dept_add',
|
||||||
tableId: Dept.tableId,
|
tableId: Dept.tableId,
|
||||||
|
@ -74,7 +73,6 @@ layui.use(['table', 'admin', 'ax', 'ztree', 'func', 'tree'], function () {
|
||||||
*/
|
*/
|
||||||
Dept.onEditDept = function (data) {
|
Dept.onEditDept = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 530,
|
|
||||||
title: '编辑部门',
|
title: '编辑部门',
|
||||||
content: Feng.ctxPath + "/dept/dept_update?deptId=" + data.deptId,
|
content: Feng.ctxPath + "/dept/dept_update?deptId=" + data.deptId,
|
||||||
tableId: Dept.tableId,
|
tableId: Dept.tableId,
|
||||||
|
|
|
@ -20,7 +20,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
/* 字典类型-点击新增对话框 */
|
/* 字典类型-点击新增对话框 */
|
||||||
DictType.openAddDlg = function () {
|
DictType.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 700,
|
|
||||||
title: '添加字典类型',
|
title: '添加字典类型',
|
||||||
content: Feng.ctxPath + '/view/dictType/addView',
|
content: Feng.ctxPath + '/view/dictType/addView',
|
||||||
tableId: DictType.tableId
|
tableId: DictType.tableId
|
||||||
|
@ -30,7 +29,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
/* 字典类型-点击编辑对话框 */
|
/* 字典类型-点击编辑对话框 */
|
||||||
DictType.openEditDlg = function (data) {
|
DictType.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 700,
|
|
||||||
title: '修改字典类型',
|
title: '修改字典类型',
|
||||||
content: Feng.ctxPath + '/view/dictType/editView?dictTypeId=' + data.dictTypeId,
|
content: Feng.ctxPath + '/view/dictType/editView?dictTypeId=' + data.dictTypeId,
|
||||||
tableId: DictType.tableId
|
tableId: DictType.tableId
|
||||||
|
@ -130,7 +128,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
/* 字典-点击新增对话框 */
|
/* 字典-点击新增对话框 */
|
||||||
Dict.openAddDlg = function (data) {
|
Dict.openAddDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '添加字典',
|
title: '添加字典',
|
||||||
content: Feng.ctxPath + '/view/dict/addView?dictTypeId=' + data.dictTypeId,
|
content: Feng.ctxPath + '/view/dict/addView?dictTypeId=' + data.dictTypeId,
|
||||||
tableId: Dict.tableId
|
tableId: Dict.tableId
|
||||||
|
@ -140,7 +137,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
/* 字典-点击编辑对话框 */
|
/* 字典-点击编辑对话框 */
|
||||||
Dict.openEditDlg = function (data) {
|
Dict.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '修改字典',
|
title: '修改字典',
|
||||||
content: Feng.ctxPath + '/view/dict/editView?dictId=' + data.dictId,
|
content: Feng.ctxPath + '/view/dict/editView?dictId=' + data.dictId,
|
||||||
tableId: Dict.tableId
|
tableId: Dict.tableId
|
||||||
|
|
|
@ -82,7 +82,6 @@ layui.use(['table', 'form', 'func', 'HttpRequest', 'util', 'upload'], function (
|
||||||
// 点击详情
|
// 点击详情
|
||||||
FileInfo.openDetails = function (data) {
|
FileInfo.openDetails = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '详情',
|
title: '详情',
|
||||||
content: Feng.ctxPath + '/view/fileInfoDetails?fileId=' + data.fileId,
|
content: Feng.ctxPath + '/view/fileInfoDetails?fileId=' + data.fileId,
|
||||||
tableId: FileInfo.tableId
|
tableId: FileInfo.tableId
|
||||||
|
|
|
@ -67,8 +67,7 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
/* 字典-点击新增对话框 */
|
/* 字典-点击新增对话框 */
|
||||||
Dict.openAddDlg = function (data) {
|
Dict.openAddDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
title: '添加语种',
|
||||||
title: '添加字典',
|
|
||||||
content: Feng.ctxPath + '/view/i18n/addTranslationView',
|
content: Feng.ctxPath + '/view/i18n/addTranslationView',
|
||||||
tableId: Dict.tableId
|
tableId: Dict.tableId
|
||||||
});
|
});
|
||||||
|
@ -145,7 +144,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'func', 'HttpRequest'], fu
|
||||||
/* 字典类型-点击编辑对话框 */
|
/* 字典类型-点击编辑对话框 */
|
||||||
Translation.openEditDlg = function (data) {
|
Translation.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '修改系统配置',
|
title: '修改系统配置',
|
||||||
content: Feng.ctxPath + '/view/i18n/edit?tranId=' + data.tranId,
|
content: Feng.ctxPath + '/view/i18n/edit?tranId=' + data.tranId,
|
||||||
tableId: Translation.tableId
|
tableId: Translation.tableId
|
||||||
|
|
|
@ -5,8 +5,6 @@ layui.use(['form', 'admin', 'HttpRequest'], function () {
|
||||||
var admin = layui.admin;
|
var admin = layui.admin;
|
||||||
|
|
||||||
$("#tranLanguageCode").val(Feng.getUrlParam("tranLanguageCode"));
|
$("#tranLanguageCode").val(Feng.getUrlParam("tranLanguageCode"));
|
||||||
//让当前iframe弹层高度适应
|
|
||||||
admin.iframeAuto();
|
|
||||||
|
|
||||||
//表单提交事件
|
//表单提交事件
|
||||||
form.on('submit(btnSubmit)', function (data) {
|
form.on('submit(btnSubmit)', function (data) {
|
||||||
|
|
|
@ -42,7 +42,6 @@ layui.use(['element', 'admin', 'HttpRequest', 'func'], function () {
|
||||||
Message.openViewDlg = function (messageId) {
|
Message.openViewDlg = function (messageId) {
|
||||||
func.open({
|
func.open({
|
||||||
title: '查看消息',
|
title: '查看消息',
|
||||||
height: 540,
|
|
||||||
content: Feng.ctxPath + '/view/message_view?messageId=' + messageId,
|
content: Feng.ctxPath + '/view/message_view?messageId=' + messageId,
|
||||||
tableId: Message.tableId
|
tableId: Message.tableId
|
||||||
});
|
});
|
||||||
|
|
|
@ -49,7 +49,6 @@ layui.use(['HttpRequest', 'treeTable', 'laydate', 'func', 'form'], function () {
|
||||||
// 点击详情
|
// 点击详情
|
||||||
Log.openDetailDlg = function (data) {
|
Log.openDetailDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '日志详情',
|
title: '日志详情',
|
||||||
content: Feng.ctxPath + '/view/log/detailView?logId=' + data.logId,
|
content: Feng.ctxPath + '/view/log/detailView?logId=' + data.logId,
|
||||||
tableId: Log.tableId
|
tableId: Log.tableId
|
||||||
|
|
|
@ -42,7 +42,8 @@ layui.use(['table', 'HttpRequest', 'func'], function () {
|
||||||
*/
|
*/
|
||||||
MenuButton.openAddDlg = function () {
|
MenuButton.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 500,
|
height: '350px',
|
||||||
|
width: '500px',
|
||||||
title: '添加菜单按钮',
|
title: '添加菜单按钮',
|
||||||
content: Feng.ctxPath + '/view/menuButton/add?menuId=' + menuId,
|
content: Feng.ctxPath + '/view/menuButton/add?menuId=' + menuId,
|
||||||
tableId: MenuButton.tableId
|
tableId: MenuButton.tableId
|
||||||
|
@ -56,7 +57,8 @@ layui.use(['table', 'HttpRequest', 'func'], function () {
|
||||||
*/
|
*/
|
||||||
MenuButton.openEditDlg = function (data) {
|
MenuButton.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 500,
|
height: '350px',
|
||||||
|
width: '500px',
|
||||||
title: '修改菜单按钮',
|
title: '修改菜单按钮',
|
||||||
content: Feng.ctxPath + '/view/menuButton/edit?buttonId=' + data.buttonId,
|
content: Feng.ctxPath + '/view/menuButton/edit?buttonId=' + data.buttonId,
|
||||||
tableId: MenuButton.tableId
|
tableId: MenuButton.tableId
|
||||||
|
@ -82,6 +84,23 @@ layui.use(['table', 'HttpRequest', 'func'], function () {
|
||||||
Feng.confirm("是否删除?", operation);
|
Feng.confirm("是否删除?", operation);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 点击意见添加系统默认按钮
|
||||||
|
*/
|
||||||
|
MenuButton.onAddDefaultItem = function () {
|
||||||
|
var operation = function () {
|
||||||
|
var request = new HttpRequest(Feng.ctxPath + "/sysMenuButton/addSystemDefaultButton", 'post', function (data) {
|
||||||
|
Feng.success("添加成功!");
|
||||||
|
table.reload(MenuButton.tableId);
|
||||||
|
}, function (data) {
|
||||||
|
Feng.error("添加失败!" + data.message + "!");
|
||||||
|
});
|
||||||
|
request.set("menuId", menuId);
|
||||||
|
request.start(true);
|
||||||
|
};
|
||||||
|
Feng.confirm("是否一键添加系统默认CRUD操作按钮?", operation);
|
||||||
|
};
|
||||||
|
|
||||||
// 渲染表格
|
// 渲染表格
|
||||||
var tableResult = table.render({
|
var tableResult = table.render({
|
||||||
elem: '#' + MenuButton.tableId,
|
elem: '#' + MenuButton.tableId,
|
||||||
|
@ -104,6 +123,11 @@ layui.use(['table', 'HttpRequest', 'func'], function () {
|
||||||
MenuButton.openAddDlg();
|
MenuButton.openAddDlg();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 一键添加按钮点击事件
|
||||||
|
$('#defaultBtnAdd').click(function () {
|
||||||
|
MenuButton.onAddDefaultItem();
|
||||||
|
});
|
||||||
|
|
||||||
// 批量删除按钮点击事件
|
// 批量删除按钮点击事件
|
||||||
$('#btnBatchDelete').click(function () {
|
$('#btnBatchDelete').click(function () {
|
||||||
let checkStatus = table.checkStatus(MenuButton.tableId);
|
let checkStatus = table.checkStatus(MenuButton.tableId);
|
||||||
|
|
|
@ -70,7 +70,6 @@ layui.use(['HttpRequest', 'treeTable', 'func'], function () {
|
||||||
*/
|
*/
|
||||||
Menu.openAddMenu = function () {
|
Menu.openAddMenu = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 660,
|
|
||||||
title: '添加菜单',
|
title: '添加菜单',
|
||||||
content: Feng.ctxPath + '/view/menu/add',
|
content: Feng.ctxPath + '/view/menu/add',
|
||||||
tableId: Menu.tableId,
|
tableId: Menu.tableId,
|
||||||
|
@ -87,7 +86,6 @@ layui.use(['HttpRequest', 'treeTable', 'func'], function () {
|
||||||
*/
|
*/
|
||||||
Menu.onEditMenu = function (data) {
|
Menu.onEditMenu = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 720,
|
|
||||||
title: '修改菜单',
|
title: '修改菜单',
|
||||||
content: Feng.ctxPath + "/view/menu/edit?menuId=" + data.menuId,
|
content: Feng.ctxPath + "/view/menu/edit?menuId=" + data.menuId,
|
||||||
tableId: Menu.tableId,
|
tableId: Menu.tableId,
|
||||||
|
@ -124,7 +122,6 @@ layui.use(['HttpRequest', 'treeTable', 'func'], function () {
|
||||||
*/
|
*/
|
||||||
Menu.onButtonMenu = function (data) {
|
Menu.onButtonMenu = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 720,
|
|
||||||
title: '菜单按钮管理',
|
title: '菜单按钮管理',
|
||||||
content: Feng.ctxPath + "/view/menuButton?menuId=" + data.menuId,
|
content: Feng.ctxPath + "/view/menuButton?menuId=" + data.menuId,
|
||||||
tableId: Menu.tableId,
|
tableId: Menu.tableId,
|
||||||
|
|
|
@ -52,7 +52,6 @@ layui.use(['table', 'form', 'func', 'HttpRequest', 'util'], function () {
|
||||||
Message.openViewDlg = function (data) {
|
Message.openViewDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
title: '查看消息',
|
title: '查看消息',
|
||||||
height: 540,
|
|
||||||
content: Feng.ctxPath + '/view/message_view?messageId=' + data.messageId,
|
content: Feng.ctxPath + '/view/message_view?messageId=' + data.messageId,
|
||||||
tableId: Message.tableId
|
tableId: Message.tableId
|
||||||
});
|
});
|
||||||
|
|
|
@ -45,7 +45,6 @@ layui.use(['layer', 'form', 'table', 'admin', 'HttpRequest', 'func'], function (
|
||||||
*/
|
*/
|
||||||
Notice.openAddNotice = function () {
|
Notice.openAddNotice = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '添加通知',
|
title: '添加通知',
|
||||||
content: Feng.ctxPath + '/view/notice/add',
|
content: Feng.ctxPath + '/view/notice/add',
|
||||||
tableId: Notice.tableId
|
tableId: Notice.tableId
|
||||||
|
@ -59,7 +58,6 @@ layui.use(['layer', 'form', 'table', 'admin', 'HttpRequest', 'func'], function (
|
||||||
*/
|
*/
|
||||||
Notice.onEditNotice = function (data) {
|
Notice.onEditNotice = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '修改通知',
|
title: '修改通知',
|
||||||
content: Feng.ctxPath + "/view/notice/edit?noticeId=" + data.noticeId,
|
content: Feng.ctxPath + "/view/notice/edit?noticeId=" + data.noticeId,
|
||||||
tableId: Notice.tableId
|
tableId: Notice.tableId
|
||||||
|
|
|
@ -20,7 +20,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'tree', 'dropdown', 'xmSel
|
||||||
/* 点击新增对话框 */
|
/* 点击新增对话框 */
|
||||||
Organization.openAddDlg = function () {
|
Organization.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '添加机构',
|
title: '添加机构',
|
||||||
content: Feng.ctxPath + '/view/organization/addView',
|
content: Feng.ctxPath + '/view/organization/addView',
|
||||||
tableId: Organization.tableId,
|
tableId: Organization.tableId,
|
||||||
|
@ -33,7 +32,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'tree', 'dropdown', 'xmSel
|
||||||
/* 点击编辑对话框 */
|
/* 点击编辑对话框 */
|
||||||
Organization.openEditDlg = function (data) {
|
Organization.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '修改机构',
|
title: '修改机构',
|
||||||
content: Feng.ctxPath + '/view/organization/editView?orgId=' + data.id,
|
content: Feng.ctxPath + '/view/organization/editView?orgId=' + data.id,
|
||||||
tableId: Organization.tableId,
|
tableId: Organization.tableId,
|
||||||
|
|
|
@ -48,7 +48,6 @@ layui.use(['table', 'form', 'func', 'HttpRequest', 'util'], function () {
|
||||||
// 弹出添加对话框
|
// 弹出添加对话框
|
||||||
Position.openAddDlg = function () {
|
Position.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '添加职位',
|
title: '添加职位',
|
||||||
content: Feng.ctxPath + '/view/position/addView',
|
content: Feng.ctxPath + '/view/position/addView',
|
||||||
tableId: Position.tableId
|
tableId: Position.tableId
|
||||||
|
@ -58,7 +57,6 @@ layui.use(['table', 'form', 'func', 'HttpRequest', 'util'], function () {
|
||||||
// 点击编辑
|
// 点击编辑
|
||||||
Position.openEditDlg = function (data) {
|
Position.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '修改职位',
|
title: '修改职位',
|
||||||
content: Feng.ctxPath + '/view/position/editView?positionId=' + data.positionId,
|
content: Feng.ctxPath + '/view/position/editView?positionId=' + data.positionId,
|
||||||
tableId: Position.tableId
|
tableId: Position.tableId
|
||||||
|
|
|
@ -76,7 +76,6 @@ layui.use(['table', 'HttpRequest', 'func'], function () {
|
||||||
*/
|
*/
|
||||||
Resource.openDetailDlg = function (data) {
|
Resource.openDetailDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 600,
|
|
||||||
title: '资源详情',
|
title: '资源详情',
|
||||||
content: Feng.ctxPath + '/view/resource/detail?resourceCode=' + data.resourceCode,
|
content: Feng.ctxPath + '/view/resource/detail?resourceCode=' + data.resourceCode,
|
||||||
tableId: Resource.tableId
|
tableId: Resource.tableId
|
||||||
|
|
|
@ -99,7 +99,6 @@ layui.use(['layer', 'form', 'table', 'admin', 'HttpRequest', 'func', 'dropdown']
|
||||||
*/
|
*/
|
||||||
Role.openAddRole = function () {
|
Role.openAddRole = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '添加角色',
|
title: '添加角色',
|
||||||
content: Feng.ctxPath + '/view/role/add',
|
content: Feng.ctxPath + '/view/role/add',
|
||||||
tableId: Role.tableId
|
tableId: Role.tableId
|
||||||
|
@ -113,7 +112,6 @@ layui.use(['layer', 'form', 'table', 'admin', 'HttpRequest', 'func', 'dropdown']
|
||||||
*/
|
*/
|
||||||
Role.onEditRole = function (data) {
|
Role.onEditRole = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '修改角色',
|
title: '修改角色',
|
||||||
content: Feng.ctxPath + "/view/role/edit?roleId=" + data.roleId,
|
content: Feng.ctxPath + "/view/role/edit?roleId=" + data.roleId,
|
||||||
tableId: Role.tableId
|
tableId: Role.tableId
|
||||||
|
@ -127,7 +125,6 @@ layui.use(['layer', 'form', 'table', 'admin', 'HttpRequest', 'func', 'dropdown']
|
||||||
*/
|
*/
|
||||||
Role.onEditDataScope = function (data) {
|
Role.onEditDataScope = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 470,
|
|
||||||
title: '修改数据范围',
|
title: '修改数据范围',
|
||||||
content: Feng.ctxPath + "/view/role/editDataScope?roleId=" + data.roleId,
|
content: Feng.ctxPath + "/view/role/editDataScope?roleId=" + data.roleId,
|
||||||
tableId: Role.tableId
|
tableId: Role.tableId
|
||||||
|
@ -160,8 +157,6 @@ layui.use(['layer', 'form', 'table', 'admin', 'HttpRequest', 'func', 'dropdown']
|
||||||
*/
|
*/
|
||||||
Role.assignMenu = function (data) {
|
Role.assignMenu = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 650,
|
|
||||||
width: 750,
|
|
||||||
title: '分配菜单',
|
title: '分配菜单',
|
||||||
content: Feng.ctxPath + "/view/role/assignMenuAndButtons?roleId=" + data.roleId,
|
content: Feng.ctxPath + "/view/role/assignMenuAndButtons?roleId=" + data.roleId,
|
||||||
tableId: Role.tableId
|
tableId: Role.tableId
|
||||||
|
@ -175,8 +170,6 @@ layui.use(['layer', 'form', 'table', 'admin', 'HttpRequest', 'func', 'dropdown']
|
||||||
*/
|
*/
|
||||||
Role.assignApi = function (data) {
|
Role.assignApi = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 650,
|
|
||||||
width: 550,
|
|
||||||
title: '分配接口',
|
title: '分配接口',
|
||||||
content: Feng.ctxPath + "/view/role/assignApi?roleId=" + data.roleId,
|
content: Feng.ctxPath + "/view/role/assignApi?roleId=" + data.roleId,
|
||||||
tableId: Role.tableId
|
tableId: Role.tableId
|
||||||
|
|
|
@ -43,7 +43,6 @@ layui.use(['table', 'admin', 'form', 'func', 'HttpRequest', 'dropdown'], functio
|
||||||
// 弹出添加对话框
|
// 弹出添加对话框
|
||||||
Position.openAddDlg = function () {
|
Position.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '添加定时任务',
|
title: '添加定时任务',
|
||||||
content: Feng.ctxPath + '/view/sysTimers/addView',
|
content: Feng.ctxPath + '/view/sysTimers/addView',
|
||||||
tableId: Position.tableId
|
tableId: Position.tableId
|
||||||
|
@ -53,7 +52,6 @@ layui.use(['table', 'admin', 'form', 'func', 'HttpRequest', 'dropdown'], functio
|
||||||
// 点击编辑
|
// 点击编辑
|
||||||
Position.openEditDlg = function (data) {
|
Position.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '修改定时任务',
|
title: '修改定时任务',
|
||||||
content: Feng.ctxPath + '/view/sysTimers/editView?timerId=' + data.timerId,
|
content: Feng.ctxPath + '/view/sysTimers/editView?timerId=' + data.timerId,
|
||||||
tableId: Position.tableId
|
tableId: Position.tableId
|
||||||
|
|
|
@ -26,7 +26,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'tree', 'dropdown', 'xmSel
|
||||||
/* 点击新增对话框 */
|
/* 点击新增对话框 */
|
||||||
Organization.openAddDlg = function () {
|
Organization.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '添加机构',
|
title: '添加机构',
|
||||||
content: Feng.ctxPath + '/view/organization/addView',
|
content: Feng.ctxPath + '/view/organization/addView',
|
||||||
tableId: OrganizationUser.tableId,
|
tableId: OrganizationUser.tableId,
|
||||||
|
@ -39,7 +38,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'tree', 'dropdown', 'xmSel
|
||||||
/* 点击编辑对话框 */
|
/* 点击编辑对话框 */
|
||||||
Organization.openEditDlg = function (data) {
|
Organization.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 800,
|
|
||||||
title: '修改机构',
|
title: '修改机构',
|
||||||
content: Feng.ctxPath + '/view/organization/editView?orgId=' + data.id,
|
content: Feng.ctxPath + '/view/organization/editView?orgId=' + data.id,
|
||||||
tableId: OrganizationUser.tableId,
|
tableId: OrganizationUser.tableId,
|
||||||
|
@ -69,7 +67,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'tree', 'dropdown', 'xmSel
|
||||||
/* 点击新增对话框 */
|
/* 点击新增对话框 */
|
||||||
OrganizationUser.openAddDlg = function () {
|
OrganizationUser.openAddDlg = function () {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '添加用户',
|
title: '添加用户',
|
||||||
content: Feng.ctxPath + '/view/user/addView',
|
content: Feng.ctxPath + '/view/user/addView',
|
||||||
tableId: OrganizationUser.tableId
|
tableId: OrganizationUser.tableId
|
||||||
|
@ -79,7 +76,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'tree', 'dropdown', 'xmSel
|
||||||
/* 点击编辑对话框 */
|
/* 点击编辑对话框 */
|
||||||
OrganizationUser.openEditDlg = function (data) {
|
OrganizationUser.openEditDlg = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
height: 680,
|
|
||||||
title: '修改用户',
|
title: '修改用户',
|
||||||
content: Feng.ctxPath + '/view/user/editView?userId=' + data.userId,
|
content: Feng.ctxPath + '/view/user/editView?userId=' + data.userId,
|
||||||
tableId: OrganizationUser.tableId
|
tableId: OrganizationUser.tableId
|
||||||
|
@ -115,7 +111,6 @@ layui.use(['layer', 'form', 'table', 'util', 'admin', 'tree', 'dropdown', 'xmSel
|
||||||
OrganizationUser.roleAssign = function (data) {
|
OrganizationUser.roleAssign = function (data) {
|
||||||
func.open({
|
func.open({
|
||||||
title: '授权角色',
|
title: '授权角色',
|
||||||
height: 470,
|
|
||||||
content: Feng.ctxPath + '/view/user/roleView?userId=' + data.userId,
|
content: Feng.ctxPath + '/view/user/roleView?userId=' + data.userId,
|
||||||
tableId: OrganizationUser.tableId
|
tableId: OrganizationUser.tableId
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="dictForm" lay-filter="dictForm">
|
<form class="layui-form" id="dictForm" lay-filter="dictForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="translationForm" lay-filter="translationForm">
|
<form class="layui-form" id="translationForm" lay-filter="translationForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="tranId" type="hidden"/>
|
<input name="tranId" type="hidden"/>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="translationForm" lay-filter="translationForm">
|
<form class="layui-form" id="translationForm" lay-filter="translationForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="tranId" type="hidden"/>
|
<input name="tranId" type="hidden"/>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon"></i>搜索</button>
|
<button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon"></i>搜索</button>
|
||||||
|
<button id="defaultBtnAdd" class="layui-btn icon-btn"><i class="layui-icon"></i>一键添加默认按钮</button>
|
||||||
<button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon"></i>添加</button>
|
<button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon"></i>添加</button>
|
||||||
<button id="btnBatchDelete" class="layui-btn layui-btn-danger icon-btn"><i class="layui-icon"></i>删除选中</button>
|
<button id="btnBatchDelete" class="layui-btn layui-btn-danger icon-btn"><i class="layui-icon"></i>删除选中</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="menuForm" lay-filter="menuForm">
|
<form class="layui-form" id="menuForm" lay-filter="menuForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="menuId" type="hidden"/>
|
<input name="menuId" type="hidden"/>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="menuForm" lay-filter="menuForm">
|
<form class="layui-form" id="menuForm" lay-filter="menuForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="menuId" type="hidden"/>
|
<input name="menuId" type="hidden"/>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="noticeForm" lay-filter="noticeForm">
|
<form class="layui-form" id="noticeForm" lay-filter="noticeForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="noticeId" type="hidden"/>
|
<input name="noticeId" type="hidden"/>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="noticeForm" lay-filter="noticeForm">
|
<form class="layui-form" id="noticeForm" lay-filter="noticeForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="noticeId" type="hidden"/>
|
<input name="noticeId" type="hidden"/>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="roleForm" lay-filter="roleForm">
|
<form class="layui-form" id="roleForm" lay-filter="roleForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="roleId" type="hidden"/>
|
<input name="roleId" type="hidden"/>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="roleForm" lay-filter="roleForm">
|
<form class="layui-form" id="roleForm" lay-filter="roleForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="roleId" type="hidden"/>
|
<input name="roleId" type="hidden"/>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="timerForm" lay-filter="positionForm">
|
<form class="layui-form" id="timerForm" lay-filter="positionForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="timerId" type="hidden"/>
|
<input name="timerId" type="hidden"/>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<form class="layui-form" id="positionForm" lay-filter="positionForm">
|
<form class="layui-form" id="positionForm" lay-filter="positionForm">
|
||||||
<div class="layui-fluid" style="padding-bottom: 75px;">
|
<div class="layui-fluid" style="padding-bottom: 75px;">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">基本信息</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="layui-form-item layui-row">
|
<div class="layui-form-item layui-row">
|
||||||
<input name="timerId" type="hidden"/>
|
<input name="timerId" type="hidden"/>
|
||||||
|
|
Loading…
Reference in New Issue