修复详情问题
This commit is contained in:
@@ -98,7 +98,7 @@ export default {
|
||||
});
|
||||
$this.initTable();
|
||||
$('#table').on('click', '.opt-detail', function () {
|
||||
$this.detail();
|
||||
$this.detail(this);
|
||||
});
|
||||
$('#btnSearch').click(function () {
|
||||
$this.search();
|
||||
@@ -145,8 +145,8 @@ export default {
|
||||
search() {
|
||||
TableHelper.doRefresh('#table');
|
||||
},
|
||||
detail() {
|
||||
const currentData = $('#table').bootstrapTable('getData')[$(this).data('index')];
|
||||
detail(obj) {
|
||||
const currentData = $('#table').bootstrapTable('getData')[$(obj).data('index')];
|
||||
let dateTime = currentData.dateTime;
|
||||
$('#detailTime').val(dateTime);
|
||||
TableHelper.destroy('#detailTable');
|
||||
|
Reference in New Issue
Block a user