Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9abd42a8
authored
Nov 30, 2023
by
liuyong
Browse files
Options
Browse Files
Download
Plain Diff
修改菜单
2 parents
2a98a133
b86e4e94
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
22 deletions
package-lock.json
package.json
public/drawio/js/diagramly/sidebar/Sidebar-ArchiMate4.js
public/index.html
src/views/wenDangDemo/index.vue
package-lock.json
View file @
9abd42a
This diff is collapsed.
Click to expand it.
package.json
View file @
9abd42a
...
@@ -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"
,
...
...
public/drawio/js/diagramly/sidebar/Sidebar-ArchiMate4.js
View file @
9abd42a
...
@@ -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'
,
'架构 / 业务'
,
tru
e
,
mxUtils
.
bind
(
this
,
function
(
content
)
this
.
addPalette
(
'archimate3Business'
,
'架构 / 业务'
,
fals
e
,
mxUtils
.
bind
(
this
,
function
(
content
)
{
{
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
for
(
var
i
=
0
;
i
<
fns
.
length
;
i
++
)
{
{
...
...
public/index.html
View file @
9abd42a
...
@@ -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=
"http
s://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%
;
...
...
src/views/wenDangDemo/index.vue
View file @
9abd42a
...
@@ -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"
:
"http
s://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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment