myTodoTask.vue
818 Bytes
<template>
<div >
<iframe :id=id :src=src class="iframe" ></iframe>
</div>
</template>
<script>
import { getToken ,Workflow} from "@/utils/auth";
export default {
name: "myTodoTask",
data(){
return{
src:"http://"+Workflow+"/itsm/index.html#/MyToDoTaskList"+"?access_token="+getToken(),
id:"MyToDoTaskList_iframe"
}
},
mounted() {
//增加传参接受,后期如果需要直接打开组内待办,可以通过参数控制,tabType:groupTask/personalTask
this.tabType=this.$route.query.tabType;
if (this.tabType){
this.src="http://"+Workflow+"/itsm/index.html#/MyToDoTaskList"+"?access_token="+getToken()+"&tabType="+this.tabType;
}
},
}
</script>
<style scoped>
.iframe{
width:100%;
height:calc(100vh - 88px);
border: none;
}
</style>