feat: 流程设计器全屏展示

This commit is contained in:
tony
2022-12-25 17:07:00 +08:00
parent ffd7a7ba41
commit c74a1c8fc2
3 changed files with 48 additions and 10 deletions

View File

@@ -12,12 +12,12 @@
@showXML="showXML"
/>
<!--在线查看xml-->
<el-dialog :title="xmlTitle" :visible.sync="xmlOpen" width="70%" class="showAll_dialog">
<el-drawer :title="xmlTitle" :modal="false" direction="rtl" :visible.sync="xmlOpen" size="60%">
<!-- 设置对话框内容高度 -->
<el-scrollbar>
<pre v-highlight="xmlData"><code class="xml"></code></pre>
</el-scrollbar>
</el-dialog>
</el-drawer>
</div>
</template>
<script>
@@ -33,6 +33,12 @@ export default {
bpmnModeler,
vkBeautify
},
props: {
deployId: {
type: String,
default: ''
},
},
// 自定义指令
directives: {
deep: true,
@@ -78,12 +84,18 @@ export default {
};
},
watch: {
deployId: {
handler(newVal) {
if (newVal) {
this.getXmlData(newVal);
}
},
immediate: true, // 立即生效
deep: true //监听对象或数组的时候,要用到深度监听
},
},
created () {
const deployId = this.$route.query && this.$route.query.deployId;
// 查询流程xml
if (deployId) {
this.getXmlData(deployId);
}
this.getDicts("sys_process_category").then(res => {
this.categorys = res.data;
});