Browse Source

first commit

oyq28 1 năm trước cách đây
mục cha
commit
46302490f8

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 265 - 265
doc/20231207135846.sql


+ 24 - 0
src/main/java/com/imcs/admin/business/controller/BigScreenDetailController.java

@@ -0,0 +1,24 @@
+package com.imcs.admin.business.controller;
+
+import com.imcs.admin.business.service.BigScreenDetailService;
+import com.imcs.admin.common.Result;
+import com.imcs.admin.db.service.JdbcService;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+/*@RestController
+@RequestMapping("/bigScreen")
+public class BigScreenDetailController {
+    @Resource
+    private BigScreenDetailService bigScreenDetailService;
+
+    @RequestMapping("/detail/${id}")
+    public Result getDeviceDetail(@PathVariable Long id){
+        //bigScreenDetailService.getBigScreenDetail(id)
+        return new Result();
+    }
+}*/

+ 8 - 0
src/main/java/com/imcs/admin/business/service/BigScreenDetailService.java

@@ -0,0 +1,8 @@
+package com.imcs.admin.business.service;
+
+import com.alibaba.fastjson.JSON;
+import org.springframework.stereotype.Service;
+
+public interface BigScreenDetailService {
+    public JSON getBigScreenDetail(Long id);
+}

+ 22 - 0
src/main/java/com/imcs/admin/business/service/impl/BigScreenDetailServiceImpl.java

@@ -0,0 +1,22 @@
+package com.imcs.admin.business.service.impl;
+
+import com.alibaba.fastjson.JSON;
+import com.imcs.admin.business.service.BigScreenDetailService;
+import com.imcs.admin.db.service.JdbcDao;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+
+@Service
+public class BigScreenDetailServiceImpl implements BigScreenDetailService {
+    @Resource
+    private JdbcDao jdbcDao;
+    @Override
+    public JSON getBigScreenDetail(Long id) {
+        StringBuffer stringBuffer=new StringBuffer("select * from a_device");
+
+        //jdbcDao
+
+        return null;
+    }
+}

+ 7 - 7
src/main/resources/static/admin/bigScreen/index.html

@@ -172,22 +172,22 @@
                                 <tr>
                                     <td>型号</td>
                                     <td>${device.deviceModel}</td>
+                                </tr>
+                                    <td>主程序号</td>
+                                    <td>${device.mainProg}</td>
                                 </tr>
                                 <tr>
                                     <td>主轴转速</td>
-                                    <td>${device.spindleSpeed}</td>
+                                    <td>${device.actSpindle}</td>
                                 </tr>
                                 <tr>
                                     <td>主轴倍率</td>
-                                    <td>12000</td>
-                                </tr>
-                                <tr>
-                                    <td>进给速度</td>
-                                    <td>12000</td>
+                                    <td>${device.spindleMagnification}</td>
                                 </tr>
+
                                 <tr>
                                     <td>进给倍率</td>
-                                    <td>12000</td>
+                                    <td>${device.spindleMagnification}</td>
                                 </tr>
                                 </tbody>
                             </table>

+ 11 - 0
src/main/resources/static/admin/bigScreenDetail/index.html

@@ -157,4 +157,15 @@
         </main>
     </div>
 </body>
+<script type="text/javascript">
+    var currentURL = window.location.href;
+
+    // 解析 URL 获取参数
+    var paramStartIndex = currentURL.indexOf('=') + 1; // 获取 "=" 后的位置
+    var id = currentURL.substring(paramStartIndex);
+    function init(){
+
+    }
+    init();
+</script>
 </html>

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác