GitBucket
4.6.0
Toggle navigation
Sign in
Files
Branches
1
Tags
Issues
Pull Requests
Labels
Milestones
Wiki
08335
/
hivui-platform-template
hivui平台项目模板
Browse code
@中文描述:同步请求批处理
@升级登记:1 @同步后端:0 @同步数据库:0 @同步配置:0 @向下兼容:1
master
1 parent
9bfa552
commit
fa359d5c240346dfa3ec7d409f069cdd4b11e99b
12112
authored
on 6 Mar 2024
Showing
1 changed file
project/hivuiMain/views/taskCenter.vue
Ignore Space
Show notes
View
project/hivuiMain/views/taskCenter.vue
<template> <hi-taskcenter ref="hiTask" @openfunc="openfunc" :syncBatch="syncBatch" style="background-color:#fff;padding-top:10px;box-sizing:border-box;"></hi-taskcenter> </template> <script> import "hi-taskcenter/hi-taskcenter.css"; import HiTaskcenter from "hi-taskcenter"; export default { components: { HiTaskcenter, }, data() { return { // 同步请求批处理 syncBatch: HIVUI_SETTING.syncBatch, }; }, mounted(){ let me=this; document.addEventListener("iframeActiving",function(e){ //console.log(e.detail); if(top.window.__refreshTaskcenter){ top.window.__refreshTaskcenter=false; me.$refs.hiTask.taskschemeItemClick( { value: "untreated", label: me.$t('hivuiMain_taskcenter_untreated'), sel: true }); } }); }, methods: { openfunc(__data1,__data2,__data3) { top.window.SysPage.newPage(__data2.fpdisplayname,location.origin+(window._global?"":window.HIVUI_SETTING.serverName)+"/"+__data2.fmodelpath,{ fmodelpath:__data2.fmodelpath, version:__data2.fversion, ftaskguid:__data2.ftaskguid, flowstate:__data2.flowstate, forderguid:__data2.forderguid, fnumber:__data2.fordernumber, fbzid:__data2.fbzid, pn:window.HIVUI_SETTING.projectName, }); }, }, }; </script>
<template> <hi-taskcenter ref="hiTask" @openfunc="openfunc" style="background-color:#fff;padding-top:10px;box-sizing:border-box;"></hi-taskcenter> </template> <script> import "hi-taskcenter/hi-taskcenter.css"; import HiTaskcenter from "hi-taskcenter"; export default { components: { HiTaskcenter, }, mounted(){ let me=this; document.addEventListener("iframeActiving",function(e){ //console.log(e.detail); if(top.window.__refreshTaskcenter){ top.window.__refreshTaskcenter=false; me.$refs.hiTask.taskschemeItemClick( { value: "untreated", label: me.$t('hivuiMain_taskcenter_untreated'), sel: true }); } }); }, methods: { openfunc(__data1,__data2,__data3) { top.window.SysPage.newPage(__data2.fpdisplayname,location.origin+(window._global?"":window.HIVUI_SETTING.serverName)+"/"+__data2.fmodelpath,{ fmodelpath:__data2.fmodelpath, version:__data2.fversion, ftaskguid:__data2.ftaskguid, flowstate:__data2.flowstate, forderguid:__data2.forderguid, fnumber:__data2.fordernumber, fbzid:__data2.fbzid, pn:window.HIVUI_SETTING.projectName, }); }, }, }; </script>
Show line notes below