1.0.5 • Published 5 years ago

yy-open-jinge v1.0.5

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

yy-open-jinge

A Vue.js project

-由于参数及接口局限性,目前只支持文库文件

此操作涉及打开其他浏览器打开文件,需要做单点登录验证才可查看编辑文件,以及参数较多,点击事件触发获取参数及配置参数跳转前建议做loding.

使用方法

    npm install yy-open-jinge
<template>
    <div @click="openMethods">点击打开</div>
</template>
<script>
//组件内部引入
// 实例
    import webOpenoffice from "yy-open-jinge"
    export default{
        methods:{
            openMethods(){
                //设置参数
                let params = {
                    fid:114750,
                    qzid:1,
                    userName:"lijian",
                    member_id:213123,
                    openUrl:"web.chaoke.com/jinge.html",
                    vid:123,
                    code:3123,
                    fileType:".doc",
                    hostType:"develop",
                    useFor:"esn",
                    docFileName:"文库文档",
                    isNewCreated:false,
                    showHistory:true,
                };
                //调用
                webOpenoffice(params);
            }
        }
    }
</script>

参数说明

    fid(必填) - 文档id 
    qzid(必填) - 圈子id   --vue项目store中可拿到
    userName(必填) - 当前操作文件者   --vue项目store中可拿到
    member_id(必填) - 当前操作人员id   --vue项目store中可拿到
    openUrl(必填) - 跳转页面(金格所要打开页面)
    vid(有版本id则必填) - 所要打开文本版本id  
    code(必填) - 跨浏览器登录所需code 接口地址(/user/userCode,所需参数{v:1.0}) 
    fileType(必填) - 文档类型  .doc  .xls (word、excel、wps、ppt、金山表格、visio等格式)
    hostType(必填) - 开发环境("develop":测试环境,"prerelease":预发布,"online":线上)
    useFor(必填) - 使用类型("esn"||"diwork") web_esn_new环境和diwork环境
    docFileName - 文档名 
    isNewCreated - 是否为新建(默认否) 
    showHistory - 是否显示历史版本(默认显示)  

跳转html格式

<!DOCTYPE html>
<html>
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago