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 eb7d5888
authored
Apr 19, 2024
by
史敦盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
画布属性编辑,组织机构修改
1 parent
dc8a4353
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
24 deletions
public/drawio/extention/js/exFormat.js
public/drawio/extention/js/exGraph.js
src/views/organizationManagement/index.vue
public/drawio/extention/js/exFormat.js
View file @
eb7d588
This diff is collapsed.
Click to expand it.
public/drawio/extention/js/exGraph.js
View file @
eb7d588
...
...
@@ -74,8 +74,8 @@
if
(
res
.
cnName
)
{
attr_
.
push
(
{
n
ame
:
res
.
cnName
,
value
:
res
.
propertyValue
,
cnN
ame
:
res
.
cnName
,
value
_
:
res
.
propertyValue
,
id
:
res
.
propertyId
,
controlType
:
res
.
controlType
,
dataType
:
res
.
dataType
,
...
...
@@ -141,42 +141,54 @@
item
.
eleDtos
.
forEach
(
item2
=>
{
if
(
item2
.
assets
)
{
// && item2.dicys
let
fns
=
[];
let
attr_
=
[];
item2
.
dicys
&&
item2
.
dicys
.
forEach
(
res
=>
{
if
(
res
.
cnName
)
{
attr_
.
push
(
{
name
:
res
.
cnName
,
value
:
res
.
propertyValue
,
id
:
res
.
propertyId
,
controlType
:
res
.
controlType
,
}
)
}
})
//
let attr_ = [];
//
item2.dicys && item2.dicys.forEach(res => {
//
if(res.cnName) {
//
attr_.push(
//
{
//
name: res.cnName,
//
value: res.propertyValue,
//
id: res.propertyId,
//
controlType: res.controlType,
//
}
//
)
//
}
//
})
item2
.
assets
.
forEach
(
item3
=>
{
let
info__
=
[{
name
:
'资产名称'
,
value
:
item3
.
assetName
||
''
value
:
item3
.
assetName
||
''
,
element
:
'input'
},{
name
:
'资产编号'
,
value
:
item3
.
assetNumber
||
''
value
:
item3
.
assetNumber
||
''
,
element
:
'input'
},{
name
:
'所属元素'
,
value
:
item3
.
eleName
||
''
value
:
item3
.
archiEleId
||
''
,
element
:
'select'
},{
name
:
'上级元素'
,
value
:
item3
.
parentElement
||
''
value
:
item3
.
parentElement
&&
item3
.
parentElement
.
replace
(
/
\]
|
\[
|
\/?
]/g
,
''
).
replace
(
'null'
,
''
)
||
''
,
element
:
'select'
},{
name
:
'上级资产'
,
value
:
item3
.
parentAssetName
||
''
value
:
item3
.
parentAssetName
||
''
,
element
:
'tree'
}];
const
saveDataParams
=
{
assetId
:
item3
.
assetId
,
archiBelongId
:
item3
.
archiBelongId
,
state
:
item3
.
state
,
version
:
item3
.
version
,
archiAssetState
:
item3
.
archiAssetState
}
// console.log(item3.fieldsValue)
fns
.
push
(
this
.
createVertexTemplateEntry
(
// 'html=1;outlineConnect=0;whiteSpace=wrap;fillColor=#99ffff;shape=mxgraph.archimate3.application;appType=rightTopTriangle;archiType=rounded',
item3
.
iconName
+
(
item3
.
color
?
`;fillColor=
${
item3
.
color
}
;`
:
''
)
+
'attr='
+
JSON
.
stringify
(
attr_
)
+
';info__='
+
JSON
.
stringify
(
info__
)
+
';assetId='
+
item3
.
assetId
+
';archiBelongId='
+
item3
.
archiBelongId
+
';assetName=['
+
item3
.
assetName
+
'];eleName='
+
item2
.
eleName
+
';elementId='
+
item2
.
elementId
+
';eaLevel='
+
item2
.
eaLevel
+
';'
,
item3
.
iconName
+
(
item3
.
color
?
`;fillColor=
${
item3
.
color
}
;`
:
''
)
+
'attr='
+
(
item3
.
fieldsValue
&&
item3
.
fieldsValue
!=
'null'
?
item3
.
fieldsValue
:
'[]'
)
+
';info__='
+
JSON
.
stringify
(
info__
)
+
';assetName=['
+
item3
.
assetName
+
'];eleName='
+
item2
.
eleName
+
';elementId='
+
item2
.
elementId
+
';eaLevel='
+
item2
.
eaLevel
+
';'
+
'saveDataParams='
+
JSON
.
stringify
(
saveDataParams
)
+
';'
,
item2
.
shapeWidth
?
item2
.
shapeWidth
:
150
,
item2
.
shapeHeight
?
item2
.
shapeHeight
:
75
,
null
,
...
...
src/views/organizationManagement/index.vue
View file @
eb7d588
...
...
@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-04-16 15:09:52
* @LastEditors: pan
* @LastEditTime: 2024-04-1
6 19:33:58
* @LastEditTime: 2024-04-1
9 10:02:44
-->
<
template
>
<div
class=
"searchTable"
>
...
...
@@ -176,10 +176,10 @@ export default {
},
treeItemClick
(
data
)
{
console
.
log
(
'data'
,
data
)
if
(
!
data
.
children
)
{
//
if(!data.children) {
this
.
query
.
queryParam
.
parentOrgId
=
data
.
orgId
this
.
querySearch
()
}
//
}
},
fnTopOperation
(
type
)
{
switch
(
type
)
{
...
...
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