代码调整

This commit is contained in:
dong 2023-02-13 14:16:20 +08:00
parent 8a8e47e1eb
commit e7c7e23602
4 changed files with 5 additions and 5 deletions

View File

@ -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.initFormData();
}).catch((error)=>{

View File

@ -230,7 +230,7 @@ export default {
saveData(data, index) {
// if (this.isAdd) {
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.isEditing = false;
this.isAdd = false;

View File

@ -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.initFormData();
}).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.isEdit = false;
}).catch((error)=>{

View File

@ -179,7 +179,7 @@ export default {
},
saveData(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.$message.success('保存成功!');
}).catch(()=>{