WIN-2308041133\Administrator 1 month ago
parent
commit
3be3c9368e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/admin/view/store/device_repair/index.php

+ 4 - 4
app/admin/view/store/device_repair/index.php

@@ -66,7 +66,7 @@
         // 渲染报修列表表格
         // 渲染报修列表表格
         var repairTable = table.render({
         var repairTable = table.render({
             elem: '#repairTable',
             elem: '#repairTable',
-            url: "{:url('admin/device_repair/getRepairList')}", // 数据接口
+            url: "{:url('admin/store/device_repair/getRepairList')}", // 数据接口
             toolbar: '#repairToolBar', // 工具栏
             toolbar: '#repairToolBar', // 工具栏
             page: true, // 分页
             page: true, // 分页
             limit: 10, // 每页条数
             limit: 10, // 每页条数
@@ -103,14 +103,14 @@
             switch(obj.event) {
             switch(obj.event) {
                 // 下载表单
                 // 下载表单
                 case 'download':
                 case 'download':
-                    window.location.href = "{:url('admin/device_repair/download')}?id=" + data.id;
+                    window.location.href = "{:url('admin/store/device_repair/download')}?id=" + data.id;
                     break;
                     break;
 
 
                 // 标记已处理
                 // 标记已处理
                 case 'markHandled':
                 case 'markHandled':
                     layer.confirm('确定要标记此报修单为“已处理”吗?', {icon: 3}, function(index) {
                     layer.confirm('确定要标记此报修单为“已处理”吗?', {icon: 3}, function(index) {
                         $.ajax({
                         $.ajax({
-                            url: "{:url('admin/device_repair/markHandled')}",
+                            url: "{:url('admin/store/device_repair/markHandled')}",
                             type: 'POST',
                             type: 'POST',
                             data: {id: data.id},
                             data: {id: data.id},
                             dataType: 'JSON',
                             dataType: 'JSON',
@@ -135,7 +135,7 @@
         // 状态筛选下拉框事件
         // 状态筛选下拉框事件
         form.on('select(statusFilter)', function(data) {
         form.on('select(statusFilter)', function(data) {
             // 跳转到对应状态的列表页
             // 跳转到对应状态的列表页
-            window.location.href = "{:url('admin/device_repair/index')}?status=" + data.value;
+            window.location.href = "{:url('admin/store/device_repair/index')}?status=" + data.value;
         });
         });
     });
     });
 </script>
 </script>