提交 77cc5eb1 编写于 作者: W weizhiqiang

时间插件修改

上级 4bdb4b06
...@@ -25,20 +25,10 @@ layui.config({ ...@@ -25,20 +25,10 @@ layui.config({
}); });
// 事故时间 // 事故时间
laydate.render({ laydate.render({elem: '#accidentTime', type: 'date', max: getYMDFormatDate(), trigger: 'click'});
elem: '#accidentTime',
type: 'date',
max: getYMDFormatDate(),// 设置最大可选的日期
trigger: 'click'
});
// 送修时间段选择 // 送修时间段选择
laydate.render({ laydate.render({elem: '#repairTime', type: 'date', range: true, trigger: 'click'});
elem: '#repairTime',
type: 'date',
range: true,
trigger: 'click'
});
skyeyeEnclosure.init('enclosureUpload'); skyeyeEnclosure.init('enclosureUpload');
matchingLanguage(); matchingLanguage();
......
...@@ -13,10 +13,7 @@ layui.config({ ...@@ -13,10 +13,7 @@ layui.config({
laydate = layui.laydate, laydate = layui.laydate,
table = layui.table; table = layui.table;
laydate.render({ laydate.render({elem: '#createTime', range: '~'});
elem: '#createTime',
range: '~'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -16,10 +16,7 @@ layui.config({ ...@@ -16,10 +16,7 @@ layui.config({
// 新增 // 新增
authBtn('1650894715778'); authBtn('1650894715778');
laydate.render({ laydate.render({elem: '#createTime', range: '~'});
elem: '#createTime',
range: '~'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -16,10 +16,7 @@ layui.config({ ...@@ -16,10 +16,7 @@ layui.config({
// 新增 // 新增
authBtn('1650787545029'); authBtn('1650787545029');
laydate.render({ laydate.render({elem: '#createTime', range: '~'});
elem: '#createTime',
range: '~'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -13,10 +13,7 @@ layui.config({ ...@@ -13,10 +13,7 @@ layui.config({
laydate = layui.laydate, laydate = layui.laydate,
table = layui.table; table = layui.table;
laydate.render({ laydate.render({elem: '#createTime', range: '~'});
elem: '#createTime',
range: '~'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -13,10 +13,7 @@ layui.config({ ...@@ -13,10 +13,7 @@ layui.config({
laydate = layui.laydate, laydate = layui.laydate,
table = layui.table; table = layui.table;
laydate.render({ laydate.render({elem: '#createTime', range: '~'});
elem: '#createTime',
range: '~'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -16,10 +16,7 @@ layui.config({ ...@@ -16,10 +16,7 @@ layui.config({
// 新增 // 新增
authBtn('1649569413156'); authBtn('1649569413156');
laydate.render({ laydate.render({elem: '#createTime', range: '~'});
elem: '#createTime',
range: '~'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -10,7 +10,7 @@ layui.config({ ...@@ -10,7 +10,7 @@ layui.config({
var $ = layui.$; var $ = layui.$;
AjaxPostUtil.request({url: flowableBasePath + "checkworkbusinesstrip003", params: {rowId: parent.rowId}, type: 'json', method: 'GET', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "checkworkbusinesstrip003", params: {rowId: parent.rowId}, type: 'json', method: 'GET', callback: function(json) {
json.bean.stateName = getStateNameByState(json.bean.state, json.bean.stateName); json.bean.stateName = activitiUtil.showStateName2(json.bean.state, 1);
$("#showForm").html(getDataUseHandlebars($("#useTemplate").html(), json)); $("#showForm").html(getDataUseHandlebars($("#useTemplate").html(), json));
......
...@@ -19,10 +19,7 @@ layui.config({ ...@@ -19,10 +19,7 @@ layui.config({
authBtn('1617804801914'); authBtn('1617804801914');
// 申请时间 // 申请时间
laydate.render({ laydate.render({elem: '#applyTime', range: '~'});
elem: '#applyTime',
range: '~'
});
// 我的出差申请列表 // 我的出差申请列表
table.render({ table.render({
...@@ -45,20 +42,8 @@ layui.config({ ...@@ -45,20 +42,8 @@ layui.config({
return '<a lay-event="processDetails" class="notice-title-click">' + d.processInstanceId + '</a>'; return '<a lay-event="processDetails" class="notice-title-click">' + d.processInstanceId + '</a>';
}}, }},
{ field: 'stateName', title: '状态', width: 90, templet: function (d) { { field: 'stateName', title: '状态', width: 90, templet: function (d) {
if(d.state == '0'){ return activitiUtil.showStateName2(d.state, 1);
return "<span>" + d.stateName + "</span>"; }},
}else if(d.state == '1'){
return "<span class='state-new'>" + d.stateName + "</span>";
}else if(d.state == '2'){
return "<span class='state-up'>" + d.stateName + "</span>";
}else if(d.state == '3'){
return "<span class='state-down'>" + d.stateName + "</span>";
}else if(d.state == '4'){
return "<span class='state-down'>" + d.stateName + "</span>";
}else if(d.state == '5'){
return "<span class='state-error'>" + d.stateName + "</span>";
}
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], width: 150 }, { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#messageTableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#messageTableBar'}
]], ]],
......
...@@ -14,10 +14,7 @@ layui.config({ ...@@ -14,10 +14,7 @@ layui.config({
laydate = layui.laydate; laydate = layui.laydate;
// 考勤日期选取时间段表格 // 考勤日期选取时间段表格
laydate.render({ laydate.render({elem: '#checkDate', range: '~'});
elem: '#checkDate',
range: '~'
});
// 获取当前登陆人的考勤班次 // 获取当前登陆人的考勤班次
checkWorkUtil.getCurrentUserCheckWorkTimeList(function (json) { checkWorkUtil.getCurrentUserCheckWorkTimeList(function (json) {
......
...@@ -19,10 +19,7 @@ layui.config({ ...@@ -19,10 +19,7 @@ layui.config({
authBtn('1618046226263'); authBtn('1618046226263');
// 申请时间 // 申请时间
laydate.render({ laydate.render({elem: '#applyTime', range: '~'});
elem: '#applyTime',
range: '~'
});
// 我的加班申请列表 // 我的加班申请列表
table.render({ table.render({
......
...@@ -20,10 +20,7 @@ layui.config({ ...@@ -20,10 +20,7 @@ layui.config({
var selOption = getFileContent('tpl/template/select-option-must.tpl'); var selOption = getFileContent('tpl/template/select-option-must.tpl');
laydate.render({ laydate.render({elem: '#operTime', range: '~'});
elem: '#operTime', //指定元素
range: '~'
});
initDepotHtml(); initDepotHtml();
//初始化仓库 //初始化仓库
......
...@@ -16,15 +16,9 @@ layui.config({ ...@@ -16,15 +16,9 @@ layui.config({
$("#showInfo").html("账套选择规则:双击指定行即可选中。"); $("#showInfo").html("账套选择规则:双击指定行即可选中。");
laydate.render({ laydate.render({elem: '#startTime', range: '~'});
elem: '#startTime',
range: '~'
});
laydate.render({ laydate.render({elem: '#endTime', range: '~'});
elem: '#endTime',
range: '~'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -21,13 +21,8 @@ layui.config({ ...@@ -21,13 +21,8 @@ layui.config({
var selOption = getFileContent('tpl/template/select-option.tpl'); var selOption = getFileContent('tpl/template/select-option.tpl');
var handsPersonList = new Array();//经手人员 var handsPersonList = new Array();//经手人员
//单据时间 // 单据时间
laydate.render({ laydate.render({elem: '#operTime', type: 'datetime', value: getFormatDate(), trigger: 'click'});
elem: '#operTime',
type: 'datetime',
value: getFormatDate(),
trigger: 'click'
});
// 初始化账户 // 初始化账户
systemCommonUtil.getSysAccountListByType(function (json) { systemCommonUtil.getSysAccountListByType(function (json) {
......
...@@ -17,10 +17,7 @@ layui.config({ ...@@ -17,10 +17,7 @@ layui.config({
authBtn('1571638020191');//新增 authBtn('1571638020191');//新增
authBtn('1572313776196');//导出 authBtn('1572313776196');//导出
laydate.render({ laydate.render({elem: '#billTime', range: '~'});
elem: '#billTime',
range: '~'
});
function initloadTable() { function initloadTable() {
table.render({ table.render({
......
...@@ -54,10 +54,7 @@ layui.config({ ...@@ -54,10 +54,7 @@ layui.config({
}) })
// '看日报'页面的选取时间段表格 // '看日报'页面的选取时间段表格
laydate.render({ laydate.render({elem: '#receivedTime', range: '~'});
elem: '#receivedTime',
range: '~'
});
form.render(); form.render();
......
...@@ -13,10 +13,7 @@ layui.config({ ...@@ -13,10 +13,7 @@ layui.config({
flow = layui.flow; flow = layui.flow;
// 选取时间段表格 // 选取时间段表格
laydate.render({ laydate.render({elem: '#createTime', range: '~'});
elem: '#createTime',
range: '~'
});
// 时间线日志列表模板 // 时间线日志列表模板
var timeTreeJobDiary = $("#timeTreeJobDiary").html(); var timeTreeJobDiary = $("#timeTreeJobDiary").html();
......
...@@ -17,10 +17,7 @@ layui.config({ ...@@ -17,10 +17,7 @@ layui.config({
authBtn('1555748167744'); authBtn('1555748167744');
// '我发出的'页面的选取时间段表格 // '我发出的'页面的选取时间段表格
laydate.render({ laydate.render({elem: '#createTime', range: '~'});
elem: '#createTime',
range: '~'
});
form.render(); form.render();
......
...@@ -23,12 +23,8 @@ layui.config({ ...@@ -23,12 +23,8 @@ layui.config({
} }
}); });
//生日 // 生日
laydate.render({ laydate.render({elem: '#birthday', range: false, max: getNowFormatDate()});
elem: '#birthday', //指定元素
range: false,
max: getNowFormatDate()
});
//通讯录类型变化事件 //通讯录类型变化事件
form.on('radio(category)', function (data) { form.on('radio(category)', function (data) {
......
...@@ -47,11 +47,7 @@ layui.config({ ...@@ -47,11 +47,7 @@ layui.config({
}); });
// 生日 // 生日
laydate.render({ laydate.render({elem: '#birthday', range: false, max: getNowFormatDate()});
elem: '#birthday', //指定元素
range: false,
max: getNowFormatDate()
});
// 通讯录类型变化事件 // 通讯录类型变化事件
form.on('radio(category)', function (data) { form.on('radio(category)', function (data) {
......
...@@ -77,11 +77,8 @@ layui.config({ ...@@ -77,11 +77,8 @@ layui.config({
} }
}); });
//定时通知时间选择器 // 定时通知时间选择器
laydate.render({ laydate.render({elem: '#delayedTime', type: 'datetime'});
elem: '#delayedTime'
,type: 'datetime'
});
//公告内容富文本框 //公告内容富文本框
var content = layedit.build('content', { var content = layedit.build('content', {
......
...@@ -79,11 +79,8 @@ layui.config({ ...@@ -79,11 +79,8 @@ layui.config({
} }
}); });
//定时通知时间选择器 // 定时通知时间选择器
laydate.render({ laydate.render({elem: '#delayedTime', type: 'datetime'});
elem: '#delayedTime'
,type: 'datetime'
});
//设置群发类型 //设置群发类型
$("input:radio[name=sendType][value=" + json.bean.sendType + "]").attr("checked", true); $("input:radio[name=sendType][value=" + json.bean.sendType + "]").attr("checked", true);
......
...@@ -14,11 +14,8 @@ layui.config({ ...@@ -14,11 +14,8 @@ layui.config({
soulTable = layui.soulTable, soulTable = layui.soulTable,
table = layui.table; table = layui.table;
//公告上线时间时间段表格 // 公告上线时间时间段表格
laydate.render({ laydate.render({elem: '#upTime', range: '~'});
elem: '#upTime',
range: '~'
});
authBtn('1561973831412'); authBtn('1561973831412');
......
...@@ -14,11 +14,8 @@ layui.config({ ...@@ -14,11 +14,8 @@ layui.config({
laydate = layui.laydate, laydate = layui.laydate,
table = layui.table; table = layui.table;
//公告上线时间时间段表格 // 公告上线时间时间段表格
laydate.render({ laydate.render({elem: '#upTime', range: '~'});
elem: '#upTime', //指定元素
range: '~'
});
function showList(){ function showList(){
table.render({ table.render({
......
...@@ -60,15 +60,9 @@ layui.config({ ...@@ -60,15 +60,9 @@ layui.config({
ue.setContent("在此处填写您的[项目成果和总结]"); ue.setContent("在此处填写您的[项目成果和总结]");
}); });
laydate.render({ laydate.render({elem: '#actualStartTime', value: json.bean.actualStartTime});
elem: '#actualStartTime',
value: json.bean.actualStartTime
});
laydate.render({ laydate.render({elem: '#actualEndTime', value: json.bean.actualEndTime});
elem: '#actualEndTime',
value: json.bean.actualEndTime
});
matchingLanguage(); matchingLanguage();
form.render(); form.render();
......
...@@ -20,12 +20,8 @@ layui.config({ ...@@ -20,12 +20,8 @@ layui.config({
pagination: false, pagination: false,
template: getFileContent('tpl/schedule/editscheduleTemplate.tpl'), template: getFileContent('tpl/schedule/editscheduleTemplate.tpl'),
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
//编辑节假日选取时间段 // 编辑节假日选取时间段
laydate.render({ laydate.render({elem: '#holidayTime', range: '~', value: json.bean.scheduleStartTime + ' ~ ' + json.bean.scheduleEndTime});
elem: '#holidayTime', //指定元素
range: '~',
value: json.bean.scheduleStartTime + ' ~ ' + json.bean.scheduleEndTime
});
matchingLanguage(); matchingLanguage();
form.render(); form.render();
form.on('submit(formBean)', function (data) { form.on('submit(formBean)', function (data) {
......
...@@ -13,11 +13,8 @@ layui.config({ ...@@ -13,11 +13,8 @@ layui.config({
var $ = layui.$; var $ = layui.$;
laydate = layui.laydate; laydate = layui.laydate;
//新增节假日选取时间段 // 新增节假日选取时间段
laydate.render({ laydate.render({elem: '#holidayTime', range: '~'});
elem: '#holidayTime',
range: '~'
});
matchingLanguage(); matchingLanguage();
form.render(); form.render();
......
...@@ -24,10 +24,7 @@ layui.config({ ...@@ -24,10 +24,7 @@ layui.config({
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}) table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()})
}); });
laydate.render({ laydate.render({elem: '#intercourseTime', range: '~'});
elem: '#intercourseTime',
range: '~'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -24,10 +24,7 @@ layui.config({ ...@@ -24,10 +24,7 @@ layui.config({
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}) table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()})
}); });
laydate.render({ laydate.render({elem: '#intercourseTime', range: '~'});
elem: '#intercourseTime',
range: '~'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -42,13 +42,7 @@ layui.config({ ...@@ -42,13 +42,7 @@ layui.config({
}, },
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
laydate.render({ laydate.render({elem: '#endTime', format: 'yyyy-MM-dd HH:mm:ss', type: 'datetime', min: minDate(), theme: 'grid'});
elem: '#endTime', //指定元素
format: 'yyyy-MM-dd HH:mm:ss',
type: 'datetime',
min:minDate(),
theme: 'grid'
});
if(json.bean.ynEndTime == '1'){ if(json.bean.ynEndTime == '1'){
$("#endTimeHide").hide(); $("#endTimeHide").hide();
...@@ -93,7 +87,6 @@ layui.config({ ...@@ -93,7 +87,6 @@ layui.config({
}); });
form.on('submit(formAddBean)', function (data) { form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
var params = { var params = {
rowId: parent.parent.rowId rowId: parent.parent.rowId
......
...@@ -11,10 +11,7 @@ layui.config({ ...@@ -11,10 +11,7 @@ layui.config({
table = layui.table, table = layui.table,
laydate = layui.laydate; laydate = layui.laydate;
laydate.render({ laydate.render({elem: '#monthTime', type: 'month' });
elem: '#monthTime',
type: 'month'
});
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
......
...@@ -12,11 +12,8 @@ layui.config({ ...@@ -12,11 +12,8 @@ layui.config({
laydate = layui.laydate, laydate = layui.laydate,
form = layui.form; form = layui.form;
//选择离职时间 // 选择离职时间
laydate.render({ laydate.render({elem: '#quitTime', range: false});
elem: '#quitTime',
range: false
});
matchingLanguage(); matchingLanguage();
form.render(); form.render();
......
...@@ -6,7 +6,6 @@ layui.config({ ...@@ -6,7 +6,6 @@ layui.config({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui'], function (exports) { }).define(['window', 'table', 'jquery', 'winui'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
table = layui.table; table = layui.table;
......
...@@ -14,10 +14,7 @@ layui.config({ ...@@ -14,10 +14,7 @@ layui.config({
table = layui.table, table = layui.table,
laydate = layui.laydate; laydate = layui.laydate;
laydate.render({ laydate.render({elem: '#payMonth', type: 'month'});
elem: '#payMonth',
type: 'month'
});
// 获取我的薪资发放历史列表 // 获取我的薪资发放历史列表
table.render({ table.render({
......
...@@ -21,11 +21,7 @@ layui.config({ ...@@ -21,11 +21,7 @@ layui.config({
form = layui.form, form = layui.form,
laydate = layui.laydate; laydate = layui.laydate;
laydate.render({ laydate.render({elem: '#executeMonth', type: 'month', range: '~'});
elem: '#executeMonth',
type: 'month',
range: '~'
});
skyeyeEnclosure.init('enclosureUpload'); skyeyeEnclosure.init('enclosureUpload');
matchingLanguage(); matchingLanguage();
......
...@@ -30,11 +30,7 @@ layui.config({ ...@@ -30,11 +30,7 @@ layui.config({
template: $("#beanTemplate").html(), template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function(hdb){}, ajaxSendLoadBefore: function(hdb){},
ajaxSendAfter:function (json) { ajaxSendAfter:function (json) {
laydate.render({ laydate.render({elem: '#executeMonth', type: 'month', range: '~'});
elem: '#executeMonth',
type: 'month',
range: '~'
});
if (!isNull(json.bean.company)){ if (!isNull(json.bean.company)){
companyList = json.bean.company; companyList = json.bean.company;
......
...@@ -12,10 +12,7 @@ layui.config({ ...@@ -12,10 +12,7 @@ layui.config({
table = layui.table, table = layui.table,
laydate = layui.laydate; laydate = layui.laydate;
laydate.render({ laydate.render({elem: '#executeTime', range: '~'});
elem: '#executeTime',
range: '~'
});
// 获取所有任务计划列表 // 获取所有任务计划列表
table.render({ table.render({
......
...@@ -13,10 +13,7 @@ layui.config({ ...@@ -13,10 +13,7 @@ layui.config({
table = layui.table, table = layui.table,
laydate = layui.laydate; laydate = layui.laydate;
laydate.render({ laydate.render({elem: '#executeTime', range: '~'});
elem: '#executeTime',
range: '~'
});
// 获取我的下属的任务计划列表 // 获取我的下属的任务计划列表
table.render({ table.render({
......
...@@ -12,10 +12,7 @@ layui.config({ ...@@ -12,10 +12,7 @@ layui.config({
table = layui.table, table = layui.table,
laydate = layui.laydate; laydate = layui.laydate;
laydate.render({ laydate.render({elem: '#executeTime', range: '~'});
elem: '#executeTime',
range: '~'
});
// 获取我创建的任务计划列表 // 获取我创建的任务计划列表
table.render({ table.render({
......
...@@ -13,10 +13,7 @@ layui.config({ ...@@ -13,10 +13,7 @@ layui.config({
table = layui.table, table = layui.table,
laydate = layui.laydate; laydate = layui.laydate;
laydate.render({ laydate.render({elem: '#executeTime', range: '~'});
elem: '#executeTime',
range: '~'
});
// 获取我的任务计划列表 // 获取我的任务计划列表
table.render({ table.render({
......
...@@ -25,13 +25,7 @@ layui.config({ ...@@ -25,13 +25,7 @@ layui.config({
layedit = layui.layedit; layedit = layui.layedit;
var myDate = new Date(); //获取当前时间 var myDate = new Date(); //获取当前时间
laydate.render({ laydate.render({elem: '#notifyTime', type: 'datetime', min: myDate.toLocaleString(), done: function(value, date, endDate) {}});
elem: '#notifyTime',
type: 'datetime',
min: myDate.toLocaleString(),
done: function(value, date, endDate){
}
});
if (!isNull(parent.timeSolt)){ if (!isNull(parent.timeSolt)){
// 如果父页面传递时间段 // 如果父页面传递时间段
...@@ -41,10 +35,7 @@ layui.config({ ...@@ -41,10 +35,7 @@ layui.config({
} else { } else {
$(".hand-down-time").addClass("layui-hide"); $(".hand-down-time").addClass("layui-hide");
$(".choose-time").removeClass("layui-hide"); $(".choose-time").removeClass("layui-hide");
laydate.render({ laydate.render({elem: '#executeTime', range: '~'});
elem: '#executeTime',
range: '~'
});
} }
if (!isNull(parent.nowCheckType)){ if (!isNull(parent.nowCheckType)){
......
...@@ -25,13 +25,7 @@ layui.config({ ...@@ -25,13 +25,7 @@ layui.config({
layedit = layui.layedit; layedit = layui.layedit;
var myDate = new Date(); //获取当前时间 var myDate = new Date(); //获取当前时间
laydate.render({ laydate.render({elem: '#notifyTime', type: 'datetime', min: myDate.toLocaleString(), done: function(value, date, endDate) {}});
elem: '#notifyTime',
type: 'datetime',
min: myDate.toLocaleString(),
done: function(value, date, endDate){
}
});
if (!isNull(parent.timeSolt)){ if (!isNull(parent.timeSolt)){
// 如果父页面传递时间段 // 如果父页面传递时间段
...@@ -41,10 +35,7 @@ layui.config({ ...@@ -41,10 +35,7 @@ layui.config({
} else { } else {
$(".hand-down-time").addClass("layui-hide"); $(".hand-down-time").addClass("layui-hide");
$(".choose-time").removeClass("layui-hide"); $(".choose-time").removeClass("layui-hide");
laydate.render({ laydate.render({elem: '#executeTime', range: '~'});
elem: '#executeTime',
range: '~'
});
} }
if (!isNull(parent.nowCheckType)){ if (!isNull(parent.nowCheckType)){
......
...@@ -26,13 +26,7 @@ layui.config({ ...@@ -26,13 +26,7 @@ layui.config({
layedit = layui.layedit; layedit = layui.layedit;
var myDate = new Date(); //获取当前时间 var myDate = new Date(); //获取当前时间
laydate.render({ laydate.render({elem: '#notifyTime', type: 'datetime', min: myDate.toLocaleString(), done: function(value, date, endDate) {}});
elem: '#notifyTime',
type: 'datetime',
min: myDate.toLocaleString(),
done: function(value, date, endDate){
}
});
var carryPeople = "";//指定人员id var carryPeople = "";//指定人员id
......
...@@ -25,13 +25,7 @@ layui.config({ ...@@ -25,13 +25,7 @@ layui.config({
layedit = layui.layedit; layedit = layui.layedit;
var myDate = new Date(); //获取当前时间 var myDate = new Date(); //获取当前时间
laydate.render({ laydate.render({elem: '#notifyTime', type: 'datetime', min: myDate.toLocaleString(), done: function(value, date, endDate) {}});
elem: '#notifyTime',
type: 'datetime',
min: myDate.toLocaleString(),
done: function(value, date, endDate){
}
});
if (!isNull(parent.timeSolt)){ if (!isNull(parent.timeSolt)){
// 如果父页面传递时间段 // 如果父页面传递时间段
...@@ -41,10 +35,7 @@ layui.config({ ...@@ -41,10 +35,7 @@ layui.config({
} else { } else {
$(".hand-down-time").addClass("layui-hide"); $(".hand-down-time").addClass("layui-hide");
$(".choose-time").removeClass("layui-hide"); $(".choose-time").removeClass("layui-hide");
laydate.render({ laydate.render({elem: '#executeTime', range: '~'});
elem: '#executeTime',
range: '~'
});
} }
if (!isNull(parent.nowCheckType)){ if (!isNull(parent.nowCheckType)){
......
...@@ -26,13 +26,7 @@ layui.config({ ...@@ -26,13 +26,7 @@ layui.config({
layedit = layui.layedit; layedit = layui.layedit;
var myDate = new Date(); //获取当前时间 var myDate = new Date(); //获取当前时间
laydate.render({ laydate.render({elem: '#notifyTime', type: 'datetime', min: myDate.toLocaleString(), done: function(value, date, endDate) {}});
elem: '#notifyTime',
type: 'datetime',
min: myDate.toLocaleString(),
done: function(value, date, endDate){
}
});
AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan007", params: {planId: parent.rowId}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan007", params: {planId: parent.rowId}, type: 'json', callback: function (json) {
nowCheckType = json.bean.planCycle; nowCheckType = json.bean.planCycle;
......
...@@ -26,13 +26,7 @@ layui.config({ ...@@ -26,13 +26,7 @@ layui.config({
layedit = layui.layedit; layedit = layui.layedit;
var myDate = new Date(); //获取当前时间 var myDate = new Date(); //获取当前时间
laydate.render({ laydate.render({elem: '#notifyTime', type: 'datetime', min: myDate.toLocaleString(), done: function(value, date, endDate) {}});
elem: '#notifyTime',
type: 'datetime',
min: myDate.toLocaleString(),
done: function(value, date, endDate){
}
});
AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan007", params: {planId: parent.rowId}, type: 'json', callback: function (json) { AjaxPostUtil.request({url: sysMainMation.workplanBasePath + "sysworkplan007", params: {planId: parent.rowId}, type: 'json', callback: function (json) {
nowCheckType = json.bean.planCycle; nowCheckType = json.bean.planCycle;
......
...@@ -13,13 +13,7 @@ layui.config({ ...@@ -13,13 +13,7 @@ layui.config({
laydate = layui.laydate; laydate = layui.laydate;
var myDate = new Date(); //获取当前时间 var myDate = new Date(); //获取当前时间
laydate.render({ laydate.render({elem: '#notifyTime', type: 'datetime', min: myDate.toLocaleString(), done: function(value, date, endDate) {}});
elem: '#notifyTime',
type: 'datetime',
min: myDate.toLocaleString(),
done: function(value, date, endDate){
}
});
matchingLanguage(); matchingLanguage();
form.render(); form.render();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册