diff --git a/test/oaassist/wps/js/common/common.js b/test/oaassist/wps/js/common/common.js
index 3c02027..e17855f 100644
--- a/test/oaassist/wps/js/common/common.js
+++ b/test/oaassist/wps/js/common/common.js
@@ -391,12 +391,14 @@ function StringToUint8Array(string) {
* @param {*} url 文件流的下载路径
* @param {*} callback 下载后的回调
*/
-function DownloadFile(url, callback) {
+function DownloadFile(url,fileName, callback) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
//需要业务系统的服务端在传递文件流时,确保请求中的参数有filename
- var fileName = pGetFileName(xhr, url)
+ // var fileName = pGetFileName(xhr, url)
+ // fileName = fileName
+ console.log(fileName);
//落地打开模式下,WPS会将文件下载到本地的临时目录,在关闭后会进行清理
var path = wps.Env.GetTempPath() + "/" + fileName
var reader = new FileReader();
diff --git a/test/oaassist/wps/js/common/func_docProcess.js b/test/oaassist/wps/js/common/func_docProcess.js
index 0e48574..7d33654 100644
--- a/test/oaassist/wps/js/common/func_docProcess.js
+++ b/test/oaassist/wps/js/common/func_docProcess.js
@@ -55,7 +55,7 @@ function NewFile(params) {
* @param {*} fileUrl 文件url路径
*/
function OpenFile(params) {
- var l_strFileUrl = params.fileName; //来自OA网页端的OA文件下载路径
+ var l_strFileUrl = params.filePath; //来自OA网页端的OA文件下载路径
var doc;
var l_IsOnlineDoc = false; //默认打开的是不落地文档
if (l_strFileUrl) {
@@ -86,7 +86,7 @@ function OpenFile(params) {
} else {
//如果当前没有打开文档,则另存为本地文件,再打开
if (l_strFileUrl.startWith("http")) { // 网络文档
- DownloadFile(l_strFileUrl, function(path) {
+ DownloadFile(l_strFileUrl,params.fileName, function(path) {
if (path == "") {
alert("从服务端下载路径:" + l_strFileUrl + "\n" + "获取文件下载失败!");
return null;
diff --git a/test/oaassist/wps/js/common/func_oastarter.js b/test/oaassist/wps/js/common/func_oastarter.js
index 1d7e2ab..b6ed76d 100644
--- a/test/oaassist/wps/js/common/func_oastarter.js
+++ b/test/oaassist/wps/js/common/func_oastarter.js
@@ -112,9 +112,13 @@ function OnlineEditDoc(OaParams) {
///打开来自OA端传递来的文档
function OpenDoc(OaParams) {
+ console.log(OaParams);
if (OaParams.fileName == "") {
+ console.log('zouzhe?');
NewFile(OaParams);
+
} else {
+ console.log('zouzhe111?');
//OA传来下载文件的URL地址,调用openFile 方法打开
OpenFile(OaParams);
}
diff --git a/test/oaassist/wps/publish.html b/test/oaassist/wps/publish.html
new file mode 100644
index 0000000..f2b88fa
--- /dev/null
+++ b/test/oaassist/wps/publish.html
@@ -0,0 +1,628 @@
+
+
+
+
+
+ WPS加载项配置
+
+
+
+
+
+
+
WPS加载项配置
+
+
+
加载项名称
+
类型
+
加载方式
+
URL
+
管理
+
状态
+
+
+
禁用所有 WPS 加载项
+
+
+
\ No newline at end of file
diff --git a/test/oaassist/wps/ribbon.xml b/test/oaassist/wps/ribbon.xml
index 469c784..8fda694 100644
--- a/test/oaassist/wps/ribbon.xml
+++ b/test/oaassist/wps/ribbon.xml
@@ -4,8 +4,8 @@
-
-
+
+
-
+
-
+
+
-
+
+
+
+
diff --git a/test/oaassist/wps/wps-addon-build/LICENSE b/test/oaassist/wps/wps-addon-build/LICENSE
new file mode 100644
index 0000000..c57b0e8
--- /dev/null
+++ b/test/oaassist/wps/wps-addon-build/LICENSE
@@ -0,0 +1,326 @@
+
+Copyright @ 2012-2019, Kingsoft office,All rights reserved.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+3. Neither the name of the copyright holder nor the names of its
+contributors may be used to endorse or promote products derived from this
+software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+
+
+
+
+
+
+************************************************************************************
+QRCode.js
+
+The MIT License (MIT)
+---------------------
+Copyright (c) 2012 davidshimjs
+
+Permission is hereby granted, free of charge,
+to any person obtaining a copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction,
+including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+************************************************************************************
+Vue.js
+
+The MIT License (MIT)
+
+Copyright (c) 2013-present, Yuxi (Evan) You
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+************************************************************************************
+bootstrap
+The MIT License (MIT)
+
+Copyright (c) 2011-2019 Twitter, Inc.
+Copyright (c) 2011-2019 The Bootstrap Authors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+************************************************************************************
+html5-formdata
+MIT License
+
+Copyright (c) 2010 François de Metz
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+The MIT License (MIT)
+
+************************************************************************************
+iview
+
+Copyright (c) 2016-present TalkingData
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+MIT LICENSE
+
+Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+The MIT License (MIT)
+
+Copyright (c) 2016 ElemeFE
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Koala
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+The MIT License (MIT)
+
+Copyright (c) 2016 vue-beauty
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+MIT License
+
+Copyright (c) 2016-present, Airyland
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+The MIT License (MIT)
+
+Copyright (c) 2016 Drifty (http://drifty.com/)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+The MIT License (MIT)
+
+Copyright (c) 2015 greyby
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+************************************************************************************
+jquery
+Copyright JS Foundation and other contributors, https://js.foundation/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+************************************************************************************
+zTree
+The MIT License (MIT)
+
+copyright (c) <2011> < hunter.z >
+
+使用该许可证的软件被授予以下权限,免费,任何人可以得到这个软件及其相关文档的一个拷贝,并且经营该软件不受任何限制,包括无限制的使用、复制、修改、合并、出版、发行、发放从属证书、或者出售该软件的拷贝的权利。同时允许获得这些软件的用户享受这些权利,使其服从下面的条件:
+
+以上的版权通知和权限通知应该包含在所有该软件的拷贝中或者是其他该软件的真实部分中。
+
+该软件按本来的样子提供,没有任何形式的担保,不管是明确地或者暗含的,包含这些但是不受商业性质的担保的限制。适合一个特定的用途并且不受侵犯。作者和版权持有人在任何场合对使用该软件涉及的任何要求、损害或者其他责任都不应负责。不管它是正在起作用还是只是合同形式、民事侵权或是其他方式,如由它引起,在其作用范围内、与该软件有联系、该软件的使用或者有这个软件引起的其他行为。
\ No newline at end of file
diff --git a/test/oaassist/wps/wps-addon-build/QRCode.html b/test/oaassist/wps/wps-addon-build/QRCode.html
new file mode 100644
index 0000000..0cd1bc1
--- /dev/null
+++ b/test/oaassist/wps/wps-addon-build/QRCode.html
@@ -0,0 +1,82 @@
+
+
+
+
+ 二维码生成
+
+
+
+
+
+
+
+
+
+
2+66
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/oaassist/wps/wps-addon-build/README.md b/test/oaassist/wps/wps-addon-build/README.md
new file mode 100644
index 0000000..ea52303
--- /dev/null
+++ b/test/oaassist/wps/wps-addon-build/README.md
@@ -0,0 +1,27 @@
+## Welcome to WPS OAAssist Demo
+
+### 这个项目是什么?
+
+这个工程为WPS文字项目常见的OA场景集成下的WPS加载项——OA助手,项目使用了丰富的WPS API的功能,可以帮助大家能够快速理解并熟悉WPS加载项机制以及和浏览器调用交互的流程。
+
+### 工程结构
+
+* icon 图标文件。
+* js WPS 加载项功能逻辑的js代码。
+* otherslib vue,jQueryd等第三方库。
+* template 示例模板文件。
+* importTemplate.html 导入模板页面。
+* index.html 加载项的默认加载页面。
+* qrcode.html 插入二维码页面。
+* redhead.html 插入红头页面。
+* selectBookmark.html 插入标签页面。
+* selectSeal.html 插入签章页面。
+* setUserName.html 修改默认用户名页面。
+* ribbon.xml 自定义选项卡配置。
+
+### 注意事项
+
+* 本工程只是演示demo
+* 我们建议您结合具体的应用场景修改示例代码,这样更能够体现OA助手集成的应用场景
+* 为了保护代码,建议对上线代码进行混淆
+* 使用该工程的时候,必须要安装WPS专业版,请咨询QQ:3253920855
diff --git a/test/oaassist/wps/wps-addon-build/icon/3.svg b/test/oaassist/wps/wps-addon-build/icon/3.svg
new file mode 100644
index 0000000..f779740
--- /dev/null
+++ b/test/oaassist/wps/wps-addon-build/icon/3.svg
@@ -0,0 +1,19 @@
+
+
+
diff --git a/test/oaassist/wps/wps-addon-build/icon/c_bookmark.png b/test/oaassist/wps/wps-addon-build/icon/c_bookmark.png
new file mode 100644
index 0000000..3a16822
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/c_bookmark.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/c_default.png b/test/oaassist/wps/wps-addon-build/icon/c_default.png
new file mode 100644
index 0000000..419eb16
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/c_default.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/c_printDoc.png b/test/oaassist/wps/wps-addon-build/icon/c_printDoc.png
new file mode 100644
index 0000000..6bcf18c
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/c_printDoc.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/c_seal.png b/test/oaassist/wps/wps-addon-build/icon/c_seal.png
new file mode 100644
index 0000000..77e7461
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/c_seal.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/newFromTemp.svg b/test/oaassist/wps/wps-addon-build/icon/newFromTemp.svg
new file mode 100644
index 0000000..f6c70b3
--- /dev/null
+++ b/test/oaassist/wps/wps-addon-build/icon/newFromTemp.svg
@@ -0,0 +1,22 @@
+
+
\ No newline at end of file
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_AcceptRev.png b/test/oaassist/wps/wps-addon-build/icon/w_AcceptRev.png
new file mode 100644
index 0000000..b059197
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_AcceptRev.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_BackDoc.png b/test/oaassist/wps/wps-addon-build/icon/w_BackDoc.png
new file mode 100644
index 0000000..9726a88
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_BackDoc.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_CloseRev.png b/test/oaassist/wps/wps-addon-build/icon/w_CloseRev.png
new file mode 100644
index 0000000..cc258e8
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_CloseRev.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_CloseRev1 (2).png b/test/oaassist/wps/wps-addon-build/icon/w_CloseRev1 (2).png
new file mode 100644
index 0000000..5ae70ce
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_CloseRev1 (2).png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_CloseRev3.png b/test/oaassist/wps/wps-addon-build/icon/w_CloseRev3.png
new file mode 100644
index 0000000..9d02983
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_CloseRev3.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_DeleteRev.png b/test/oaassist/wps/wps-addon-build/icon/w_DeleteRev.png
new file mode 100644
index 0000000..2ca61b5
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_DeleteRev.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_DocClear.png b/test/oaassist/wps/wps-addon-build/icon/w_DocClear.png
new file mode 100644
index 0000000..a21d6ed
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_DocClear.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_DocClound.png b/test/oaassist/wps/wps-addon-build/icon/w_DocClound.png
new file mode 100644
index 0000000..c322e15
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_DocClound.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_DocOFD.png b/test/oaassist/wps/wps-addon-build/icon/w_DocOFD.png
new file mode 100644
index 0000000..965f52b
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_DocOFD.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_DocQr.png b/test/oaassist/wps/wps-addon-build/icon/w_DocQr.png
new file mode 100644
index 0000000..d320a7c
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_DocQr.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_DocQr1.png b/test/oaassist/wps/wps-addon-build/icon/w_DocQr1.png
new file mode 100644
index 0000000..0ed2ed5
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_DocQr1.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_DocRevis.png b/test/oaassist/wps/wps-addon-build/icon/w_DocRevis.png
new file mode 100644
index 0000000..71b3fbe
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_DocRevis.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_DocUOF.png b/test/oaassist/wps/wps-addon-build/icon/w_DocUOF.png
new file mode 100644
index 0000000..61ffe9b
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_DocUOF.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_GovDoc.png b/test/oaassist/wps/wps-addon-build/icon/w_GovDoc.png
new file mode 100644
index 0000000..81fd96d
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_GovDoc.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_ImportDoc.png b/test/oaassist/wps/wps-addon-build/icon/w_ImportDoc.png
new file mode 100644
index 0000000..5f05768
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_ImportDoc.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_ImportDoc1.png b/test/oaassist/wps/wps-addon-build/icon/w_ImportDoc1.png
new file mode 100644
index 0000000..e2c270c
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_ImportDoc1.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_InsDate.png b/test/oaassist/wps/wps-addon-build/icon/w_InsDate.png
new file mode 100644
index 0000000..4ce7254
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_InsDate.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_InsPicture.png b/test/oaassist/wps/wps-addon-build/icon/w_InsPicture.png
new file mode 100644
index 0000000..7471c4a
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_InsPicture.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_InsPictures.png b/test/oaassist/wps/wps-addon-build/icon/w_InsPictures.png
new file mode 100644
index 0000000..9c031d9
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_InsPictures.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_OpenRev.png b/test/oaassist/wps/wps-addon-build/icon/w_OpenRev.png
new file mode 100644
index 0000000..375db8d
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_OpenRev.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_OpenRev2.png b/test/oaassist/wps/wps-addon-build/icon/w_OpenRev2.png
new file mode 100644
index 0000000..5aa6245
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_OpenRev2.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_PDF.png b/test/oaassist/wps/wps-addon-build/icon/w_PDF.png
new file mode 100644
index 0000000..7b8ea14
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_PDF.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_PageGear.png b/test/oaassist/wps/wps-addon-build/icon/w_PageGear.png
new file mode 100644
index 0000000..c8cf08d
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_PageGear.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_RejectRev.png b/test/oaassist/wps/wps-addon-build/icon/w_RejectRev.png
new file mode 100644
index 0000000..81a92a6
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_RejectRev.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_Save.png b/test/oaassist/wps/wps-addon-build/icon/w_Save.png
new file mode 100644
index 0000000..edcd53a
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_Save.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_SaveAs.png b/test/oaassist/wps/wps-addon-build/icon/w_SaveAs.png
new file mode 100644
index 0000000..a5fe456
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_SaveAs.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_Scanner16.png b/test/oaassist/wps/wps-addon-build/icon/w_Scanner16.png
new file mode 100644
index 0000000..e3b1bec
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_Scanner16.png differ
diff --git a/test/oaassist/wps/wps-addon-build/icon/w_WPSCloud.png b/test/oaassist/wps/wps-addon-build/icon/w_WPSCloud.png
new file mode 100644
index 0000000..b60e5a4
Binary files /dev/null and b/test/oaassist/wps/wps-addon-build/icon/w_WPSCloud.png differ
diff --git a/test/oaassist/wps/wps-addon-build/importTemplate.html b/test/oaassist/wps/wps-addon-build/importTemplate.html
new file mode 100644
index 0000000..0a67570
--- /dev/null
+++ b/test/oaassist/wps/wps-addon-build/importTemplate.html
@@ -0,0 +1,173 @@
+
+
+
+
+ 导入模板
+
+
+
+
+
+
+
+
+
a",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="