Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes
# Conflicts:
# CanadaMes-ui/src/views/home/index.vue
| | |
| | | "Yes":"Yes",
|
| | | "No":"No",
|
| | | "Please enter the password":"Please enter the password",
|
| | | "Password error":"Password error"
|
| | | "Password error":"Password error",
|
| | | "DataBase Connection failed":"DataBase Connection failed"
|
| | |
|
| | | } |
| | |
| | | "time-on": "开始时间",
|
| | | "End-Time": "结束时间",
|
| | | "Please enter the password":"请输入密码",
|
| | | "Password error":"密码错误"
|
| | | "Password error":"密码错误",
|
| | | "DataBase Connection failed":"数据库连接失败"
|
| | | } |
| | |
| | | <div class="box" @click="dialogFormVisible2 = true">
|
| | | <div class="text">
|
| | | <!-- Alarm: -->
|
| | | {{ this.text }}
|
| | | <label v-for="item in this.alarm" :key="item['id']">
|
| | | {{ item['content'] }}
|
| | | </label>
|
| | |
| | | cage: 0,
|
| | | carlist: [],
|
| | | loadglassheight: 0,
|
| | | password: 1
|
| | | password: 1,
|
| | | text: ""
|
| | | };
|
| | | },
|
| | | created() {
|
| | |
| | | this.tasklist2 = obj.tasklist2[0];
|
| | | this.alarm = obj.alarmmg[0];
|
| | | this.loadglassheight = obj.loadglassheight;
|
| | |
|
| | | if (obj.dbconnected == "false") {
|
| | | this.text = this.$t('DataBase Connection failed');
|
| | | }
|
| | | SelectCageInfo(this.cage).then(res => {
|
| | | this.cageinfo = res.data.cageinfo;
|
| | | });
|
| | |
| | | message: this.$t('Operation canceled')
|
| | | });
|
| | | });
|
| | |
|
| | | },
|
| | | showcageinfo(cage) {
|
| | | this.cage = cage;
|
| | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.javassist.tools.framedump; |
| | | |
| | | import com.example.springboot.entity.StorageCage; |
| | | import com.example.springboot.entity.alarmmg; |
| | | import com.example.springboot.mapper.HomeMapper; |
| | | import com.example.springboot.service.JdbcConnections; |
| | | |
| | | public class Plchome extends Thread { |
| | | |
| | | private HomeMapper homeMapper; |
| | | |
| | | private JdbcConnections dbserve; |
| | | @Override |
| | | public void run() { |
| | | while (this != null) { |
| | |
| | | jsonObject.append("params", paramlist); |
| | | } |
| | | List<Short> inglassInfo = S7control.getinstance().ReadWord("DB106.24",1); |
| | | if(inglassInfo!=null&inglassInfo.size()>0){ |
| | | if(inglassInfo!=null){ |
| | | if(inglassInfo.size()>0) |
| | | jsonObject.append("loadglassheight", inglassInfo.get(0)*70); |
| | | } |
| | | dbserve = WebSocketServer.applicationContext.getBean(JdbcConnections.class); |
| | | boolean dbconnected=false; |
| | | try { |
| | | dbserve.getConn(); |
| | | dbconnected=true; |
| | | } catch (Exception e) { |
| | | // TODO: handle exception |
| | | dbconnected=false; |
| | | } |
| | | jsonObject.append("dbconnected", dbconnected); |
| | | // jsonObject.append("params", new short[] { 30, 40, }); |
| | | WebSocketServer sendwServer = WebSocketServer.sessionMap.get("Home"); |
| | | if (sendwServer != null) { |