修改主子表提交示例代码
parent
8c1e893657
commit
ffb2d2bc87
|
@ -164,14 +164,6 @@
|
||||||
autoclose: true
|
autoclose: true
|
||||||
});
|
});
|
||||||
|
|
||||||
function bindDatetimepicker() {
|
|
||||||
$("input[name$='date']").datetimepicker({
|
|
||||||
format: "yyyy-mm-dd",
|
|
||||||
minView: "month",
|
|
||||||
autoclose: true,
|
|
||||||
pickerPosition:'top-right'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function addColumn() {
|
function addColumn() {
|
||||||
var count = $("#" + table.options.id).bootstrapTable('getData').length;
|
var count = $("#" + table.options.id).bootstrapTable('getData').length;
|
||||||
|
@ -188,9 +180,16 @@
|
||||||
type: "",
|
type: "",
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
bindDatetimepicker();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#bootstrap-table").on("post-body.bs.table", function (e, args) {
|
||||||
|
$("input[name$='date']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true,
|
||||||
|
pickerPosition:'top-right'
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue