diff --git a/application/cpc_mgnt/views.py b/application/cpc_mgnt/views.py index a67c6fa..6f884b3 100644 --- a/application/cpc_mgnt/views.py +++ b/application/cpc_mgnt/views.py @@ -55,7 +55,7 @@ def seal_reg_list_view(request): "modify_url": reverse("seal_reg_list_modify"), "add_url": reverse("seal_reg_list_add"), "delete_url": reverse("seal_reg_list_delete"), - "table_exclude_field_name": [], # Add any fields you want to exclude + "table_exclude_field_name": ["record_id"], # Add any fields you want to exclude "add_button": True, "import_excel_button": True } @@ -173,7 +173,7 @@ def seal_doc_borrow_list_view(request): "modify_url": reverse("seal_doc_borrow_list_modify"), "add_url": reverse("seal_doc_borrow_list_add"), "delete_url": reverse("seal_doc_borrow_list_delete"), - "table_exclude_field_name": [], # Add any fields you want to exclude + "table_exclude_field_name": ["record_id"], # Add any fields you want to exclude "add_button": True, "import_excel_button": True } @@ -317,7 +317,7 @@ def contract_mgmt_list_view(request): "modify_url": reverse("contract_mgmt_list_modify"), "add_url": reverse("contract_mgmt_list_add"), "delete_url": reverse("contract_mgmt_list_delete"), - "table_exclude_field_name": ['contract_number'], # Exclude primary key + "table_exclude_field_name": ["id", 'contract_number'], # Exclude primary key "add_button": True, "import_excel_button": True } diff --git a/application/fac_mgnt/templates/pc_list.html b/application/fac_mgnt/templates/pc_list.html index 2478a5b..061ae81 100644 --- a/application/fac_mgnt/templates/pc_list.html +++ b/application/fac_mgnt/templates/pc_list.html @@ -78,9 +78,6 @@ - diff --git a/application/fac_mgnt/templates/rep_list.html b/application/fac_mgnt/templates/rep_list.html index 62d4d55..4b0e6c4 100644 --- a/application/fac_mgnt/templates/rep_list.html +++ b/application/fac_mgnt/templates/rep_list.html @@ -78,9 +78,6 @@ - diff --git a/application/hrm_mgnt/templates/emp_list.html b/application/hrm_mgnt/templates/emp_list.html index 3f9a717..af6931b 100644 --- a/application/hrm_mgnt/templates/emp_list.html +++ b/application/hrm_mgnt/templates/emp_list.html @@ -77,9 +77,6 @@ - diff --git a/application/opa_mgnt/views.py b/application/opa_mgnt/views.py index c2bd5c4..2e8f4ef 100644 --- a/application/opa_mgnt/views.py +++ b/application/opa_mgnt/views.py @@ -173,7 +173,7 @@ def acc_op_mgmt_list_view(request): "modify_url": reverse("acc_op_mgmt_list_modify"), "add_url": reverse("acc_op_mgmt_list_add"), "delete_url": reverse("acc_op_mgmt_list_delete"), - "table_exclude_field_name": [], # Add any fields you want to exclude + "table_exclude_field_name": ["record_id"], # Add any fields you want to exclude "add_button": True, "import_excel_button": True } @@ -291,7 +291,7 @@ def web_reg_list_view(request): "modify_url": reverse("web_reg_list_modify"), "add_url": reverse("web_reg_list_add"), "delete_url": reverse("web_reg_list_delete"), - "table_exclude_field_name": [], # Add any fields you want to exclude + "table_exclude_field_name": ["record_id"], # Add any fields you want to exclude "add_button": True, "import_excel_button": True } @@ -404,7 +404,7 @@ def web_maint_rec_list_view(request): "modify_url": reverse("web_maint_rec_list_modify"), "add_url": reverse("web_maint_rec_list_add"), "delete_url": reverse("web_maint_rec_list_delete"), - "table_exclude_field_name": [], # Add any fields you want to exclude + "table_exclude_field_name": ["record_id"], # Add any fields you want to exclude "add_button": True, "import_excel_button": True } diff --git a/application/rsc_mgnt/templates/cg_list.html b/application/rsc_mgnt/templates/cg_list.html index 079c6d9..b9f9171 100644 --- a/application/rsc_mgnt/templates/cg_list.html +++ b/application/rsc_mgnt/templates/cg_list.html @@ -78,9 +78,6 @@ - diff --git a/application/rsc_mgnt/templates/svc_list.html b/application/rsc_mgnt/templates/svc_list.html index 0671369..1be407a 100644 --- a/application/rsc_mgnt/templates/svc_list.html +++ b/application/rsc_mgnt/templates/svc_list.html @@ -78,9 +78,6 @@ - diff --git a/templates/upload_excel_modal.html b/templates/upload_excel_modal.html index c60fee5..66fa5f7 100644 --- a/templates/upload_excel_modal.html +++ b/templates/upload_excel_modal.html @@ -119,7 +119,7 @@ {#$('#uploadModal').modal('hide');#} // 检查是否有文件被选中 if ($('#inputFile').get(0).files.length === 0) { - alert("没有文件选中"); + showAlert('danger', '未选择文件'); $('#uploadModal').modal('show'); return; } @@ -172,7 +172,7 @@ } // 显示错误消息 - alert(errorMsg); + showAlert('danger', errorMsg); } }); });