|
@@ -3668,6 +3668,8 @@ window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
U.MD.D.I.openInApplication("openCourseUpdate", e.data.cid)
|
|
|
}else if (e.data.tools && e.data.tools == "openCourseEUpdate") {
|
|
|
U.MD.D.I.openInApplication("openCourseEUpdate", e.data.cid)
|
|
|
+ }else if (e.data.tools && e.data.tools == "openCourseAiUpdate") {
|
|
|
+ U.MD.D.I.openInApplication("openCourseAiUpdate", e.data.cid)
|
|
|
}else if (e.data.tools && e.data.tools == "openNewCourseUpdate") {
|
|
|
U.MD.D.I.openInApplication("openNewCourseUpdate", e.data.cid)
|
|
|
}else if (e.data.tools && e.data.tools == "inviteLoginSz") {
|
|
@@ -3958,6 +3960,23 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
break;
|
|
|
}
|
|
|
+ case "openCourseAiUpdate":
|
|
|
+ if (!_userinfo || Object.keys(_userinfo).length === 0) {
|
|
|
+ setTimeout(() => {
|
|
|
+ U.MD.U.L.login();
|
|
|
+ }, 2000);
|
|
|
+ } else {
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "课程管理",
|
|
|
+ $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/aiAddCourse?cid=" + data + "&userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
|
|
|
+ "id": "openCourseUpdate",
|
|
|
+ "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function () { }
|
|
|
+ }, {
|
|
|
+ closecallback: function () { }
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ break;
|
|
|
+ }
|
|
|
case "openCourseNewUpdate":
|
|
|
if (!_userinfo || Object.keys(_userinfo).length === 0) {
|
|
|
setTimeout(() => {
|