height: 60px;
width:100%;
background-color: #2446AB;
font-size: 30px;
}
.crm {
font-family: inherit;
color: white;
}
td.setting{
background-color: red;
}
会议室预定系统
保存
会议室{% for time in time_list %}{{ time.1 }}{% endfor %}
{# 简单展示#}{# {% for room in room_list %}#}
{#
#}{#
{{ room.title }}#}{# {% for time in time_list %}#}
{#
#}{# {% endfor %}#}
{#
#}{# {% endfor %}#}
{# Ajax获取#}
{#日期选择器#}
language:'zh-CN',//显示中文
format: 'yyyy-mm-dd',//显示格式
minView: "month",//设置只显示到月份
initialDate: new Date(),//初始化当前日期
autoclose: true,//选中自动关闭
todayBtn: true//显示今日按钮
});
$("#datetimepicker").datetimepicker({
format:'yyyy-mm-dd',
minView:'month',
language:'zh-CN',
autoclose:true,
startDate:newDate()
});{#ajax获取数据----------#}
{#执行下面的函数#}
ajax_rom()
});
{# 定义一个函数#}
function ajax_rom() {
$.ajax({
url:'/booking/',
type:'GET',
success: function (arg) {
console.log(arg);if(arg.status) {
$.each(arg.data, function (i, item) {
{# 循环生成每一条数据,创建一个tr标签#}var tr = $("
");{# 循环属性 #}
{# 循环生成每一条数据,创建一个td标签#}
$.each(item, function (k, j) {var td = $("
");td.text(j.text);
$.each(j.attr, function (w,l) {
{# 给每一个td添加属性#}
$(td).attr(w,l);
});
tr.append(td);
});
$("#Tbody").append(tr)
})
}else{
}
}
})
}