提交 50c63e45 编写于 作者: doc_wei's avatar doc_wei

组织管理页面地址整改

上级 26eb8d2b
......@@ -27,7 +27,7 @@ layui.config({
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '商品名称', align: 'left', width: 150, templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.name + '</a>';
return '<a lay-event="details" class="notice-title-click">' + d.name + '</a>';
}},
{ field: 'model', title: '型号', align: 'left', width: 150 },
{ field: 'categoryName', title: '所属类型', width: 100 },
......
......@@ -18,11 +18,10 @@ layui.config({
url: reqBasePath + "companydepartment004",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/companydepartment/companydepartmenteditTemplate.tpl'),
template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function(hdb) {
},
ajaxSendAfter:function (json) {
$("#overtimeSettlementType").val(json.bean.overtimeSettlementType);
layedit.set({
......@@ -83,7 +82,6 @@ layui.config({
// 加载公司数据
systemCommonUtil.getSysCompanyList(function(data) {
// 加载企业数据
$("#companyId").html(getDataUseHandlebars(getFileContent('tpl/template/select-option.tpl'), data));
$("#companyId").val(json.bean.companyId);
});
......
......@@ -93,9 +93,9 @@ layui.config({
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/companydepartment/companydepartmentedit.html",
url: "../../tpl/companyDepartment/companyDepartmentEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "companydepartmentedit",
pageId: "companyDepartmentEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
......@@ -106,9 +106,9 @@ layui.config({
// 新增
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/companydepartment/companydepartmentadd.html",
url: "../../tpl/companyDepartment/companyDepartmentAdd.html",
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "companydepartmentadd",
pageId: "companyDepartmentAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
......@@ -137,5 +137,5 @@ layui.config({
}
}
exports('companydepartmentlist', {});
exports('companyDepartmentList', {});
});
......@@ -22,7 +22,7 @@ layui.config({
url: reqBasePath + "companyjob004",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/companyjob/companyjobeditTemplate.tpl'),
template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function(hdb) {
},
ajaxSendAfter:function (json) {
......
......@@ -54,6 +54,7 @@ layui.config({
url: reqBasePath + 'companyjob001',
where: getTableParams(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'jobName', title: '职位名称', width: 180 },
{ field: 'id', title: '职位简介', width: 80, align: 'center', templet: function (d) {
return '<i class="fa fa-fw fa-html5 cursor" lay-event="jobDesc"></i>';
......@@ -62,7 +63,7 @@ layui.config({
{ field: 'companyName', title: '所属公司', width: 150 },
{ field: 'departmentName', title: '所属部门', width: 100 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'}
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar' }
]],
done: function(json) {
matchingLanguage();
......@@ -103,7 +104,7 @@ layui.config({
return false;
});
//删除
// 删除
function del(data, obj) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
......@@ -114,13 +115,13 @@ layui.config({
});
}
//编辑
// 编辑
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/companyjob/companyjobedit.html",
url: "../../tpl/companyJob/companyJobEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "companyjobedit",
pageId: "companyJobEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
......@@ -148,9 +149,9 @@ layui.config({
// 新增
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/companyjob/companyjobadd.html",
url: "../../tpl/companyJob/companyJobAdd.html",
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "companyjobadd",
pageId: "companyJobAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
......@@ -170,5 +171,5 @@ layui.config({
};
}
exports('companyjoblist', {});
exports('companyJobList', {});
});
......@@ -13,7 +13,6 @@ layui.config({
tableTree = layui.tableTreeDj;
authBtn('1552959308337');
// 公司列表
tableTree.render({
id: 'messageTable',
elem: '#messageTable',
......@@ -21,6 +20,7 @@ layui.config({
url: reqBasePath + 'companymation001',
where:{companyName: $("#companyName").val()},
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'companyName', width: 300, title: '公司名称'},
{ field: 'companyDesc', width: 80, title: '公司简介', align: 'center', templet: function (d) {
return '<i class="fa fa-fw fa-html5 cursor" lay-event="companyDesc"></i>';
......@@ -43,8 +43,8 @@ layui.config({
}
return str;
}},
{ field:'createTime', width:150, align: 'center', title: systemLanguage["com.skyeye.entryTime"][languageType]},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'}
{ field:'createTime', width:150, align: 'center', title: systemLanguage["com.skyeye.entryTime"][languageType] },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar' }
]],
isPage:false,
done: function(json) {
......@@ -83,7 +83,7 @@ layui.config({
return false;
});
//删除
// 删除
function del(data, obj) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
......@@ -94,13 +94,13 @@ layui.config({
});
}
//编辑
// 编辑
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/companymation/companymationedit.html",
url: "../../tpl/companyMation/companyMationEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "companymationedit",
pageId: "companyMationEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
......@@ -108,17 +108,17 @@ layui.config({
}});
}
//刷新数据
// 刷新数据
$("body").on("click", "#reloadTable", function() {
loadTable();
});
//新增
// 新增
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/companymation/companymationadd.html",
url: "../../tpl/companyMation/companyMationAdd.html",
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "companymationadd",
pageId: "companyMationAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
......@@ -130,5 +130,5 @@ layui.config({
tableTree.reload("messageTable", {where:{companyName: $("#companyName").val()}});
}
exports('companymationlist', {});
exports('companyMationList', {});
});
......@@ -52,7 +52,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companydepartment/'}).use('companydepartmentadd');
layui.config({base: '../../js/companyDepartment/'}).use('companyDepartmentAdd');
</script>
</body>
</html>
\ No newline at end of file
......@@ -44,7 +44,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companydepartment/'}).use('companyDepartmentChooseList');
layui.config({base: '../../js/companyDepartment/'}).use('companyDepartmentChooseList');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script type="text/x-handlebars-template" id="beanTemplate">
{{#bean}}
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">所属公司<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="companyId" lay-search="" win-verify="required" id="companyId">
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">部门名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="departmentName" name="departmentName" win-verify="required" placeholder="请输入部门名称" class="layui-input" maxlength="50" value="{{departmentName}}"/>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">加班结算方式<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="overtimeSettlementType" lay-search="" win-verify="required" id="overtimeSettlementType">
<option value="">请选择</option>
<option value="1">单倍薪资结算</option>
<option value="2">1.5倍薪资结算</option>
<option value="3">双倍薪资结算</option>
<option value="6">补休结算</option>
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">部门简介</label>
<div class="layui-input-block">
<textarea id="content" name="content" style="display: none;">{{departmentDesc}}</textarea>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/lay/modules/ace/ace.js"></script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companyDepartment/'}).use('companyDepartmentEdit');
</script>
</body>
</html>
\ No newline at end of file
......@@ -56,7 +56,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companydepartment/'}).use('companydepartmentlist');
layui.config({base: '../../js/companyDepartment/'}).use('companyDepartmentList');
</script>
</body>
</html>
\ No newline at end of file
......@@ -55,7 +55,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companyjob/'}).use('companyjobadd');
layui.config({base: '../../js/companyJob/'}).use('companyJobEdd');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script type="text/x-handlebars-template" id="beanTemplate">
{{#bean}}
<div class="layui-form-item">
<label class="layui-form-label">所属公司<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="companyId" lay-search="" win-verify="required" id="companyId">
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">所属部门<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="departmentId" lay-search="" win-verify="required" id="departmentId">
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">所属父职位</label>
<div class="layui-input-block" id="pIdBox">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">职位名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="jobName" name="jobName" win-verify="required" placeholder="请输入职位名称" class="layui-input" maxlength="50" value="{{jobName}}"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">职位简介</label>
<div class="layui-input-block">
<textarea id="content" name="content" style="display: none;">{{jobDesc}}</textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/lay/modules/ace/ace.js"></script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companyJob/'}).use('companyJobEdit');
</script>
</body>
</html>
\ No newline at end of file
......@@ -56,7 +56,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companyjob/'}).use('companyjoblist');
layui.config({base: '../../js/companyJob/'}).use('companyJobList');
</script>
</body>
</html>
\ No newline at end of file
......@@ -40,7 +40,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companymation/'}).use('companyChooseList');
layui.config({base: '../../js/companyMation/'}).use('companyChooseList');
</script>
</body>
</html>
\ No newline at end of file
......@@ -121,7 +121,7 @@
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companymation/'}).use('companymationadd');
layui.config({base: '../../js/companyMation/'}).use('companyMationAdd');
</script>
</body>
</html>
\ No newline at end of file
......@@ -127,7 +127,7 @@
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companymation/'}).use('companymationedit');
layui.config({base: '../../js/companyMation/'}).use('companyMationEdit');
</script>
</body>
</html>
\ No newline at end of file
......@@ -41,7 +41,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companymation/'}).use('companymationlist');
layui.config({base: '../../js/companyMation/'}).use('companyMationList');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script src="../../assets/lib/layui/lay/modules/ace/ace.js"></script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companydepartment/'}).use('companydepartmentedit');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script src="../../assets/lib/layui/lay/modules/ace/ace.js"></script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/companyjob/'}).use('companyjobedit');
</script>
</body>
</html>
\ No newline at end of file
{{#bean}}
<div class="layui-form-item">
<label class="layui-form-label">所属公司<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="companyId" lay-search="" win-verify="required" id="companyId">
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">所属部门<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="departmentId" lay-search="" win-verify="required" id="departmentId">
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">所属父职位</label>
<div class="layui-input-block" id="pIdBox">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">职位名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="jobName" name="jobName" win-verify="required" placeholder="请输入职位名称" class="layui-input" maxlength="50" value="{{jobName}}"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">职位简介</label>
<div class="layui-input-block">
<textarea id="content" name="content" style="display: none;">{{jobDesc}}</textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
{{/bean}}
\ No newline at end of file
......@@ -115,7 +115,7 @@ layui.config({
});
$("body").on("click", "#companySel", function() {
_openNewWindows({
url: "../../tpl/companymation/companyChooseList.html",
url: "../../tpl/companyMation/companyChooseList.html",
title: "选择企业",
pageId: "companyChooseList",
area: ['90vw', '90vh'],
......@@ -136,7 +136,7 @@ layui.config({
});
$("body").on("click", "#departmentSel", function() {
_openNewWindows({
url: "../../tpl/companydepartment/companyDepartmentChooseList.html",
url: "../../tpl/companyDepartment/companyDepartmentChooseList.html",
title: "选择部门",
pageId: "companyDepartmentChooseList",
area: ['90vw', '90vh'],
......
......@@ -179,7 +179,7 @@ layui.config({
// 选择企业
$("body").on("click", "#companySel", function() {
_openNewWindows({
url: "../../tpl/companymation/companyChooseList.html",
url: "../../tpl/companyMation/companyChooseList.html",
title: "选择企业",
pageId: "companyChooseList",
area: ['90vw', '90vh'],
......@@ -192,7 +192,7 @@ layui.config({
// 选择部门
$("body").on("click", "#departmentSel", function() {
_openNewWindows({
url: "../../tpl/companydepartment/companyDepartmentChooseList.html",
url: "../../tpl/companyDepartment/companyDepartmentChooseList.html",
title: "选择部门",
pageId: "companyDepartmentChooseList",
area: ['90vw', '90vh'],
......
......@@ -100,7 +100,7 @@ layui.config({
});
$("body").on("click", "#companySel", function() {
_openNewWindows({
url: "../../tpl/companymation/companyChooseList.html",
url: "../../tpl/companyMation/companyChooseList.html",
title: "选择企业",
pageId: "companyChooseList",
area: ['90vw', '90vh'],
......@@ -121,7 +121,7 @@ layui.config({
});
$("body").on("click", "#departmentSel", function() {
_openNewWindows({
url: "../../tpl/companydepartment/companyDepartmentChooseList.html",
url: "../../tpl/companyDepartment/companyDepartmentChooseList.html",
title: "选择部门",
pageId: "companyDepartmentChooseList",
area: ['90vw', '90vh'],
......
......@@ -153,7 +153,7 @@ layui.config({
// 选择企业
$("body").on("click", "#companySel", function() {
_openNewWindows({
url: "../../tpl/companymation/companyChooseList.html",
url: "../../tpl/companyMation/companyChooseList.html",
title: "选择企业",
pageId: "companyChooseList",
area: ['90vw', '90vh'],
......@@ -166,7 +166,7 @@ layui.config({
// 选择部门
$("body").on("click", "#departmentSel", function() {
_openNewWindows({
url: "../../tpl/companydepartment/companyDepartmentChooseList.html",
url: "../../tpl/companyDepartment/companyDepartmentChooseList.html",
title: "选择部门",
pageId: "companyDepartmentChooseList",
area: ['90vw', '90vh'],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册