|
@@ -352,7 +352,12 @@
|
|
|
cmd:"",
|
|
|
param: "",
|
|
|
},
|
|
|
- cmdList: [{id:"100", name:"自定义"}]
|
|
|
+ cmdList: [{id:"100", name:"自定义"},{id:"01_00",name:"待机"},{id:"01_01",name:"启用"}
|
|
|
+ , {id:"02",name:"工作忙状态周期(单位分钟)"}, {id:"03",name:"空闲状态周期(单位分钟)"}, {id:"09",name:"NB切换2G阈值"}
|
|
|
+ , {id:"0A",name:"动态加速度阈值"}, {id:"0B",name:"静态加速度阈值"}
|
|
|
+ , {id:"0C",name:"合模等待时间(单位ms)"}, {id:"0D",name:"开模等待时间(单位ms)"}
|
|
|
+ , {id:"10",name:"待机上报时间(单位分钟)"}, {id:"12",name:"开合模总次数"}
|
|
|
+ ]
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -515,12 +520,11 @@
|
|
|
},
|
|
|
changeCmd() {//切换下发命令
|
|
|
console.log(this.sendCmdVal.cmd);
|
|
|
- if (100 == this.sendCmdVal.cmd) {
|
|
|
+ if (this.sendCmdVal.cmd != '01_00' && this.sendCmdVal.cmd != '01_01') {
|
|
|
this.shouldInputThreshold = true;
|
|
|
} else {
|
|
|
this.shouldInputThreshold = false;
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
//编辑模具
|
|
|
editMould() {
|
|
@@ -743,12 +747,19 @@
|
|
|
cancelButtonText: this.$t('el.messagebox.cancel'),
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- if (this.sendCmdVal.cmd == '100' && this.sendCmdVal.param.length == 0) {
|
|
|
+ if ((this.sendCmdVal.cmd != '01_00' && this.sendCmdVal.cmd != '01_01' ) && this.sendCmdVal.param.length == 0) {
|
|
|
this.$message({
|
|
|
message: this.$t('basic.noThresholdAlert'),
|
|
|
type: "error"
|
|
|
});
|
|
|
} else {
|
|
|
+ if (this.sendCmdVal.cmd == '01_00') {
|
|
|
+ this.sendCmdVal.cmd = '01';
|
|
|
+ this.sendCmdVal.param = '00';
|
|
|
+ } else if (this.sendCmdVal.cmd == '01_01') {
|
|
|
+ this.sendCmdVal.cmd = '01';
|
|
|
+ this.sendCmdVal.param = '01';
|
|
|
+ }
|
|
|
this.http.post( this.port.base.sendCmd, {
|
|
|
param: this.sendCmdVal.param,
|
|
|
cmd: this.sendCmdVal.cmd,
|