WIN-2308041133\Administrator hace 7 meses
padre
commit
adc91c5264
Se han modificado 1 ficheros con 19 adiciones y 0 borrados
  1. 19 0
      application/admin/view/general/txmx/index.html

+ 19 - 0
application/admin/view/general/txmx/index.html

@@ -90,6 +90,10 @@
                         <div class="widget-body no-padding">
                             <div id="toolbar" class="toolbar">
                                 {:build_toolbar('refresh')}
+                                <!-- 添加访问general/txmx/summary接口的按钮 -->
+                                <button id="summary-btn" class="btn btn-primary" onclick="loadSummary()">
+                                    {:__('概览')}
+                                </button>
                             </div>
                             <table id="table" class="table table-striped table-bordered table-hover" width="100%">
 
@@ -103,4 +107,19 @@
         </div>
 
     </div>
+    <script>
+        function loadSummary() {
+            // 使用AJAX请求访问general/txmx/summary接口
+            fetch('{:url("general/txmx/summary")}')
+                .then(response => response.json())
+                .then(data => {
+                    // 处理返回的数据,例如显示在某个位置
+                    console.log(data);
+                    // 这里可以添加代码来显示数据,例如在一个模态框中或直接更新页面内容
+                })
+                .catch(error => {
+                    console.error('Error loading summary:', error);
+                });
+        }
+    </script>
 </div>