BIP卡片页面取消弹框 确定的监听
点击取消按钮后, 自动弹出一个弹框, 在点击确定后, 要进行操作, 确定怎么监听. 怎么去写事件. 目前是没有找到任何文档. 方法写在下面.
//【取消】时还原附件 viewModel.on('afterAbandon', function (args) { var params = { id: viewModel.get('id').getValue() } cb.mls.ajax("/qualiCertiTask/restoreFile", { method: "post", viewModel: viewModel, headers: { "domain-key": "procurement", }, params, }).then(res => { cb.loader.runCommandLine('bill', { billtype: 'VoucherList', params: { mode: 'edit', readOnly: true, domainKey: viewModel.getDomainKey() }, billno: '3e5d10b5List', }, viewModel.getCache('parentViewModel')); }).catch(err => { }) });