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 1f290b65
authored
Feb 02, 2024
by
xiehao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修复了已知问题
1 parent
d39c0456
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
src/views/metaModelDic/pages/page1.vue
src/views/metaModelDic/pages/page1.vue
View file @
1f290b6
...
...
@@ -38,7 +38,7 @@
<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>
<span>
{{
scope
.
row
.
archiLevelName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"archiBelongId"
label=
"架构归属"
width=
"150"
align=
"center"
>
...
...
@@ -378,13 +378,17 @@ export default {
getYMXZDGLlist
(
this
.
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
records
.
length
>
0
)
{
this
.
get_dialog_select2
().
then
(
res2
=>
{
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
=>
{
const
result
=
res2
.
find
(
item2
=>
item2
.
belongId
==
item
.
archiBelong
Id
);
item
[
'archiBelongName'
]
=
result
?
result
.
name
:
null
;
})
this
.
tableData
=
res
.
data
.
records
;
let
result1
=
res2
[
0
].
find
(
item2
=>
item2
.
levelId
==
item
.
archiLevel
Id
);
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
=
[];
...
...
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