fix start stop
This commit is contained in:
@@ -67,6 +67,26 @@ export default {
|
||||
startStopQueue: false,
|
||||
};
|
||||
},
|
||||
mounted: function(){
|
||||
if(this.queueStatus == 0){
|
||||
this.startStopQueue = true;
|
||||
}
|
||||
else{
|
||||
this.startStopQueue = false;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
queueStatus: function(n,o){
|
||||
if(n){
|
||||
if(n == 0){
|
||||
this.startStopQueue = true;
|
||||
}
|
||||
else{
|
||||
this.startStopQueue = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
selectedProcess: function() {
|
||||
return this.$store.state.process.selectedProcess;
|
||||
@@ -99,13 +119,6 @@ export default {
|
||||
return this.$store.state.process.startStopQueueEnabled;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
queueStatus: function(n, o) {
|
||||
if(n != o){
|
||||
this.queueStatus = n;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
selectTab(tab) {
|
||||
if (tab == "IsoLines") {
|
||||
|
||||
@@ -111,9 +111,8 @@ export default {
|
||||
await new FileService().deleteQueue(id);
|
||||
},
|
||||
async deleteItemQueue(processId, item){
|
||||
await new FileService().deleteItemQueue(processId, item).then(function(){
|
||||
productionActions.deletePartProgram(store,item);
|
||||
});
|
||||
debugger
|
||||
await new FileService().deleteItemQueue(processId, item);
|
||||
},
|
||||
onDrag({ isSource, payload, willAcceptDrop }) {
|
||||
this.enablePopup = false;
|
||||
|
||||
@@ -38,6 +38,7 @@ export class FileService extends baseRestService {
|
||||
async deleteItemQueue(processId, model){
|
||||
debugger
|
||||
var result = await this.Delete<any>(this.BASE_URL + "queue/" + processId + "/remove/" + model.id, true);
|
||||
productionActions.deletePartProgram(store,model);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user