Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
a9bd7ef945
@ -13,6 +13,7 @@ import PasswordBox from '@/jmapNew/theme/components/menus/childDialog/passwordIn
|
|||||||
import { DeviceMenu } from '@/scripts/ConstDic';
|
import { DeviceMenu } from '@/scripts/ConstDic';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||||
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
export default {
|
export default {
|
||||||
name: 'SignalMenu',
|
name: 'SignalMenu',
|
||||||
components: {
|
components: {
|
||||||
@ -61,8 +62,13 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '加封',
|
label: '加封',
|
||||||
handler: this.seal
|
handler: this.lock,
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE
|
cmdType: CMD.Signal.CMD_SIGNAL_BLOCK
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '解封',
|
||||||
|
handler: this.unlock,
|
||||||
|
cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -153,8 +159,22 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
// 加封
|
// 加封
|
||||||
seal() {
|
lock() {
|
||||||
|
const model = this.selected; // 选择设备
|
||||||
|
commitOperate(menuOperate.Signal.lock, {signalCode: model._type === 'Signal' ? model.code : model.signalCode}, 3).then(({valid, operate}) => {
|
||||||
|
if (valid) {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 解封
|
||||||
|
unlock() {
|
||||||
|
const model = this.selected; // 选择设备
|
||||||
|
commitOperate(menuOperate.Signal.unlock, {signalCode: model._type === 'Signal' ? model.code : model.signalCode}, 3).then(({valid, operate}) => {
|
||||||
|
if (valid) {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
doClose() {
|
doClose() {
|
||||||
if (this.$refs && this.$refs.popMenu) {
|
if (this.$refs && this.$refs.popMenu) {
|
||||||
|
Loading…
Reference in New Issue
Block a user