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

时间插件修改

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