xubinxcode 3 years ago
parent
commit
8e1541b01e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      public/assets/js/backend/order_main.js

+ 5
- 1
public/assets/js/backend/order_main.js View File

@@ -2,6 +2,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin

var Controller = {
index: function () {
$(".btn-add").data("area",["100%","100%"]);
$(".btn-edit").data("area",["100%","100%"]);
// 初始化表格参数配置
Table.api.init({
extend: {
@@ -16,7 +18,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
});

var table = $("#table");

table.on('post-body.bs.table',function(){
$(".btn-editone").data("area",["100%","100%"]);
});
// 初始化表格
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,


Loading…
Cancel
Save