827 Star 5K Fork 3.5K

GVPO2OA企业应用开发平台 / O2OA

 / 详情

处理待办流程后自动刷新首页,待办列表刷新

已完成
创建于  
2021-04-28 08:21

在这个文件中修改servers/webServer/o2_core/o2/xDesktop/$all.min.js

备份源文件,下载并重新格式化文件,大约在8369行 close 函数中添加下列代码,懂js优化的同学位置可以稍微调整,然后再重新压缩js文件,覆盖上传。

close: function (hasTaskitem) {
        if (this.inBrowser) {
            this.desktop.refreshApp(this.desktop.appCurrentList[0]); // 刷新首页即第一个tab
            window.open("", "_self").close();
            window.close();
        } else {
            this.fireAppEvent("queryClose");

            this.setUncurrent();
            this.window.close(function () {
                if (!hasTaskitem) this.taskitem.destroy();
                this.window = null;
                this.taskitem = null;
                if (this.resizeFun) layout.desktop.removeEvent("resize", this.resizeFun);

               this.desktop.refreshApp(this.desktop.appCurrentList[0]); // 刷新首页即第一个tab
            
                this.desktop.closeApp(this, hasTaskitem);
                this.fireAppEvent("postClose");
                
                o2.release(this);
            }.bind(this));
        }

    },

评论 (0)

iamClay 创建了任务
iamClay 修改了描述
iamClay 任务状态待办的 修改为已完成
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
417951 pkuclay 1578923235
Java
1
https://gitee.com/o2oa/O2OA.git
git@gitee.com:o2oa/O2OA.git
o2oa
O2OA
O2OA

搜索帮助

344bd9b3 5694891 D2dac590 5694891