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 66615378
authored
Feb 02, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://47.97.176.204:19000/wangwansu/iact_jiagou_drowio
2 parents
9e19a3f6
1f290b65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
src/views/metaModelDic/pages/page1.vue
src/views/metaModelDic/pages/page1.vue
View file @
6661537
...
...
@@ -37,9 +37,9 @@
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
align=
"center"
></el-table-column>
<el-table-column
prop=
"elementName"
label=
"元素名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"archiLevelId"
label=
"架构层次"
width=
"150"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
archiLevelId
[
scope
.
row
.
archiLevelId
]
}}
</span>
</
template
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
archiLevelName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"archiBelongId"
label=
"架构归属"
width=
"150"
align=
"center"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -378,18 +378,22 @@ export default {
getYMXZDGLlist
(
this
.
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
records
.
length
>
0
)
{
this
.
get_dialog_select2
().
then
(
res2
=>
{
res
.
data
.
records
.
map
(
item
=>
{
const
result
=
res2
.
find
(
item2
=>
item2
.
belongId
==
item
.
archiBelongId
);
item
[
'archiBelongName'
]
=
result
?
result
.
name
:
null
;
})
this
.
tableData
=
res
.
data
.
records
;
});
Promise
.
all
([
this
.
get_dialog_select1
(),
this
.
get_dialog_select2
()
]).
then
(
res2
=>
{
this
.
dialog_select1
=
res2
[
0
];
this
.
search_select1
=
res2
[
1
];
res
.
data
.
records
.
map
(
item
=>
{
let
result1
=
res2
[
0
].
find
(
item2
=>
item2
.
levelId
==
item
.
archiLevelId
);
let
result2
=
res2
[
1
].
find
(
item2
=>
item2
.
belongId
==
item
.
archiBelongId
);
item
[
'archiLevelName'
]
=
result1
?
result1
.
name
:
''
;
item
[
'archiBelongName'
]
=
result2
?
result2
.
name
:
''
;
});
this
.
tableData
=
res
.
data
.
records
;
})
}
else
{
this
.
page
.
total
=
0
;
this
.
tableData
=
[];
}
}
});
},
...
...
@@ -408,7 +412,7 @@ export default {
handleSizeChange
(
val
)
{
this
.
page
.
current
=
1
;
this
.
params
.
current
=
1
;
this
.
page
.
size
=
val
;
this
.
params
.
pageSize
=
val
;
this
.
getList
();
...
...
@@ -552,7 +556,7 @@ export default {
}
});
});
},
get_dialog_select2
()
{
//查询架构归属下拉框值
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -887,4 +891,4 @@ export default {
background-color
:
#0D867F
;
color
:
#fff
;
}
</
style
>
\ No newline at end of file
</
style
>
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