<template>
  <el-dialog
    title="查看表单"
    :append-to-body="true"
    :modal-append-to-body="true"
    :close-on-click-modal="false"
    v-if="showWfDialog2"
    :visible.sync="showWfDialog2"
    :modal="false"
    custom-class="dialog-style designer-dialog"
    width="100%"
    height="100%"
    top="0px"
    bottom="0px"
    :destroy-on-close="true"
    v-el-drag-dialog
  >
    <div id="containt" :style="'width:100%;height:' + ($root.$el.clientHeight) + 'px'">
      <baseXFormRender v-if="objId && objTypeCode && taskId" :objId.sync="objId" :objTypeCode.sync="objTypeCode" :taskId.sync="taskId" />
    </div>
  </el-dialog>
</template>

<script>
export default {
  name:'wftest',
  props: ["reportCode"],
  data() {
    return {
      showWfDialog2: false,
      wfUrl2: '',
      objId:null,
      objTypeCode:null,
      taskId:null
    };
  },
  methods: {
    open(param,that) {
      this.showWfDialog2 = true;
      this.$nextTick(()=>{
        this.objId = param.objId;
        this.objTypeCode = param.objTypeCode;
        this.taskId = param.taskId;
      })

    }
  }
};
</script>

<style></style>
