兰宝车间质量管理系统-前端
疯狂的狮子Li
2025-01-24 b2a415728547d5aa0fa77f5653ddb7b8e6a5a8a2
src/views/workflow/processDefinition/design.vue
@@ -1,17 +1,18 @@
<template>
  <div ref="container" class="container">
    <iframe ref="iframe" :src="iframeUrl" frameborder="0" width="100%" height="100%"></iframe>
  <div ref="container" class="w-full h-[calc(100vh-88px)]">
    <iframe ref="iframe" :src="iframeUrl" frameborder="0" height="100%" style="height: 100%; width: inherit"></iframe>
  </div>
</template>
<script setup name="WarmFlow">
const { proxy } = getCurrentInstance();
import { onMounted } from 'vue';
import { getToken } from '@/utils/auth';
// definitionId为需要查询的流程定义id,
// disabled为是否可编辑, 例如:查看的时候不可编辑,不可保存
const iframeUrl = ref('');
const baseUrl = import.meta.env.VITE_APP_BASE_API;
import { getToken } from '@/utils/auth';
const iframeLoaded = () => {
  // iframe监听组件内设计器保存事件
  window.onmessage = (event) => {
@@ -28,7 +29,7 @@
};
/** 关闭按钮 */
function close() {
  const obj = { path: '/workflow/processDefinition' };
  const obj = { path: '/workflow/processDefinition', query: {activeName: proxy.$route.query.activeName}};
  proxy.$tab.closeOpenPage(obj);
}
@@ -43,10 +44,3 @@
  open
});
</script>
<style scoped>
.container {
  width: 100%;
  height: calc(100vh - 84px);
}
</style>