|
@@ -7738,25 +7738,35 @@ U.MD.D.I.openApplication = function (str, obj, info) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-U.MD.D.I.openApplicationWai = function (id, url, dom) {
|
|
|
|
|
|
+U.MD.D.I.openApplicationWai = function (id, url, dom, array) {
|
|
var _formdiv, //创建任务栏时同时弹出的窗体元素。
|
|
var _formdiv, //创建任务栏时同时弹出的窗体元素。
|
|
_userinfo = US.userInfo, //登录用户信息
|
|
_userinfo = US.userInfo, //登录用户信息
|
|
- _userid = _userinfo.userid, //登录用户id
|
|
|
|
- _oid = _userinfo.organizeid,
|
|
|
|
- _type = _userinfo.type,
|
|
|
|
- _org = _userinfo.org,
|
|
|
|
- _role = _userinfo.role,
|
|
|
|
- _classId = _userinfo.classid,
|
|
|
|
- _TscreenType = 1
|
|
|
|
- _screenType = 2,
|
|
|
|
- _SscreenType = 3;
|
|
|
|
- let iframeBool = true
|
|
|
|
|
|
+ { userid: _userid, organizeid: _oid, type: _type, org: _org, role: _role, classid: _classId } = _userinfo; // 解构赋值获取用户信息
|
|
|
|
+ const _TscreenType = 1, _screenType = 2, _SscreenType = 3; // 常量定义
|
|
|
|
+ let iframeBool = true;
|
|
|
|
+ const paramsMap = {
|
|
|
|
+ userid: _userid,
|
|
|
|
+ org: _org,
|
|
|
|
+ oid: _oid,
|
|
|
|
+ type: _type,
|
|
|
|
+ role: _role,
|
|
|
|
+ classId: _classId,
|
|
|
|
+ TscreenType: _TscreenType,
|
|
|
|
+ SscreenType: _SscreenType
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ const canshu = array
|
|
|
|
+ .filter(param => paramsMap[param] !== undefined)
|
|
|
|
+ .map(param => `${param}=${paramsMap[param]}`);
|
|
|
|
+
|
|
|
|
+ const queryString = canshu.length ? '?' + canshu.join('&') : ''; // 生成查询字符串
|
|
|
|
+
|
|
if(U.UF.UI.form.allForm[id]){
|
|
if(U.UF.UI.form.allForm[id]){
|
|
iframeBool = false
|
|
iframeBool = false
|
|
}
|
|
}
|
|
_formdiv = new U.UF.UI.form(
|
|
_formdiv = new U.UF.UI.form(
|
|
false,
|
|
false,
|
|
- $$("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": url }),
|
|
|
|
|
|
+ $$("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": url+queryString }),
|
|
{
|
|
{
|
|
"id": id,
|
|
"id": id,
|
|
"style": { "width": "100%", "height": "100%", "overflow": 'hidden',"position": 'unset',"boxShadow": "unset" },
|
|
"style": { "width": "100%", "height": "100%", "overflow": 'hidden',"position": 'unset',"boxShadow": "unset" },
|