wuyouming666
2024-05-11 55381fc907df049bcec338cd279a19640a8e5864
修改交互页面权限
3个文件已修改
30 ■■■■■ 已修改文件
CanadaMes-ui/src/views/Electrical/ManualonePosition.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CanadaMes-ui/src/views/Electrical/Parameter2.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CanadaMes-ui/src/views/Electrical/ManualonePosition.vue
@@ -56,7 +56,7 @@
        $t('Speed parameter settings')
      }}</router-link>
<router-link  v-if="hasPermission"
<router-link  v-if="plcmes"
        to="/Electrical/InteractionState"
        tag="el-button"
        type="text"
@@ -139,8 +139,8 @@
      language: this.$i18n.locale,
      embeddedComponent: ManualonePosition2,
      embeddedComponent2: ManualJog,
      hasPermission: false // 默认没有权限
      hasPermission: false, // 默认没有权限
      plcmes:false
      // 加载整个data.json文件作为jsonData
    }
  },
@@ -159,6 +159,9 @@
                        if (item.permissionId == "36" && item.state == 1) {
                            this.hasPermission = true;
                        }
                        if (item.permissionId == "50" && item.state == 1) {
                            this.plcmes = true;
                        }
                       
                    });
                });
CanadaMes-ui/src/views/Electrical/Parameter2.vue
@@ -56,7 +56,7 @@
        $t('Speed parameter settings')
      }}</router-link>
<router-link  v-if="hasPermission"
<router-link  v-if="plcmes"
        to="/Electrical/InteractionState"
        tag="el-button"
        type="text"
@@ -213,8 +213,8 @@
      language: this.$i18n.locale,
      
    
      hasPermission: false // 默认没有权限
      hasPermission: false, // 默认没有权限
      plcmes:false
      // 加载整个data.json文件作为jsonData
    };
  },
@@ -235,6 +235,9 @@
                        if (item.permissionId == "36" && item.state == 1) {
                            this.hasPermission = true;
                        }
                        if (item.permissionId == "50" && item.state == 1) {
                            this.plcmes = false;
                        }
                       
                    });
                });
springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
@@ -45,7 +45,7 @@
    public static north_frame_buffer1_frames AluminumFrameInfo=new north_frame_buffer1_frames();
    // private Configuration config;
//
    private StorageCageService storageCageService;
    public static Boolean FeedState = false;
@@ -65,12 +65,12 @@
    // b.put()
    @Override
    public void run() {
        while (this != null) {
            Short zhi = 0;
            JSONObject jsonObject = new JSONObject();
            jsonObject.append("feedglassid", feedglassid);
            try {
                Thread.sleep(1000);
                // 注入mapper
@@ -184,10 +184,10 @@
                    //     plc2=false;
                    //     e.printStackTrace();
                    // }
                    // jsonObject.append("Plc2", plc2);
                    // // log.info("铝框线读取2"+S7controlLK.getinstance().CheckConnected());
                    // // log.info("E02id"+E02id);
                    // outSliceServive.FrameStateUpdate(E02id);
                    // if (CurrentFrame != null) {
@@ -340,7 +340,7 @@
                            e.printStackTrace();
                        }
                    }
                    // 复位倒计时
                    // 地址104.9.6