diff --git a/apps/assets/templates/assets/admin_user_list.html b/apps/assets/templates/assets/admin_user_list.html index 44cd1bf06..73539ff5e 100644 --- a/apps/assets/templates/assets/admin_user_list.html +++ b/apps/assets/templates/assets/admin_user_list.html @@ -52,10 +52,11 @@ $(document).ready(function(){ $(td).html('' + innerHtml + ''); }}, {targets: 6, createdCell: function (td, cellData, rowData) { - var script_btn = '{% trans "Script" %}'.replace('99991937', cellData); +{# var script_btn = '{% trans "Script" %}'.replace('99991937', cellData);#} var update_btn = '{% trans "Update" %}'.replace('99991937', cellData); var del_btn = '{% trans "Delete" %}'.replace('99991937', cellData); - $(td).html(script_btn + update_btn + del_btn) +{# $(td).html(script_btn + update_btn + del_btn)#} + $(td).html(update_btn + del_btn) }}], ajax_url: '{% url "api-assets:admin-user-list" %}', columns: [{data: function(){return ""}}, {data: "name" }, {data: "username" }, {data: "assets_amount" }, {data: function () {return 'lost'} }, @@ -72,7 +73,9 @@ $(document).ready(function(){ var uid = $this.data('uid'); var the_url = '{% url "api-assets:admin-user-detail" pk=99991937 %}'.replace('99991937', uid); objectDelete($this, name, the_url); - $data_table.ajax.reload(); + setTimeout( function () { + $data_table.ajax.reload(); + }, 3000); }) .on('click', '#btn_bulk_update', function () { diff --git a/apps/assets/templates/assets/idc_create_update.html b/apps/assets/templates/assets/idc_create_update.html index 7e4b74fcf..2af3b0cac 100644 --- a/apps/assets/templates/assets/idc_create_update.html +++ b/apps/assets/templates/assets/idc_create_update.html @@ -40,6 +40,7 @@ {{ form.phone|bootstrap_horizontal }}

IP段

+ {{ form.operator|bootstrap_horizontal }} {{ form.intranet|bootstrap_horizontal }} {{ form.extranet|bootstrap_horizontal }} diff --git a/apps/assets/templates/assets/system_user_list.html b/apps/assets/templates/assets/system_user_list.html index 9815c7569..51b6456b4 100644 --- a/apps/assets/templates/assets/system_user_list.html +++ b/apps/assets/templates/assets/system_user_list.html @@ -74,7 +74,9 @@ $(document).ready(function(){ var uid = $this.data('uid'); var the_url = '{% url "api-assets:system-user-detail" pk=99991937 %}'.replace('99991937', uid); objectDelete($this, name, the_url); - $data_table.ajax.reload(); + setTimeout( function () { + $data_table.ajax.reload(); + }, 3000); }) .on('click', '#btn_bulk_update', function () {