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 dc8a4353
authored
Apr 18, 2024
by
史敦盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
0c63842e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
public/drawio/extention/js/exFormat.js
public/drawio/js/grapheditor/Format.js
src/router/index.js
public/drawio/extention/js/exFormat.js
View file @
dc8a435
...
@@ -125,7 +125,7 @@ const initAttributePanel = function(that) {
...
@@ -125,7 +125,7 @@ const initAttributePanel = function(that) {
if
(
propertyList
.
length
>
0
)
{
if
(
propertyList
.
length
>
0
)
{
if
(
urlParams
.
page
===
'metaModelListDetails'
)
{
if
(
urlParams
.
page
===
'metaModelListDetails'
)
{
let
propertyTitleDom
=
document
.
createElement
(
'div'
);
let
propertyTitleDom
=
document
.
createElement
(
'div'
);
propertyTitleDom
.
style
.
cssText
=
'font-weight: bold;padding-left: 10px;padding-top: 10px;'
;
propertyTitleDom
.
style
.
cssText
=
'font-weight: bold;padding-left: 10px;padding-top: 10px;
margin-bottom: 10px;
'
;
propertyTitleDom
.
innerHTML
=
'属性信息'
;
propertyTitleDom
.
innerHTML
=
'属性信息'
;
that
.
container
.
appendChild
(
propertyTitleDom
);
that
.
container
.
appendChild
(
propertyTitleDom
);
...
@@ -136,7 +136,7 @@ const initAttributePanel = function(that) {
...
@@ -136,7 +136,7 @@ const initAttributePanel = function(that) {
for
(
var
i
=
0
;
i
<
propertyList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
propertyList
.
length
;
i
++
)
{
var
row
=
document
.
createElement
(
"tr"
);
var
row
=
document
.
createElement
(
"tr"
);
row
.
style
.
border
=
'1px solid black'
;
// 设置行边框
row
.
style
.
border
=
'1px solid black'
;
// 设置行边框
console
.
log
(
'propertyList[i]'
,
propertyList
[
i
])
//
console.log('propertyList[i]', propertyList[i])
// 创建表格单元格
// 创建表格单元格
for
(
var
j
=
0
;
j
<
tableColumn
.
length
;
j
++
)
{
for
(
var
j
=
0
;
j
<
tableColumn
.
length
;
j
++
)
{
var
cellT
=
document
.
createElement
(
"td"
);
var
cellT
=
document
.
createElement
(
"td"
);
...
...
public/drawio/js/grapheditor/Format.js
View file @
dc8a435
...
@@ -374,6 +374,13 @@ Format.prototype.immediateRefresh = function()
...
@@ -374,6 +374,13 @@ Format.prototype.immediateRefresh = function()
label3
.
style
.
backgroundColor
=
Format
.
inactiveTabBackgroundColor
;
label3
.
style
.
backgroundColor
=
Format
.
inactiveTabBackgroundColor
;
label4
.
style
.
backgroundColor
=
Format
.
inactiveTabBackgroundColor
;
//二次开发,自己写的属性面板
label4
.
style
.
backgroundColor
=
Format
.
inactiveTabBackgroundColor
;
//二次开发,自己写的属性面板
var
attributePanel
=
div
.
cloneNode
(
false
);
//二次开发,自己写的属性面板
attributePanel
.
style
.
display
=
'none'
;
//二次开发,自己写的属性面板
this
.
panels
.
push
(
new
AttributePanel
(
this
,
ui
,
attributePanel
));
this
.
container
.
appendChild
(
attributePanel
);
//二次开发,自己写的属性面板
mxUtils
.
write
(
label4
,
mxResources
.
get
(
'attribute'
));
//二次开发,自己写的属性面板
div
.
appendChild
(
label4
);
//二次开发,自己写的属性面板
addClickHandler
(
label4
,
attributePanel
,
idx
++
);
//二次开发,自己写的属性面板
// Style
// Style
if
(
containsLabel
)
if
(
containsLabel
)
{
{
...
@@ -392,7 +399,7 @@ Format.prototype.immediateRefresh = function()
...
@@ -392,7 +399,7 @@ Format.prototype.immediateRefresh = function()
addClickHandler
(
label
,
stylePanel
,
idx
++
);
addClickHandler
(
label
,
stylePanel
,
idx
++
);
}
}
// Text
// Text
mxUtils
.
write
(
label2
,
mxResources
.
get
(
'text'
));
//解释,点击具体图形时候的drawio自带的文本面板
mxUtils
.
write
(
label2
,
mxResources
.
get
(
'text'
));
//解释,点击具体图形时候的drawio自带的文本面板
div
.
appendChild
(
label2
);
div
.
appendChild
(
label2
);
...
@@ -412,12 +419,11 @@ Format.prototype.immediateRefresh = function()
...
@@ -412,12 +419,11 @@ Format.prototype.immediateRefresh = function()
this
.
container
.
appendChild
(
arrangePanel
);
this
.
container
.
appendChild
(
arrangePanel
);
mxUtils
.
write
(
label4
,
mxResources
.
get
(
'attribute'
));
//二次开发,自己写的属性面板
div
.
appendChild
(
label4
);
//二次开发,自己写的属性面板
// var attributePanel = div.cloneNode(false);//二次开发,自己写的属性面板
var
attributePanel
=
div
.
cloneNode
(
false
);
//二次开发,自己写的属性面板
// attributePanel.style.display = 'none';//二次开发,自己写的属性面板
attributePanel
.
style
.
display
=
'none'
;
//二次开发,自己写的属性面板
// this.panels.push(new AttributePanel(this, ui, attributePanel));
this
.
panels
.
push
(
new
AttributePanel
(
this
,
ui
,
attributePanel
));
// this.container.appendChild(attributePanel);//二次开发,自己写的属性面板
this
.
container
.
appendChild
(
attributePanel
);
//二次开发,自己写的属性面板
if
(
ss
.
cells
.
length
>
0
)
if
(
ss
.
cells
.
length
>
0
)
{
{
...
...
src/router/index.js
View file @
dc8a435
...
@@ -225,7 +225,8 @@ export const routes = [
...
@@ -225,7 +225,8 @@ export const routes = [
{
{
path
:
'/main/currentAssetsList'
,
//现状架构资产管理
path
:
'/main/currentAssetsList'
,
//现状架构资产管理
name
:
'currentAssetsList'
,
name
:
'currentAssetsList'
,
component
:
()
=>
import
(
'@/views/current-assets-list/index.vue'
),
// component: () => import('@/views/current-assets-list/index.vue'),
component
:
()
=>
import
(
'@/views/busi-assets-list/index.vue'
),
meta
:
{
meta
:
{
title
:
'现状架构资产管理'
,
title
:
'现状架构资产管理'
,
},
},
...
...
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