修改主子表提交示例代码

pull/203/MERGE
RuoYi 2020-09-22 09:26:40 +08:00
parent 8c1e893657
commit ffb2d2bc87
1 changed files with 9 additions and 10 deletions

View File

@ -164,14 +164,6 @@
autoclose: true
});
function bindDatetimepicker() {
$("input[name$='date']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true,
pickerPosition:'top-right'
});
}
function addColumn() {
var count = $("#" + table.options.id).bootstrapTable('getData').length;
@ -188,9 +180,16 @@
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>
</body>
</html>