diff --git a/src/jmapNew/theme/foshan_01/menus/menuSection.vue b/src/jmapNew/theme/foshan_01/menus/menuSection.vue index b652821a2..f11a6f213 100644 --- a/src/jmapNew/theme/foshan_01/menus/menuSection.vue +++ b/src/jmapNew/theme/foshan_01/menus/menuSection.vue @@ -69,12 +69,12 @@ export default { label: '区段切除', handler: this.split, cmdType: CMD.Section.CMD_SECTION_CUT_OFF + }, + { + label: '设置临时限速', + handler: this.setSpeed, + cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED } - // { - // label: '设置临时限速', - // handler: this.setSpeed, - // cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED - // } ] }, menuForce: [ @@ -203,15 +203,15 @@ export default { this.$refs.sectionControl.doShow(operate, this.selected); } }); + }, + // 设置速度 + setSpeed() { + commitOperate(menuOperate.Section.setSpeed, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{ + if (valid) { + this.$refs.speedLimitControl.doShow(operate, this.selected); + } + }); } - // // 设置速度 - // setSpeed() { - // commitOperate(menuOperate.Section.setSpeed, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{ - // if (valid) { - // this.$refs.speedLimitControl.doShow(operate, this.selected); - // } - // }); - // } } };