Commit 9abd42a8 by liuyong

修改菜单

2 parents 2a98a133 b86e4e94
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"build": "vue-cli-service build" "build": "vue-cli-service build"
}, },
"dependencies": { "dependencies": {
"@onlyoffice/document-editor-vue": "^1.3.0",
"core-js": "^3.8.3", "core-js": "^3.8.3",
"element-ui": "^2.15.14", "element-ui": "^2.15.14",
"jquery": "^3.7.1", "jquery": "^3.7.1",
......
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
]; ];
// this.addPalette('archimate3Business', 'archimate 3.0 / Business', true, mxUtils.bind(this, function(content) // this.addPalette('archimate3Business', 'archimate 3.0 / Business', true, mxUtils.bind(this, function(content)
this.addPalette('archimate3Business', '架构 / 业务', true, mxUtils.bind(this, function(content) this.addPalette('archimate3Business', '架构 / 业务', false, mxUtils.bind(this, function(content)
{ {
for (var i = 0; i < fns.length; i++) for (var i = 0; i < fns.length; i++)
{ {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<!-- <script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script> --> <!-- <script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script> -->
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script> <script type="text/javascript" src="http://192.168.0.187:9999/web-apps/apps/api/documents/api.js"></script>
<style> <style>
html,body{ html,body{
height: 100%; height: 100%;
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<div class="office" @click="gotoOffice"> <div class="office" @click="gotoOffice">
编辑文档 编辑文档
</div> </div>
</div> </div>
</template> </template>
...@@ -13,43 +12,49 @@ ...@@ -13,43 +12,49 @@
export default { export default {
name: 'wenDangDemo', name: 'wenDangDemo',
components: { components: {
// ,
}, },
data() { data() {
return { return {
tableData: [ config: {
{ let1: '业务域', let2: '策略层', let3: '业务架构', let4: '业务域的基本描述', let5: '2023.10.31', let6: '已发布' }, "document": {
{ let1: '业务职能', let2: '策略层', let3: '业务架构', let4: '业务职能的描述', let5: '2023.10.31', let6: '已发布' }, "fileType": "docx",
{ let1: '应用交互', let2: '策略层', let3: '应用架构', let4: '应用交互的基本描述', let5: '2023.10.31', let6: '已发布' }, "key": "Khirz6zTPdfd7",
{ let1: '功能', let2: '策略层', let3: '应用架构', let4: '功能的描述', let5: '2023.09.17', let6: '暂存' }, "title": "new.docx",
{ let1: '业务域', let2: '策略层', let3: '业务架构', let4: '业务域的基本描述', let5: '2023.08.18', let6: '已停用' }, "url": "http://192.168.0.187:9999/example/editor?fileName=new.docx"
], },
add_dialog: false, "documentType": "word",
query_item1: null, "editorConfig": {
query_item2: null, "callbackUrl": "https://example.com/url-to-callback.ashx"
query_item3: null, },
query_item4: null, "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.LwimMJA3puF3ioGeS-tfczR3370GXBZMIL-bdpu4hOU",
},
}; };
}, },
methods: { methods: {
gotoOffice() { gotoOffice() {
let config = { let config = {
"document": { "document": {
"fileType": "docx", "fileType": "docx",
"key": "Khirz6zTPdfd7", "key": "Khirz6zTPdfd7",
"title": "Example Document Title.docx", "title": "new.docx",
"url": "https://example.com/url-to-example-document.docx" "url": "http://192.168.0.187:8081/example/editor?fileName=new.docx"
}, },
"documentType": "text", "documentType": "word",
"editorConfig": { "editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx" "callbackUrl": "https://example.com/url-to-callback.ashx"
} },
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.LwimMJA3puF3ioGeS-tfczR3370GXBZMIL-bdpu4hOU",
}; };
var docEditor = new DocsAPI.DocEditor("placeholder", config); var docEditor = new DocsAPI.DocEditor("placeholder", config);
}, },
handleSelect(key, keyPath) { onDocumentReady() {
} console.log("Document is loaded");
},
} }
} }
</script> </script>
...@@ -62,5 +67,6 @@ export default { ...@@ -62,5 +67,6 @@ export default {
.office{ .office{
color: black; color: black;
font-size: 20px; font-size: 20px;
cursor: pointer;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!