hookehuyr

fix

......@@ -412,7 +412,7 @@
</template>
</el-dialog>
</div>
<!-- TODO: 提示功能 -->
<!-- TAG: 提示功能 -->
<div v-if="state.current_enable_version === state.select_flow_version" class="add-tip">
<i class="el-icon-warning icon"></i>&nbsp;<span style="font-size: 13px;">流程已启用,如需增删节点和连线,请 <span class="add" @click="addFlowVersion">添加新版本</span></span>
</div>
......@@ -726,6 +726,7 @@ export default {
flow_id: '',
form_id: '',
type: '',
_path: '', // 预览流程表单时的参数
};
// 将url以问号为分隔符拆分为两部分
const parts = url.split("?");
......@@ -1136,6 +1137,7 @@ export default {
}
const copyFLowVersion = async () => { // 复制版本流程
// TODO: 复制时后台数据也需要把单个节点的信息复制过去,前端只是复制了一个结构
let { nodes, edges } = editor.editorState.graph.save();
// 使用时需要把自定义节点的类型带过去 activity/control
......@@ -2377,11 +2379,14 @@ export default {
model.labelCfg = model.labelCfg || { style: {} }
model.data = model.data ? model.data : {};
if (model.id === 'end-node' || model.id === 'start-node') {
if (model.id === 'end-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'
let flow_id = getFlowId();
// TODO: 等待正式参数
let _path = urlQuery._path? urlQuery._path : '';
state.preview_form_url = `/admin/?a=flow&t=view&p=${_path}&_flow=${flow_id}&_flow_node=${model.id}`;
}
}
......