root 2 anos atrás
pai
commit
a3968c0632
2 arquivos alterados com 275 adições e 261 exclusões
  1. 140 137
      js/Office/Word/Word.js
  2. 135 124
      js/Office/Word/WordPanel.js

+ 140 - 137
js/Office/Word/Word.js

@@ -12,8 +12,8 @@ U.MD.O.W = {
     "userinfo": null, //文档用户的信息
     "historyid": US.EMPTYGUID, //历史记录更新的id
     "permission": {      //权限设置
-        "edit": false,
-        "web": false
+        "edit": true,
+        "web": true
     },
     "init": false
 };
@@ -40,7 +40,7 @@ U.MD.O.W.load = async function (fileid, userinfo) {
     U.MD.O.W.setEvent(); //设置事件
     U.MD.O.W.E.createSelection(); //创建下拉框
     U.MD.O.W.E.toolsbind(); //初始化工具栏
-    //U.MD.O.W.loadContent(fileinfo); //加载内容
+    U.MD.O.W.loadContent(fileinfo); //加载内容
     //加载功能
     U.MD.O.W.Panel.loadlink(fileinfo); //加载链接窗体
     //U.MD.O.W.Panel.loadHotTemplates(); //加载热门模板
@@ -85,9 +85,9 @@ U.MD.O.W.getuser = async function () {
 */
 U.MD.O.W.getfile = function (fileid) {
     return {
-        UserDirectoryExtendType: "",
-        UserDirectoryID: Guid.newGuid(),
-        newfile: true
+        UserDirectoryExtendType: "un", //默认导航模式
+        UserDirectoryID: Guid.newGuid(), 
+        newfile: fileid ? false : true
     };
 }
 
@@ -111,31 +111,27 @@ U.MD.O.W.variable = function (fileinfo, userinfo) {
 * @return 返回用户权限json
 */
 U.MD.O.W.setPermission = function () {
-    var _iseditor, _isgroup; //是否可编辑  //群用户
-    //权限主要包含了是否可编辑,是否互联办公文档查看
-
-    //判断文件是否是用户的群文档 US.friend.group这个变量需要独立
-    if (U.MD.O.W.fileinfo.GroupID && US.friend.group) {
-        _isgroup = U.Json.select(US.friend.group, { "GroupManageID": U.MD.O.W.fileinfo.GroupID })
-
-
-
-
-
-
-            ;
-        if (_isgroup) {
-            U.MD.O.W.permission.web = true;     //互联办公的权限
-            U.MD.O.W.permission.edit = true;    //就给其编辑权限
-        }
-    }
-    //如果是共享文档,那么谁都可以编辑,如果是自己的文档那么也可以编辑
-    else if (((U.MD.O.W.fileinfo.GroupID && U.MD.O.W.fileinfo.GroupID == U.MD.O.W.userinfo.UserId) || U.MD.O.W.fileinfo.UserId == US.userInfo.UserId)) {//判断是否是有编辑权限
-        U.MD.O.W.permission.edit = true;    //就给其编辑权限
-        if (U.MD.O.W.fileinfo.UserId == US.userInfo.UserId) {
-            U.MD.O.W.permission.web = true;//互联办公的权限
-        }
-    }
+    U.MD.O.W.permission.web = true;     //互联办公的权限
+    U.MD.O.W.permission.edit = true;    //就给其编辑权限
+
+    // var _iseditor, _isgroup; //是否可编辑  //群用户
+    // //权限主要包含了是否可编辑,是否互联办公文档查看
+
+    // //判断文件是否是用户的群文档 US.friend.group这个变量需要独立
+    // if (U.MD.O.W.fileinfo.GroupID && US.friend.group) {
+    //     _isgroup = U.Json.select(US.friend.group, { "GroupManageID": U.MD.O.W.fileinfo.GroupID });
+    //     if (_isgroup) {
+    //         U.MD.O.W.permission.web = true;     //互联办公的权限
+    //         U.MD.O.W.permission.edit = true;    //就给其编辑权限
+    //     }
+    // }
+    // //如果是共享文档,那么谁都可以编辑,如果是自己的文档那么也可以编辑
+    // else if (((U.MD.O.W.fileinfo.GroupID && U.MD.O.W.fileinfo.GroupID == U.MD.O.W.userinfo.UserId) || U.MD.O.W.fileinfo.UserId == US.userInfo.UserId)) {//判断是否是有编辑权限
+    //     U.MD.O.W.permission.edit = true;    //就给其编辑权限
+    //     if (U.MD.O.W.fileinfo.UserId == US.userInfo.UserId) {
+    //         U.MD.O.W.permission.web = true;//互联办公的权限
+    //     }
+    // }
 }
 
 /**
@@ -216,14 +212,20 @@ U.MD.O.W.loadContent = function (fileinfo) {
         //清楚文件新建的属性,说明文件不是新建
         delete fileinfo.newfile;
     }
-    //互联办公文档获取数据
-    else if (_permission.web) {
-        parent.U.A.Request(US.SCOKET, [U.MD.O.W.fileinfo.UserDirectoryExtendType == 'un' ? 'getNav' : "getWord", _fileid, US.pageId, U.MD.O.W.userinfo.UserId], U.MD.O.W.asynLoad, [$("#U_MD_O_H_wordEditor")[0], fileinfo, _permission.web]); //获取office内容
-    }
-    //普通文档在数据库里面获取数据
-    else {
-        parent.U.A.Request(US.DISK, ["GetFileContent", _fileid], U.MD.O.W.asynLoad, [$("#U_MD_O_H_wordEditor")[0], fileinfo, _permission.web]);
+    //数据库获取数据
+    else{
+
+
     }
+
+    //互联办公文档获取数据
+    // else if (_permission.web) {
+    //     parent.U.A.Request(US.SCOKET, [U.MD.O.W.fileinfo.UserDirectoryExtendType == 'un' ? 'getNav' : "getWord", _fileid, US.pageId, U.MD.O.W.userinfo.UserId], U.MD.O.W.asynLoad, [$("#U_MD_O_H_wordEditor")[0], fileinfo, _permission.web]); //获取office内容
+    // }
+    // //普通文档在数据库里面获取数据
+    // else {
+    //     parent.U.A.Request(US.DISK, ["GetFileContent", _fileid], U.MD.O.W.asynLoad, [$("#U_MD_O_H_wordEditor")[0], fileinfo, _permission.web]);
+    // }
 }
 
 /**
@@ -365,115 +367,116 @@ U.MD.O.W.save = function () {
             }
         }
     }
+}
 
-    /**
-    * 修改文件名处理
-    *
-    * @param  {function} 保存回调函数
-    */
-    U.MD.O.W.updateName = function () {
-        var _islogin = top.U.MD.U.L.isLogin(function (userinfo) { U.MD.O.W.userinfo = userinfo; }); //判断是否登录
-        if (!_islogin) {
-            var _fileinfo = U.MD.O.W.fileinfo, //文件信息
-                _userinfo = U.MD.O.W.userinfo,
-                _type = U.MD.O.W.fileinfo.UserDirectoryExtendType == 'un' ? 'nav' : 'word',
-                _fileid = _fileinfo.UserDirectoryID, //文件ID
-                _name = top.$('#UD_Word' + _fileid + ' .U_MD_O_H_head_navigation_Title')[0].value;
-
-            //文件名必须本人才能修改
-            if (_userinfo.UserId == _fileinfo.UserId) {
-                //判断文档是否是已经保存到数据库的文档(判断的依据在于这个文件除了有文件id还有文件名和创建者id) 
-                if ((_fileid && _fileinfo.UserId && _fileinfo.UserallDirectoryName) && U.MD.O.W.permission.edit) { //如果是已经保存到数据库的文档,那么直接保存内容
-                    //如果是互联办公文档的操作
-                    if (U.MD.O.W.permission.web) {
-                        top.U.A.Request(US.SCOKET, ["updateName", _type, _fileid, _name, US.userInfo.UserId, US.pageId], function (r) {
-                            if (r.value == "updateNameSuccess") {
-                                _fileinfo.UserallDirectoryName = _name; //文件全写的名字
-                                _fileinfo.UserDirectoryName = _name.addEllipsis(20); //文件的缩略名
-                            }
-                        });
-                    }
-                    //普通文档修改信息
-                    else {
-                        top.U.A.Request(US.DISK, ["UpdateFileInfo", _fileid, _name], function (r) {
-                            if (r.value) {
-                                _fileinfo.UserallDirectoryName = _name; //文件全写的名字
-                                _fileinfo.UserDirectoryName = _name.addEllipsis(20); //文件的缩略名
-                            }
-                        });
-                    }
+/**
+* 修改文件名处理
+*
+* @param  {function} 保存回调函数
+*/
+U.MD.O.W.updateName = function () {
+    var _islogin = top.U.MD.U.L.isLogin(function (userinfo) { U.MD.O.W.userinfo = userinfo; }); //判断是否登录
+    if (!_islogin) {
+        var _fileinfo = U.MD.O.W.fileinfo, //文件信息
+            _userinfo = U.MD.O.W.userinfo,
+            _type = U.MD.O.W.fileinfo.UserDirectoryExtendType == 'un' ? 'nav' : 'word',
+            _fileid = _fileinfo.UserDirectoryID, //文件ID
+            _name = top.$('#UD_Word' + _fileid + ' .U_MD_O_H_head_navigation_Title')[0].value;
+
+        //文件名必须本人才能修改
+        if (_userinfo.UserId == _fileinfo.UserId) {
+            //判断文档是否是已经保存到数据库的文档(判断的依据在于这个文件除了有文件id还有文件名和创建者id) 
+            if ((_fileid && _fileinfo.UserId && _fileinfo.UserallDirectoryName) && U.MD.O.W.permission.edit) { //如果是已经保存到数据库的文档,那么直接保存内容
+                //如果是互联办公文档的操作
+                if (U.MD.O.W.permission.web) {
+                    top.U.A.Request(US.SCOKET, ["updateName", _type, _fileid, _name, US.userInfo.UserId, US.pageId], function (r) {
+                        if (r.value == "updateNameSuccess") {
+                            _fileinfo.UserallDirectoryName = _name; //文件全写的名字
+                            _fileinfo.UserDirectoryName = _name.addEllipsis(20); //文件的缩略名
+                        }
+                    });
+                }
+                //普通文档修改信息
+                else {
+                    top.U.A.Request(US.DISK, ["UpdateFileInfo", _fileid, _name], function (r) {
+                        if (r.value) {
+                            _fileinfo.UserallDirectoryName = _name; //文件全写的名字
+                            _fileinfo.UserDirectoryName = _name.addEllipsis(20); //文件的缩略名
+                        }
+                    });
                 }
-            }
-            //其他用户不允许修改文件名
-            else {
-                top.$('#UD_Word' + _fileid + ' .U_MD_O_H_head_navigation_Title')[0].value = _fileinfo.UserallDirectoryName;
-                U.alert('非本人操作,修改失败!');
             }
         }
+        //其他用户不允许修改文件名
+        else {
+            top.$('#UD_Word' + _fileid + ' .U_MD_O_H_head_navigation_Title')[0].value = _fileinfo.UserallDirectoryName;
+            U.alert('非本人操作,修改失败!');
+        }
     }
+}
 
-    //#endregion
-
-    //#region 新建文档
-
-    /**
-    * 新建文档的处理
-    *
-    */
-    U.MD.O.W.newdocument = function () {
-        var _divel = $$("div", { "className": "U_MD_O_newBtn" });
-        $$("button", {
-            "className": "U_MD_O_newDoc", "innerHTML": "普通word",
-            "onclick": function () {
-                parent.U.MD.D.I.openApplication("word", { "userid": US.userInfo.UserId, "directoryid": US.FTPFOLDERID }); //打开文档处理
-                $('#U_MD_O_Set')[0].style.display = "none";
-            }
-        }, _divel);
-        $$("button", {
-            "className": "U_MD_O_newNav", "innerHTML": "导航模板",
-            "onclick": function () {
-                parent.U.MD.D.I.openApplication("word", { UserDirectoryExtendType: "un" }); //新建导航文档
-                $('#U_MD_O_Set')[0].style.display = "none";
-            }
-        }, _divel);
-        new U.UF.UI.form("新建", _divel, { "id": "U_MD_O_Set", "style": { "width": "300px", "height": "150px" } }, { isenlarge: false, isstretching: false }).form;
-    }
+//#endregion
+
+//#region 新建文档
 
-    //#endregion
-    //#region 文档转化
-
-    /**
-    * 导航文件转化成普通文件
-    */
-    U.MD.O.W.newDocSwitch = function () {
-        var _fileinfo = U.MD.O.W.fileinfo,
-            _fileid = _fileinfo.UserDirectoryID;
-        if (_fileinfo.UserDirectoryExtendType == "un") {
-            $("#U_MD_O_H_Nav")[0].style.display = "none";
-            $("#U_MD_O_W_N").Parent({ usform: "true" }).style.display = "none";
+/**
+* 新建文档的处理
+*
+*/
+U.MD.O.W.newdocument = function () {
+    var _divel = $$("div", { "className": "U_MD_O_newBtn" });
+    $$("button", {
+        "className": "U_MD_O_newDoc", "innerHTML": "普通word",
+        "onclick": function () {
+            parent.U.MD.D.I.openApplication("word", { "userid": US.userInfo.UserId, "directoryid": US.FTPFOLDERID }); //打开文档处理
+            $('#U_MD_O_Set')[0].style.display = "none";
         }
-        //获取文件内容异步
-        U.A.Request(US.CD, ([US.DB, "UseStudio_Disk", "GetFileContent", "d17a2910-11ba-df39-cd8a-5cac851c2148"]), function (r) {
-            _fileinfo.UserDirectoryExtendType = 'uw'; //设置格式为uw
-            _fileinfo.UsOffice = r.value[0].UsOffice.unEscapeQuotes(); //获取值
-            _fileinfo.newfile = true; //设置为新建文件
-            U.MD.O.W.load(_fileinfo, U.MD.O.W.userinfo); //初始化
-        });
-    }
+    }, _divel);
+    $$("button", {
+        "className": "U_MD_O_newNav", "innerHTML": "导航模板",
+        "onclick": function () {
+            parent.U.MD.D.I.openApplication("word", { UserDirectoryExtendType: "un" }); //新建导航文档
+            $('#U_MD_O_Set')[0].style.display = "none";
+        }
+    }, _divel);
+    new U.UF.UI.form("新建", _divel, { "id": "U_MD_O_Set", "style": { "width": "300px", "height": "150px" } }, { isenlarge: false, isstretching: false }).form;
+}
+
+//#endregion
+//#region 文档转化
 
-    /** * 普通文件转化成导航文件
-    */
-    U.MD.O.W.newNavSwitch = function () {
-        var _fileinfo = U.MD.O.W.fileinfo,
-            _fileid = _fileinfo.UserDirectoryID;
-        //获取文件内容异步,此为获取默认的宣传文档
-        U.A.Request(US.CD, ([US.DB, "UseStudio_Disk", "GetFileContent", "6a8a235a-41c4-c3d2-8dd5-b6ee851e1967"]), function (r) {
-            _fileinfo.UserDirectoryExtendType = 'un'; //设置格式为un
-            _fileinfo.UsOffice = r.value[0].UsOffice.unEscapeQuotes(); //获取值
-            _fileinfo.newfile = true; //设置为新建文件
-            U.MD.O.W.load(_fileinfo, U.MD.O.W.userinfo); //初始化
-        });
+/**
+* 导航文件转化成普通文件
+*/
+U.MD.O.W.newDocSwitch = function () {
+    var _fileinfo = U.MD.O.W.fileinfo,
+        _fileid = _fileinfo.UserDirectoryID;
+    if (_fileinfo.UserDirectoryExtendType == "un") {
+        $("#U_MD_O_H_Nav")[0].style.display = "none";
+        $("#U_MD_O_W_N").Parent({ usform: "true" }).style.display = "none";
     }
+    //获取文件内容异步
+    U.A.Request(US.CD, ([US.DB, "UseStudio_Disk", "GetFileContent", "d17a2910-11ba-df39-cd8a-5cac851c2148"]), function (r) {
+        _fileinfo.UserDirectoryExtendType = 'uw'; //设置格式为uw
+        _fileinfo.UsOffice = r.value[0].UsOffice.unEscapeQuotes(); //获取值
+        _fileinfo.newfile = true; //设置为新建文件
+        U.MD.O.W.load(_fileinfo, U.MD.O.W.userinfo); //初始化
+    });
+}
+
+/** * 普通文件转化成导航文件
+*/
+U.MD.O.W.newNavSwitch = function () {
+    var _fileinfo = U.MD.O.W.fileinfo,
+        _fileid = _fileinfo.UserDirectoryID;
+    //获取文件内容异步,此为获取默认的宣传文档
+    U.A.Request(US.CD, ([US.DB, "UseStudio_Disk", "GetFileContent", "6a8a235a-41c4-c3d2-8dd5-b6ee851e1967"]), function (r) {
+        _fileinfo.UserDirectoryExtendType = 'un'; //设置格式为un
+        _fileinfo.UsOffice = r.value[0].UsOffice.unEscapeQuotes(); //获取值
+        _fileinfo.newfile = true; //设置为新建文件
+        U.MD.O.W.load(_fileinfo, U.MD.O.W.userinfo); //初始化
+    });
 }
 
+
 //#endregion

+ 135 - 124
js/Office/Word/WordPanel.js

@@ -103,19 +103,21 @@ U.MD.O.W.Panel.loadPlayUser = function (fileinfo) {
         //创建邀请协助人员窗口
         _coopwindow = $("#U_MD_O_H_body_left")[0];
         _cBox = $$("div", {});
-        _shareLink = $$("div", { className: 'U_MD_O_H_body_left_invite_linkTxt', "onclick": function () {
-            U.MD.O.W.Panel.isSynergy(U.MD.O.W.Panel.shareLink);
-        }, "innerText": "第三方链接邀请"
+        _shareLink = $$("div", {
+            className: 'U_MD_O_H_body_left_invite_linkTxt', "onclick": function () {
+                U.MD.O.W.Panel.isSynergy(U.MD.O.W.Panel.shareLink);
+            }, "innerText": "第三方链接邀请"
         }, _cBox);
         _frienddiv = $$("div", { "className": "U_MD_O_H_body_left_invite_user", "id": "U_MD_O_H_body_left_invite_user" }, _cBox); //好友内容区域
-        _example = $$("div", { "className": "U_MD_O_H_body_left_invite_user_a", "onclick": function () {
-            U.MD.O.W.Panel.displayInsertUser();
-        }
+        _example = $$("div", {
+            "className": "U_MD_O_H_body_left_invite_user_a", "onclick": function () {
+                U.MD.O.W.Panel.displayInsertUser();
+            }
         }, _frienddiv); //默认邀请按钮
         $$("div", { "className": "U_MD_O_H_body_left_invite_user_a_img" }, _example);
         $$("div", { "className": "U_MD_O_H_body_left_invite_user_a_div", "innerHTML": "邀请" }, _example);
-        new U.UF.UI.form("邀请协作人员", _cBox, { id: "LoadPlayUser", style: { border: "none", position: "absolute", width: "300px", "min-width": "200px", height: "250px", top: "140px", left: "auto", "box-shadow": "none"} },
-                        { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _coopwindow);
+        new U.UF.UI.form("邀请协作人员", _cBox, { id: "LoadPlayUser", style: { border: "none", position: "absolute", width: "300px", "min-width": "200px", height: "250px", top: "140px", left: "auto", "box-shadow": "none" } },
+            { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff" } }, null, null, _coopwindow);
     }
     U.MD.O.W.Panel.disPlayUser(fileinfo); //获取协作人员   
 }
@@ -131,14 +133,14 @@ U.MD.O.W.Panel.disPlayUser = function (fileinfo, el) {
     el.innerHTML = ""//清空内容
     $(el).append(_elchild);
     if (fileinfo) {//判断是否有文件信息
-        //或者是什么意思?不严谨
-        var _userinfo = U.Json.select(US.friend.groupusers, { "GroupManageID": fileinfo.GroupID }); //获取所有在群里的成员
+        var _userinfo = [];// U.Json.select(US.friend.groupusers, { "GroupManageID": fileinfo.GroupID }); //获取所有在群里的成员
         if (_userinfo) {//判断是否拥有群成员
             for (i = 0; i < _userinfo.length; i++) {//循环打印所有的群成员
                 U.MD.O.W.Panel.createUser(_userinfo[i], el);
             }
         }
     }
+
 }
 
 /**
@@ -147,11 +149,12 @@ U.MD.O.W.Panel.disPlayUser = function (fileinfo, el) {
 * @param  fileinfo {object} 文件信息
 */
 U.MD.O.W.Panel.createUser = function (userinfo, el) {
-    var _elparent = $$("div", { "className": "U_MD_O_H_body_left_invite_user_a", "onclick": U.UF.C.closure(function (userid) {
-        top.U.MD.U.V.ViewOtherUserInfo(userid);
-    }, [userinfo.UserId])
+    var _elparent = $$("div", {
+        "className": "U_MD_O_H_body_left_invite_user_a", "onclick": U.UF.C.closure(function (userid) {
+            top.U.MD.U.V.ViewOtherUserInfo(userid);
+        }, [userinfo.UserId])
     }, el);  //好友头像父级元素
-    var _elcontant = $$("div", { "className": "U_MD_O_H_body_left_invite_user_a_user", "style": { "background": ""} }, _elparent); //好友头像元素
+    var _elcontant = $$("div", { "className": "U_MD_O_H_body_left_invite_user_a_user", "style": { "background": "" } }, _elparent); //好友头像元素
     $$("img", { "onerror": U.MD.C.imgError, "src": top.U.MD.C.getHeadImage(userinfo.UserThumbnailImageHead) }, _elcontant); //好友头像图片
     $$("div", { "className": "U_MD_O_H_body_left_invite_user_a_div", "innerHTML": userinfo.UserNickName }, _elparent); //好友名称
 }
@@ -263,7 +266,7 @@ U.MD.O.W.Panel.syncAddUser = function (userids, senduserid) {
 */
 U.MD.O.W.Panel.shareLink = function (fileinfo) {
     var _template = U.MD.O.W.Panel.shareLinkTemplate(fileinfo); //生成窗体内容
-    new U.UF.UI.form("邀请协助链接", _template, { id: "U_MD_O_W_Panel_InviteForm", style: { cssText: "width:600px; height:450px;"} }); //创建窗体
+    new U.UF.UI.form("邀请协助链接", _template, { id: "U_MD_O_W_Panel_InviteForm", style: { cssText: "width:600px; height:450px;" } }); //创建窗体
 }
 
 /**
@@ -275,7 +278,7 @@ U.MD.O.W.Panel.shareLinkTemplate = function (fileinfo) {
     var _cBox = $$('div', { className: "U_MD_O_H_body_left_invite_form" }), //创建最外层元素
         _shareLinkEl = $$('div', { className: "U_MD_O_H_body_left_invite_formShare" }, _cBox), //分享链接盒子元素
         _QRCodeEl = $$('div', { className: "U_MD_O_H_body_left_invite_formQRCode" }, _cBox); //二维码元素
-    $$('p', { innerText: "通过链接邀请:", style: { cssText: "font-size:18px; font-weight: bold;"} }, _shareLinkEl) //文字提示
+    $$('p', { innerText: "通过链接邀请:", style: { cssText: "font-size:18px; font-weight: bold;" } }, _shareLinkEl) //文字提示
 
     var _shareLinkInpBlock = $$('div', { className: "U_MD_O_H_body_left_invite_shareInpMargin" }, _shareLinkEl);  //分享链接文本框
 
@@ -296,20 +299,21 @@ U.MD.O.W.Panel.shareLinkTemplate = function (fileinfo) {
 
     var _shareLinkInpBlockShow = $$('input', { style: { cssText: "margin-top: 5px;" }, className: "U_MD_O_H_body_left_invite_shareInp", value: "http://www.1473.cn/#" + _fileType + '/join/' + fileinfo.UserDirectoryID, disabled: "disabled" }, _shareLinkInpBlock), //输出
 
-        _shareLinkInpBlockBtn = $$('div', { style: { cssText: "margin-top: 5px;" }, className: "U_MD_O_H_body_left_invite_shareBtn", innerText: "复制", onclick: function () { //复制按钮
-            var _inp = $$('input', { value: _shareLinkInpBlockShow.value }, $('body')[0]); //创建复制文本框
-            _inp.select(); //选中
-            document.execCommand("Copy"); //复制
-            $(_inp).remove();
-            U.Alert('复制成功,赶紧分享给小伙伴吧!'); //提示
-        }
+        _shareLinkInpBlockBtn = $$('div', {
+            style: { cssText: "margin-top: 5px;" }, className: "U_MD_O_H_body_left_invite_shareBtn", innerText: "复制", onclick: function () { //复制按钮
+                var _inp = $$('input', { value: _shareLinkInpBlockShow.value }, $('body')[0]); //创建复制文本框
+                _inp.select(); //选中
+                document.execCommand("Copy"); //复制
+                $(_inp).remove();
+                U.Alert('复制成功,赶紧分享给小伙伴吧!'); //提示
+            }
         }, _shareLinkInpBlock)
 
 
-    $$('p', { innerText: "通过二维码邀请:", style: { cssText: "font-size:18px; font-weight: bold;"} }, _QRCodeEl); //文字
+    $$('p', { innerText: "通过二维码邀请:", style: { cssText: "font-size:18px; font-weight: bold;" } }, _QRCodeEl); //文字
 
-    var _QRCodeImg = $$('div', { style: { cssText: "margin-left:40px;margin-top: 20px;position:absolute;"} }, _QRCodeEl);
-    $$('div', { innerHTML: "<span style='font-size:16px'>通过扫码,邀请好友</span><br>扫描二维码获取邀请函,转发给微信好友/群,<br/>即可邀请他们加入你的文档", style: { cssText: "margin-left: 270px;margin-top:40px;line-height:30px;"} }, _QRCodeEl);
+    var _QRCodeImg = $$('div', { style: { cssText: "margin-left:40px;margin-top: 20px;position:absolute;" } }, _QRCodeEl);
+    $$('div', { innerHTML: "<span style='font-size:16px'>通过扫码,邀请好友</span><br>扫描二维码获取邀请函,转发给微信好友/群,<br/>即可邀请他们加入你的文档", style: { cssText: "margin-left: 270px;margin-top:40px;line-height:30px;" } }, _QRCodeEl);
     top.U.UF.QR.generate("150", "150", "black", "white", _shareLinkInpBlockShow.value, _QRCodeImg); //调用生成二维码函数
 
     return _cBox; //返回最外层元素
@@ -331,7 +335,7 @@ U.MD.O.W.Panel.loadHotTemplates = function (fileinfo) {
         _leftel = $("#U_MD_O_H_body_left")[0];
         //创建热门模板窗体
         _el = $$("div", { "className": "U_MD_O_H_body_left_template_user", id: "U_MD_O_H_body_left_template_hot" });
-        new U.UF.UI.form("热门模板提供", _el, { id: "LoadHotTemplates", style: { border: "none", width: "300px", height: "477px", position: "absolute", top: "695px", left: "auto", "box-shadow": "none"} }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _leftel);
+        new U.UF.UI.form("热门模板提供", _el, { id: "LoadHotTemplates", style: { border: "none", width: "300px", height: "477px", position: "absolute", top: "695px", left: "auto", "box-shadow": "none" } }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff" } }, null, null, _leftel);
     }
     U.MD.O.W.Panel.getHotTemplates("00000000-0000-0000-0000-000000000000", 1, 10); //热门模板
 }
@@ -371,7 +375,7 @@ U.MD.O.W.Panel.asynGetHotTemplates = function (r) {
                 });
             }, [r[i]])
         }, _frag);
-        $$("div", { "className": "U_MD_O_H_body_left_template_user_m_s", "style": { "background-image": "url(" + (r[i].UseFilesServerThumbnailName || "http://www.1473.cn/Boomyun/img/pc/NImg.png") + ")"} }, _el);
+        $$("div", { "className": "U_MD_O_H_body_left_template_user_m_s", "style": { "background-image": "url(" + (r[i].UseFilesServerThumbnailName || "http://www.1473.cn/Boomyun/img/pc/NImg.png") + ")" } }, _el);
         $$("div", { "className": "U_MD_O_H_body_left_template_user_m_x", "innerHTML": r[i]["UserFilesName"] }, _el);
     }
     $(_hel).append(_frag);
@@ -391,11 +395,13 @@ U.MD.O.W.Panel.loadlink = function (wordinfo) {
     var _linkareael = $("#U_MD_O_H_body_left_href_pay_a")[0];
     //如果不存在添加链接区域,则创建。
     if (!_linkareael || (_linkareael && _linkareael.innerHTML == "")) {
+        U.MD.O.W.Panel.formloadlink([]); //加载链接,这里有可能没有设置过短连接
+
         //加载word文件的短链接
-        U.A.Request('http://cd.1473.cn/php', ["db.1473.cn", "UseStudio_DNS", 'GetDnsInfoByFileId', wordinfo.UserDirectoryID], function (r) {
-            var _date = r.value; //获取短连接信息
-            U.MD.O.W.Panel.formloadlink(_date); //加载链接,这里有可能没有设置过短连接
-        });
+        // U.A.Request('http://cd.1473.cn/php', ["db.1473.cn", "UseStudio_DNS", 'GetDnsInfoByFileId', wordinfo.UserDirectoryID], function (r) {
+        //     var _date = r.value; //获取短连接信息
+        //     U.MD.O.W.Panel.formloadlink(_date); //加载链接,这里有可能没有设置过短连接
+        // });
     }
 }
 
@@ -411,7 +417,7 @@ U.MD.O.W.Panel.formloadlink = function (date) {
         _wordinfo = U.MD.O.W.fileinfo,
         _rightwindow = $("#U_MD_O_H_body_left")[0], //右边功能区
         _linkareael = $("#U_MD_O_H_body_left_href_pay_a")[0]
-    ;
+        ;
     //设置过域名的加载
     if (date.length) {
         _url = date[0].AppId + ".1473.cn/" + date[0].Domain
@@ -419,71 +425,74 @@ U.MD.O.W.Panel.formloadlink = function (date) {
         $$("a", { className: "U_MD_O_H_body_left_href_pay_aText", href: "//" + _url, innerText: _url, target: "_Blank" }, _linkdiv);
         //只有编辑权限才显示修改和分享按钮
         if (U.MD.O.W.permission.edit) {
-            $$('div', { innerText: '分享', className: "U_MD_O_H_body_left_href_pay_Btn", onclick: function () {
-                //判断是否保持文档
-                if (U.MD.O.W.isSave()) {
-                    var _iframe = $$('iframe', { src: '//domain.1473.cn/DomainSystem.aspx/?fileId=' + _wordinfo.UserDirectoryID + '&type=word&mode=share', frameborder: "0", style: { cssText: "width:100%;height:100%;border:0px"} });
-                    new U.UF.UI.form("域名管理", _iframe, { id: "U_MD_DS_DomainShare", style: { "width": "370px", "height": "390px"} });
-                }
-                //点击保存处理
-                else {
-                    $('#U_MD_O_H_save')[0].onclick();
+            $$('div', {
+                innerText: '分享', className: "U_MD_O_H_body_left_href_pay_Btn", onclick: function () {
+                    //判断是否保持文档
+                    if (U.MD.O.W.isSave()) {
+                        var _iframe = $$('iframe', { src: '//domain.1473.cn/DomainSystem.aspx/?fileId=' + _wordinfo.UserDirectoryID + '&type=word&mode=share', frameborder: "0", style: { cssText: "width:100%;height:100%;border:0px" } });
+                        new U.UF.UI.form("域名管理", _iframe, { id: "U_MD_DS_DomainShare", style: { "width": "370px", "height": "390px" } });
+                    }
+                    //点击保存处理
+                    else {
+                        $('#U_MD_O_H_save')[0].onclick();
+                    }
                 }
-            }
             }, _linkdiv);
-            $$("div", { innerText: '修改', className: "U_MD_O_H_body_left_href_pay_Btn", onclick: function () {
-                //判断是否保持文档
-                if (U.MD.O.W.isSave()) {
-                    var _iframe = $$('iframe', { src: '//domain.1473.cn/DomainSystem.aspx/?fileId=' + _wordinfo.UserDirectoryID + '&type=word&mode=base', frameborder: "0", style: { cssText: "width:100%;height:100%;border:0px"} });
-                    new U.UF.UI.form("域名管理", _iframe, { id: "U_MD_DS_DomainManage", style: { cssText: 'width: 1040px; height: 555px'} });
-                }
-                //点击保存处理
-                else {
-                    $('#U_MD_O_H_save')[0].onclick();
+            $$("div", {
+                innerText: '修改', className: "U_MD_O_H_body_left_href_pay_Btn", onclick: function () {
+                    //判断是否保持文档
+                    if (U.MD.O.W.isSave()) {
+                        var _iframe = $$('iframe', { src: '//domain.1473.cn/DomainSystem.aspx/?fileId=' + _wordinfo.UserDirectoryID + '&type=word&mode=base', frameborder: "0", style: { cssText: "width:100%;height:100%;border:0px" } });
+                        new U.UF.UI.form("域名管理", _iframe, { id: "U_MD_DS_DomainManage", style: { cssText: 'width: 1040px; height: 555px' } });
+                    }
+                    //点击保存处理
+                    else {
+                        $('#U_MD_O_H_save')[0].onclick();
+                    }
                 }
-            }
             }, _linkdiv);
         }
     }
     //未设置过的
     else {
-        _linkdiv = $$("div", { "className": "U_MD_O_H_body_left_href_pay_a", id: "U_MD_O_H_body_left_href_pay_a", "innerHTML": "将此站点生成链接", "onclick": function () { //生成链接
-            //判断文件是否保存,此判断未成功
-            if (U.MD.O.W.isSave()) { //如果保存的文档,点击直接弹出网页
-                //得到编辑器
-                var _wordContent = document.getElementById("U_MD_O_H_wordEditor");
-                //如果文件变量中的word内容存在,编辑器内容不同于文件变量中的内容,则保存内容,否则,返回true
-                if (_wordinfo.UsOffice && _wordinfo.UsOffice != _wordContent.innerHTML) {
-                    //保存到数据库
-                    top.U.A.Request(US.DISK, ["SaveFileContent", US.userInfo.UserId, _wordinfo.UserDirectoryID, _wordContent.innerHTML.escapeQuotes(), _wordinfo.UserallDirectoryName, "uw"], function (r) {
-                        //跳转新页面显示word内容
-                        window.open("http://" + U.MD.O.W.fileinfo.UserDirectoryID + ".1473.cn");
-                    }, ([''])); //保存到数据库
-                }
-                else {
-                    //先判断数据库是否存在该文件
-                    parent.U.A.Request(US.DISK, ["GetFileContent", _wordinfo.UserDirectoryID], function (r) {
-                        //能够获取到内容
-                        if (r.value && r.value.UsOffice !== null) {
+        _linkdiv = $$("div", {
+            "className": "U_MD_O_H_body_left_href_pay_a", id: "U_MD_O_H_body_left_href_pay_a", "innerHTML": "将此站点生成链接", "onclick": function () { //生成链接
+                //判断文件是否保存,此判断未成功
+                if (U.MD.O.W.isSave()) { //如果保存的文档,点击直接弹出网页
+                    //得到编辑器
+                    var _wordContent = document.getElementById("U_MD_O_H_wordEditor");
+                    //如果文件变量中的word内容存在,编辑器内容不同于文件变量中的内容,则保存内容,否则,返回true
+                    if (_wordinfo.UsOffice && _wordinfo.UsOffice != _wordContent.innerHTML) {
+                        //保存到数据库
+                        top.U.A.Request(US.DISK, ["SaveFileContent", US.userInfo.UserId, _wordinfo.UserDirectoryID, _wordContent.innerHTML.escapeQuotes(), _wordinfo.UserallDirectoryName, "uw"], function (r) {
                             //跳转新页面显示word内容
                             window.open("http://" + U.MD.O.W.fileinfo.UserDirectoryID + ".1473.cn");
-                        }
-                        else {
-                            //保存到数据库
-                            top.U.A.Request(US.DISK, ["SaveFileContent", US.userInfo.UserId, _wordinfo.UserDirectoryID, _wordContent.innerHTML.escapeQuotes(), _wordinfo.UserallDirectoryName, "uw"], function (r) {
+                        }, ([''])); //保存到数据库
+                    }
+                    else {
+                        //先判断数据库是否存在该文件
+                        parent.U.A.Request(US.DISK, ["GetFileContent", _wordinfo.UserDirectoryID], function (r) {
+                            //能够获取到内容
+                            if (r.value && r.value.UsOffice !== null) {
                                 //跳转新页面显示word内容
                                 window.open("http://" + U.MD.O.W.fileinfo.UserDirectoryID + ".1473.cn");
-                            }, ([''])); //保存到数据库
-                        }
-                    });
+                            }
+                            else {
+                                //保存到数据库
+                                top.U.A.Request(US.DISK, ["SaveFileContent", US.userInfo.UserId, _wordinfo.UserDirectoryID, _wordContent.innerHTML.escapeQuotes(), _wordinfo.UserallDirectoryName, "uw"], function (r) {
+                                    //跳转新页面显示word内容
+                                    window.open("http://" + U.MD.O.W.fileinfo.UserDirectoryID + ".1473.cn");
+                                }, ([''])); //保存到数据库
+                            }
+                        });
 
-                }
+                    }
 
+                }
+                else { //未保存的文档查看站点,触发保存事件
+                    $('#U_MD_O_H_save')[0].onclick();
+                }
             }
-            else { //未保存的文档查看站点,触发保存事件
-                $('#U_MD_O_H_save')[0].onclick();
-            }
-        }
         });
     }
     //如果已经创建
@@ -492,7 +501,7 @@ U.MD.O.W.Panel.formloadlink = function (date) {
     }
     //如果生成链接的处理
     else {
-        new U.UF.UI.form("生成链接", _linkdiv, { style: { border: "none", position: "absolute", width: "300px", height: "70px", top: "60px", left: "auto", "box-shadow": "none"} }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _rightwindow);
+        new U.UF.UI.form("生成链接", _linkdiv, { style: { border: "none", position: "absolute", width: "300px", height: "70px", top: "60px", left: "auto", "box-shadow": "none" } }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff" } }, null, null, _rightwindow);
     }
 }
 
@@ -512,7 +521,7 @@ U.MD.O.W.Panel.loadOfficeHistory = function (fileinfo) {
         _leftel = $("#U_MD_O_H_body_left")[0];
         //编辑历史
         _el = $$("div", { "className": "U_MD_O_H_body_left_invite_user", "id": "U_MD_O_H_body_left_invite_history" });
-        new U.UF.UI.form("编辑历史", _el, { id: "LoadOfficeHistory", style: { width: "300px", height: "284px", position: "absolute", top: "400px", left: "auto", "border-radius": "0px", border: "none", "box-shadow": "none", "border-radius": "5px"} }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _leftel);
+        new U.UF.UI.form("编辑历史", _el, { id: "LoadOfficeHistory", style: { width: "300px", height: "284px", position: "absolute", top: "400px", left: "auto", "border-radius": "0px", border: "none", "box-shadow": "none", "border-radius": "5px" } }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff" } }, null, null, _leftel);
     }
     //判断文件是否保持的文件,如果保持的文件则有历史记录,未保存的没有
     if (U.MD.O.W.isSave()) {
@@ -520,7 +529,7 @@ U.MD.O.W.Panel.loadOfficeHistory = function (fileinfo) {
     }
     //没有历史记录
     else {
-        $$("div", { "innerHTML": "暂无历史", "style": { "text-align": "center", "margin-top": "50px"} }, _el);
+        $$("div", { "innerHTML": "暂无历史", "style": { "text-align": "center", "margin-top": "50px" } }, _el);
     }
 }
 
@@ -547,7 +556,7 @@ U.MD.O.W.Panel.asynViewEditHistory = function (r) {
 
     for (var i = 0; i < _value.length; i++) {
         _el.appendChild(U.MD.O.W.Panel.createHis(_value[i]))
-       
+
     }
 }
 
@@ -560,31 +569,33 @@ U.MD.O.W.Panel.createHis = function (data) {
 
 
     var _hisel, _imgel, _infoel, _textel, _btnel;
-    _hisel = $$('div', { style: { cssText: 'min-height: 85px; border-bottom: 1px solid silver; margin: 0 3px'} });
-    _imgel = $$('div', { style: { margin: '22px 12px 0', float: 'left'} }, _hisel);
+    _hisel = $$('div', { style: { cssText: 'min-height: 85px; border-bottom: 1px solid silver; margin: 0 3px' } });
+    _imgel = $$('div', { style: { margin: '22px 12px 0', float: 'left' } }, _hisel);
     $$('img', { "onerror": U.MD.C.imgError, style: { cssText: 'width:40px; height: 40px;' }, src: top.U.MD.C.getHeadImage(data.UserThumbnailImageHead) }, _imgel);
-    _infoel = $$('div', { style: { cssText: 'margin-left: 62px;'} }, _hisel);
-    _textel = $$('div', { style: { 'padding-top': '25px', 'white-space': 'nowrap'} }, _infoel);
+    _infoel = $$('div', { style: { cssText: 'margin-left: 62px;' } }, _hisel);
+    _textel = $$('div', { style: { 'padding-top': '25px', 'white-space': 'nowrap' } }, _infoel);
     $$('span', { innerText: data.UserName }, _textel);
-    $$('span', { innerText: U.UF.D.getDateInterval(data.CreateTime) + '保存一次', style: { 'padding-left': '10px'} }, _textel);
-    _btnel = $$('div', { style: { 'margin-top': '10px', 'white-space': 'nowrap'} }, _infoel);
+    $$('span', { innerText: U.UF.D.getDateInterval(data.CreateTime) + '保存一次', style: { 'padding-left': '10px' } }, _textel);
+    _btnel = $$('div', { style: { 'margin-top': '10px', 'white-space': 'nowrap' } }, _infoel);
 
     //判断是否是自己编辑历史记录,是则不打印对话
     if (data.UserId != U.MD.O.W.userinfo.UserId) {
-        $$('button', { innerText: '对话', style: { cssText: 'color: #fff; background-color:#6d81a4; border-radius: 4px; border:none; outline:none; padding: 4px 8px; cursor: pointer;' }, onclick: function () {
-            //这里有问题,这样获取不一定能获取用户数据,同时数据没有分离
-            var _friendel = U.Json.select(US.friend.friends, { UserId: data.UserId });
-            //如果未添加好友,则弹出添加好友框,否则直接弹出聊天窗口
-            if (_friendel.length == 0) {
-                top.U.MD.U.V.ViewOtherUserInfo(data.UserId);
-            } else {
-                _data = !_friendel.length ? U.Json.select(US.friend.recentcontacts, { UserId: data.UserId }) : _friendel;
-                top.U.MD.F.W.popupFriendsForm(_data[0], this);
+        $$('button', {
+            innerText: '对话', style: { cssText: 'color: #fff; background-color:#6d81a4; border-radius: 4px; border:none; outline:none; padding: 4px 8px; cursor: pointer;' }, onclick: function () {
+                //这里有问题,这样获取不一定能获取用户数据,同时数据没有分离
+                var _friendel = U.Json.select(US.friend.friends, { UserId: data.UserId });
+                //如果未添加好友,则弹出添加好友框,否则直接弹出聊天窗口
+                if (_friendel.length == 0) {
+                    top.U.MD.U.V.ViewOtherUserInfo(data.UserId);
+                } else {
+                    _data = !_friendel.length ? U.Json.select(US.friend.recentcontacts, { UserId: data.UserId }) : _friendel;
+                    top.U.MD.F.W.popupFriendsForm(_data[0], this);
+                }
             }
-        }
         }, _btnel);
     }
-    $$('button', { innerText: '详细', style: { cssText: 'color: #fff; background-color:#6d81a4; border-radius: 4px; border:none; outline:none; padding: 4px 8px; margin-left: 4px;cursor: pointer;' },
+    $$('button', {
+        innerText: '详细', style: { cssText: 'color: #fff; background-color:#6d81a4; border-radius: 4px; border:none; outline:none; padding: 4px 8px; margin-left: 4px;cursor: pointer;' },
         onclick: function () {
             U.MD.O.W.Panel.EditHistory(data)
         }
@@ -640,7 +651,7 @@ U.MD.O.W.Panel.syncHistory = function (userid, historyid, isbool) {
             _data = U.MD.O.W.dataStructure(_fileinfo.UserDirectoryModifyTime, _userinfo.UserName, _userinfo.UserThumbnailImageHead, historyid, _userinfo);
         }
         var _el = U.MD.O.W.Panel.createHis(_data),  //创建历史记录
-        _addel = $('#U_MD_O_H_body_left_invite_history')[0]; //历史记录区域
+            _addel = $('#U_MD_O_H_body_left_invite_history')[0]; //历史记录区域
         $(_el).appendTo(_addel, 0, _addel.firstElementChild); //置顶插入
     }
 }
@@ -692,8 +703,8 @@ U.MD.O.W.Panel.AddDetailedHis = function (e, el, data) {
 */
 U.MD.O.W.Panel.EditHistoryc = function (UDE) {//此参数为历史记录的信息
     var _el = $$("div"),
-    // _UCT = new U.UF.UI.form("<div _el='U_MD_F_S_TI'>历史记录</div>",_el,{"className": "Bjlsall", "style": {"width": "950px", "height": "550px","overflow": "hidden"} },{isdrag: false,isenlarge: false, isnarrow: false }, null, null, null, _UDTD);
-    _UCT = new U.UF.UI.form("历史记录", _el, { className: 'Bjlsall', style: { width: "950px", height: "550px", overflow: "hidden"} }, { isdrag: false, isenlarge: false, isnarrow: false }, null, null, null);
+        // _UCT = new U.UF.UI.form("<div _el='U_MD_F_S_TI'>历史记录</div>",_el,{"className": "Bjlsall", "style": {"width": "950px", "height": "550px","overflow": "hidden"} },{isdrag: false,isenlarge: false, isnarrow: false }, null, null, null, _UDTD);
+        _UCT = new U.UF.UI.form("历史记录", _el, { className: 'Bjlsall', style: { width: "950px", height: "550px", overflow: "hidden" } }, { isdrag: false, isenlarge: false, isnarrow: false }, null, null, null);
 
     var i, _UDBD, _UDTD, _UDSD;
     for (var a = 0; a < UDE.length; a++) {//循环历史记录的长度 用来显示多个历史记录在"显示按钮"的打开的窗体上
@@ -704,16 +715,16 @@ U.MD.O.W.Panel.EditHistoryc = function (UDE) {//此参数为历史记录的信
             "innerHTML": "展开",
             "onclick": U.MD.O.W.Panel.btn
         },
-           _UDBD);
+            _UDBD);
         $$("div", { "className": "U_MD_O_H_body_btn_img1" }, _UDBB);
         $$("img",
-        {
-            "src": U.MD.C.getHeadImage(UDE[a].UserThumbnailImageHead),
-            "onerror": U.MD.C.imgError,
-            "alt": UDE[a].UserName,
-            "title": UDE[a].UserName
-        },
-           _UDTD);
+            {
+                "src": U.MD.C.getHeadImage(UDE[a].UserThumbnailImageHead),
+                "onerror": U.MD.C.imgError,
+                "alt": UDE[a].UserName,
+                "title": UDE[a].UserName
+            },
+            _UDTD);
         $$("div", { "innerHTML": (UDE[a].UserNickName) + " " + U.UF.D.getDateInterval(UDE[a].CreateTime) + " 更改了以下内容" }, _UDTD);
         $$("div", { "className": "U_MD_O_H_body_right_user_o_r_all_nr", "innerHTML": UDE[a].OfficeContent }, _UDTD);
     }
@@ -741,11 +752,11 @@ U.MD.O.W.Panel.OnDisplayD = function (r) {
     }
     divall = $$("div", { "className": "U_MD_O_H_body_right_user_o_r_all" }, r.context[1].parentNode.parentNode);
     $$("div",
-    {
-        "className": "U_MD_O_H_body_right_user_o_r_all_a",
-        "innerHTML": "显示全部",
-        "onclick": [U.MD.O.W.Panel.EditHistoryonc]
-    },
+        {
+            "className": "U_MD_O_H_body_right_user_o_r_all_a",
+            "innerHTML": "显示全部",
+            "onclick": [U.MD.O.W.Panel.EditHistoryonc]
+        },
         divall);
     U.MD.O.W.Panel.EditHistoryc(r.value);
 }
@@ -786,8 +797,8 @@ U.MD.O.W.Panel.btn = function () {//编辑历史记录底端的显示全部的
 *
 */
 U.MD.O.W.Panel.EditHistory = function (UDE) {//此参数为历史记录的信息
-    var _el = $$("div", { style: { cssText: "padding: 0 10px;"} }),
-        _UCT = new U.UF.UI.form("历史记录", _el, { id: "Bjls", style: { width: "680px", height: "550px", overflow: "hidden", 'box-shadow': 'rgb(180, 180, 180) 1px 1px 5px 2px', 'border-radius': '0', 'border': 'none'} }, { isdrag: false, isenlarge: false, isnarrow: false }, { style: { 'background-color': '#3c475b', 'padding': '4px'} });
+    var _el = $$("div", { style: { cssText: "padding: 0 10px;" } }),
+        _UCT = new U.UF.UI.form("历史记录", _el, { id: "Bjls", style: { width: "680px", height: "550px", overflow: "hidden", 'box-shadow': 'rgb(180, 180, 180) 1px 1px 5px 2px', 'border-radius': '0', 'border': 'none' } }, { isdrag: false, isenlarge: false, isnarrow: false }, { style: { 'background-color': '#3c475b', 'padding': '4px' } });
     if (UDE.OfficeContent == undefined) {
         U.A.Request(US.CD, [US.DB, "Usestudio_Office", "SelectHistoryDetails", UDE.HistoryId], function (r) {
             UDE.OfficeContent = r.value[0].OfficeContent.unEscapeQuotes().unEscapeQuotes();
@@ -813,8 +824,8 @@ U.MD.O.W.Panel.AsynEditHistory = function (docinfo, element) {
             "alt": docinfo.UserNickName || docinfo.UserName,
             "title": docinfo.UserNickName || docinfo.UserName
         },
-             _UDTD);
-    $$("div", { "innerHTML": (docinfo.UserNickName || docinfo.UserName) + " " + U.UF.D.getDateInterval(docinfo.CreateTime || new Date()) + " 更改了以下内容", style: { cssText: "display: inline-block; margin-left:10px"} }, _UDTD);
+        _UDTD);
+    $$("div", { "innerHTML": (docinfo.UserNickName || docinfo.UserName) + " " + U.UF.D.getDateInterval(docinfo.CreateTime || new Date()) + " 更改了以下内容", style: { cssText: "display: inline-block; margin-left:10px" } }, _UDTD);
     $$("div", { "className": "U_MD_O_H_body_right_user_o_r_nr", "innerHTML": docinfo.OfficeContent }, _UDTD);
 }