道岔钩锁都走操作
This commit is contained in:
parent
e9785184dd
commit
dc287775e8
@ -45,7 +45,7 @@
|
||||
<script>
|
||||
import { mapGetters } from 'vuex';
|
||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||
import { commitTrainSend } from '@/jmapNew/theme/components/utils/menuOperate';
|
||||
// import { commitTrainSend } from '@/jmapNew/theme/components/utils/menuOperate';
|
||||
import {menuOperate, commitOperate} from '../../utils/menuOperate';
|
||||
export default {
|
||||
name: 'SwitchHookLock',
|
||||
@ -125,7 +125,7 @@ export default {
|
||||
},
|
||||
commit() {
|
||||
this.loading = true;
|
||||
if (this.operation) {
|
||||
// if (this.operation) {
|
||||
commitOperate(menuOperate.Switch.hookLock, {normal: this.normal}, 2).then(({valid})=>{
|
||||
this.loading = false;
|
||||
if (valid) {
|
||||
@ -137,25 +137,25 @@ export default {
|
||||
console.error(error);
|
||||
this.$refs.noticeInfo.doShow();
|
||||
});
|
||||
} else {
|
||||
const group = this.$route.query.group;
|
||||
const param = {
|
||||
commandType: 'Switch_Hook_Lock',
|
||||
// Switch_Hook_Lock
|
||||
targetMemberId: this.targetMemberId,
|
||||
params: {
|
||||
switchCode: this.selected.code,
|
||||
normal: this.normal
|
||||
}
|
||||
};
|
||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||
this.doClose();
|
||||
}).catch((error) => {
|
||||
console.error(error);
|
||||
this.$refs.noticeInfo.doShow();
|
||||
this.doClose();
|
||||
});
|
||||
}
|
||||
// } else {
|
||||
// const group = this.$route.query.group;
|
||||
// const param = {
|
||||
// commandType: 'Switch_Hook_Lock',
|
||||
// // Switch_Hook_Lock
|
||||
// targetMemberId: this.targetMemberId,
|
||||
// params: {
|
||||
// switchCode: this.selected.code,
|
||||
// normal: this.normal
|
||||
// }
|
||||
// };
|
||||
// commitTrainSend(group, param).then(({valid, operate})=>{
|
||||
// this.doClose();
|
||||
// }).catch((error) => {
|
||||
// console.error(error);
|
||||
// this.$refs.noticeInfo.doShow();
|
||||
// this.doClose();
|
||||
// });
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user