65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
<template>
|
|
<!-- 报工记录 帆软报表-->
|
|
<div class="full-screen">
|
|
<div class="main-section flex-column" v-if="isFrameShow">
|
|
<iframe class="iframe" ref="activit" width="100%" height="100%" :src="src" ></iframe>
|
|
</div>
|
|
<span style="text-align:center;" v-else>
|
|
<i class="el-icon-loading"></i>
|
|
正在加载中 请稍等
|
|
</span>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
|
|
import { listUser } from "@/api/system/user";
|
|
import {getToken} from '@/utils/auth';//登陆人的token
|
|
import { listRole } from "@/api/system/role";
|
|
import flowModel from '../../../../api/tableConfig/flowModel';
|
|
export default{
|
|
data(){
|
|
return{
|
|
isFrameShow:false,
|
|
userList:[], //传给子页面的用户列表
|
|
roleList:[]//传给子页面的角色列表
|
|
};
|
|
},
|
|
computed:{
|
|
|
|
src(){
|
|
return "https://cquni.cme-im.com:8081/webroot/decision/view/report?viewlet=SubmitMinistryReport.cpt"//this.$store.modelId;//activiti主html路径
|
|
},
|
|
apiUrl(){
|
|
//被public里的app-cfg.js调用
|
|
return [process.env.VUE_APP_BASE_API] + "/basic/activiti6/modeler";//后台部署的api服务
|
|
},
|
|
token(){
|
|
//被public里的modeler.html里的open方法调用
|
|
return getToken();//token
|
|
}
|
|
},
|
|
methods:{
|
|
goto(){
|
|
console.log('goto')
|
|
this.$message.success("保存模型成功");
|
|
this.$emit("closeSubPage")
|
|
// this.$router.push({name:"/sys/activiti"})
|
|
}
|
|
},
|
|
async created(){
|
|
|
|
|
|
|
|
this.isFrameShow=true
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.iframe {
|
|
width: 100%;
|
|
height: calc(100vh - 1px);
|
|
}
|
|
>>> .copyrightInfo-div{
|
|
display: none!important;
|
|
}
|
|
</style> |