hookehuyr

fix

Showing 1 changed file with 19 additions and 10 deletions
......@@ -907,12 +907,17 @@ export default {
localStorage.setItem('showConfirmation', '0');
});
// 监听 resize 事件
// window.addEventListener('resize', function () {
// state.detailModel = null;
// editor.closeModel();
// });
window.addEventListener('resize', function () {
setTimeout(() => {
nextTick(() => {
// 预览流程图的背景
$('.preview-container').find('.g6-grid').parent().css('zIndex', '0');
$('.preview-container').find('canvas').css('zIndex', '1').css('position', 'relative');
})
}, 500);
});
// 适口高度
state.window_height = $(window).height() - 200 + 'px';
state.window_height = $(window).height() - 150 + 'px';
});
/**
......@@ -2274,10 +2279,11 @@ export default {
// state.detailModel = model;
console.warn(model);
if (model.id !== 'start-node') {
state.preview_form_url = 'https://oa-dev.onwall.cn/f/custom_form/front/index.html#/?code=fboupg&model=preview'
} else {
if (model.id === 'end-node' || model.id === 'start-node') {
ElNotification.error('该节点无法预览');
state.preview_form_url = null;
} else {
state.preview_form_url = 'https://oa-dev.onwall.cn/f/custom_form/front/index.html#/?code=fboupg&model=preview'
}
}
......@@ -2620,8 +2626,11 @@ body {
}
.preview-dialog {
.el-dialog__body {
padding-right: 0;
padding-left: 0;
padding: 0;
padding-bottom: 25px;
}
.el-dialog__footer {
padding: 0;
}
}
.preview-detail-container {
......