|
|
|
@ -48,6 +48,14 @@
|
|
|
|
|
.data_list table td{
|
|
|
|
|
line-height: 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layui-layer-title {
|
|
|
|
|
text-align: center;
|
|
|
|
|
height: 42px;
|
|
|
|
|
line-height: 42px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
@ -230,6 +238,7 @@
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
|
|
|
|
|
charset="UTF-8"></script>
|
|
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
|
|
<script src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
</script>
|
|
|
|
|
<script>
|
|
|
|
@ -403,6 +412,77 @@
|
|
|
|
|
$("body").append(iframeExcel)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
//新增批注
|
|
|
|
|
$(".addRemark").click(function(){
|
|
|
|
|
var id = $(this).data("id");
|
|
|
|
|
layer.prompt({
|
|
|
|
|
formType: 2,
|
|
|
|
|
value: '',
|
|
|
|
|
title: '输入备注',
|
|
|
|
|
area: ['360px', '300px'] //自定义文本域宽高
|
|
|
|
|
}, function(value, index, elem){
|
|
|
|
|
if(value != ''){
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: "{:U('saveRemark')}",
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
async: false,
|
|
|
|
|
data: {id:id,remark:value},
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.status==1){
|
|
|
|
|
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},1500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
layer.closeAll();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
//编辑批注
|
|
|
|
|
$(".editRemark").click(function(){
|
|
|
|
|
var id = $(this).data("id");
|
|
|
|
|
var remark = $(this).data("remark");
|
|
|
|
|
layer.prompt({
|
|
|
|
|
formType: 2,
|
|
|
|
|
title: '修改备注',
|
|
|
|
|
value:remark,
|
|
|
|
|
area: ['360px', '300px'],
|
|
|
|
|
btnAlign: 'c',
|
|
|
|
|
id: 'prompt',
|
|
|
|
|
yes: function (index, layero) {
|
|
|
|
|
// 获取文本框输入的值
|
|
|
|
|
var value = layero.find(".layui-layer-input").val();
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: "{:U('saveRemark')}",
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
async: false,
|
|
|
|
|
data: {id:id,remark:value},
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.status==1){
|
|
|
|
|
layer.msg("<font style='color:white'>" + data.info + "</font>");
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},1500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
//查看批注
|
|
|
|
|
$(".viewRemark").click(function () {
|
|
|
|
|
var remark = $(this).data("remark");
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 1,
|
|
|
|
|
title:false,
|
|
|
|
|
content:"<div style='width: 300;height:auto;margin: auto;padding:20px;'>"+remark+"</div>"
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|