代码调整
This commit is contained in:
parent
8a8e47e1eb
commit
e7c7e23602
@ -284,7 +284,7 @@ export default {
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
commitOperate(menuOperate.Rail.abnormalTrainTableSave, obj, 3).then(({valid, operate})=>{
|
commitOperate(menuOperate.Rail.abnormalTrainTableSave, obj, 2).then(({valid, operate})=>{
|
||||||
this.$message.success('提交成功!');
|
this.$message.success('提交成功!');
|
||||||
this.initFormData();
|
this.initFormData();
|
||||||
}).catch((error)=>{
|
}).catch((error)=>{
|
||||||
|
@ -230,7 +230,7 @@ export default {
|
|||||||
saveData(data, index) {
|
saveData(data, index) {
|
||||||
// if (this.isAdd) {
|
// if (this.isAdd) {
|
||||||
const params = Object.assign({stationCode:this.$store.state.training.roleDeviceCode}, data);
|
const params = Object.assign({stationCode:this.$store.state.training.roleDeviceCode}, data);
|
||||||
commitOperate(menuOperate.Rail.equipmentConstructionFill, params, 3).then(({valid, operate})=>{
|
commitOperate(menuOperate.Rail.equipmentConstructionFill, params, 2).then(({valid, operate})=>{
|
||||||
this.queryData();
|
this.queryData();
|
||||||
this.isEditing = false;
|
this.isEditing = false;
|
||||||
this.isAdd = false;
|
this.isAdd = false;
|
||||||
|
@ -289,7 +289,7 @@ export default {
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
commitOperate(menuOperate.Rail.floodControlSafetyTableSave, obj, 3).then(({valid, operate})=>{
|
commitOperate(menuOperate.Rail.floodControlSafetyTableSave, obj, 2).then(({valid, operate})=>{
|
||||||
this.$message.success('提交成功!');
|
this.$message.success('提交成功!');
|
||||||
this.initFormData();
|
this.initFormData();
|
||||||
}).catch((error)=>{
|
}).catch((error)=>{
|
||||||
@ -313,7 +313,7 @@ export default {
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
commitOperate(menuOperate.Rail.floodControlSafetyTableUpdate, obj, 3).then(({valid, operate})=>{
|
commitOperate(menuOperate.Rail.floodControlSafetyTableUpdate, obj, 2).then(({valid, operate})=>{
|
||||||
this.$message.success('更新成功!');
|
this.$message.success('更新成功!');
|
||||||
this.isEdit = false;
|
this.isEdit = false;
|
||||||
}).catch((error)=>{
|
}).catch((error)=>{
|
||||||
|
@ -179,7 +179,7 @@ export default {
|
|||||||
},
|
},
|
||||||
saveData(data) {
|
saveData(data) {
|
||||||
const params = { stationCode: this.$store.state.training.roleDeviceCode, line: data };
|
const params = { stationCode: this.$store.state.training.roleDeviceCode, line: data };
|
||||||
commitOperate(menuOperate.Rail.railFillInRegister, params, 3).then(({valid, operate})=>{
|
commitOperate(menuOperate.Rail.railFillInRegister, params, 2).then(({valid, operate})=>{
|
||||||
this.queryData();
|
this.queryData();
|
||||||
this.$message.success('保存成功!');
|
this.$message.success('保存成功!');
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user