64 lines
1.8 KiB
Plaintext
64 lines
1.8 KiB
Plaintext
/*值班人员管理*/
|
|
function openDutyPersonPage() {
|
|
let layerIndex = layer.open({
|
|
id: "dutyPerson",
|
|
title: false,
|
|
type: 2,
|
|
maxmin: false,
|
|
content: '../dutyTask/schedulingChild/schedulingPerson.html',
|
|
area: ['100%', '100%'],
|
|
move: false,
|
|
closeBtn: 0,
|
|
success: function (layero, index) {
|
|
}
|
|
});
|
|
}
|
|
|
|
/*用户绑定排班人员表*/
|
|
function userBanding(){
|
|
let layerIndex = layer.open({
|
|
id: "userBanding",
|
|
title: false,
|
|
type: 2,
|
|
maxmin: false,
|
|
content: '../dutyTask/schedulingChild/userBandingMge.html',
|
|
area: ['100%', '100%'],
|
|
move: false,
|
|
closeBtn: 0,
|
|
success: function (layero, index) {
|
|
}
|
|
});
|
|
}
|
|
|
|
// 新增排班
|
|
function addSchedulingData(type) {
|
|
if (hasData && !type) {
|
|
return layer.msg('选中日期已添加排班人员', {icon: 7})
|
|
}
|
|
let title = '新增排班'
|
|
if(type){
|
|
title = '修改排班'
|
|
}
|
|
let dateRange = '';
|
|
$('.date-box').find('p').each(function () {
|
|
if ($(this).hasClass('p-checked')) {
|
|
dateRange = $(this).html();
|
|
}
|
|
})
|
|
if (!dateRange) {
|
|
return layer.msg('未选择日期', {icon: 7})
|
|
}
|
|
let layerIndex = layer.open({
|
|
id: "dutyPerson",
|
|
title: ['<div style="border-left: 3px solid #2F82FB;display: flex;align-items: center;height: 20px;padding: 0 10px;">' + title + '</div>', 'font-size:16px;background-color:#f0f0f0;display: flex;align-items: center;'],
|
|
type: 2,
|
|
maxmin: false,
|
|
content: 'schedulingChild/addSchedulingForm.html',
|
|
area: ['1400px', '744px'],
|
|
move: false,
|
|
success: function (layero, index) {
|
|
let iframeWin = window["layui-layer-iframe" + layerIndex];
|
|
iframeWin.setParams(dateRange,type);
|
|
}
|
|
});
|
|
} |