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 21e89caf
authored
Mar 15, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
1 parent
ca72b919
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
183 additions
and
49 deletions
src/api/index.js
src/views/Main/index.vue
src/views/reviewArchiFollowCheck/index.vue
src/views/reviewArchiFollowCheck/tab1.vue
src/views/reviewArchiFollowCheck/tab2.vue
src/views/reviewArchiFollowCheck/tab3.vue
src/views/reviewArchiFollowCheck/tab4.vue
src/views/reviewArchiFollowCheck/tab5.vue
src/api/index.js
View file @
21e89ca
...
@@ -580,3 +580,7 @@ export function getReviewArchiFollowCheckRightGraph(params) {
...
@@ -580,3 +580,7 @@ export function getReviewArchiFollowCheckRightGraph(params) {
export
function
saveReviewArchiFollowCheckRightSuggestion
(
params
)
{
export
function
saveReviewArchiFollowCheckRightSuggestion
(
params
)
{
return
post
(
'/network/app-archi-control-requirements/cComment'
,
params
);
return
post
(
'/network/app-archi-control-requirements/cComment'
,
params
);
}
}
// 概设架构遵从检查, 保存
export
function
queryReviewArchiFollowCheckRightSuggestionDetails
(
params
)
{
return
post
(
'/network/app-archi-control-requirements/qReview'
,
params
);
}
src/views/Main/index.vue
View file @
21e89ca
...
@@ -724,6 +724,7 @@ export default {
...
@@ -724,6 +724,7 @@ export default {
$
(
this
).
find
(
'.under_line'
).
css
(
'display'
,
'none'
)
$
(
this
).
find
(
'.under_line'
).
css
(
'display'
,
'none'
)
},
},
)
)
},
},
methods
:
{
methods
:
{
openDrawIO
()
{
openDrawIO
()
{
...
...
src/views/reviewArchiFollowCheck/index.vue
View file @
21e89ca
...
@@ -269,14 +269,14 @@ export default {
...
@@ -269,14 +269,14 @@ export default {
}
}
const
prjId
=
this
.
selectRows
[
0
].
prjId
;
const
prjId
=
this
.
selectRows
[
0
].
prjId
;
this
.
$router
.
push
(
this
.
$router
.
push
(
`/main/reviewArchiFollowCheckDetails?prjId=
${
prjId
}
&type=1`
,
`/main/reviewArchiFollowCheckDetails?prjId=
${
prjId
}
&type=1
&state=1
`
,
()
=>
{},
()
=>
{},
()
=>
{}
()
=>
{}
);
);
},
},
check
(
row
,
type
)
{
//查看点击
check
(
row
,
type
)
{
//查看点击
this
.
$router
.
push
(
this
.
$router
.
push
(
`/main/reviewArchiFollowCheckDetails?prjId=
${
row
.
prjId
}
&type=
${
type
}
`
,
`/main/reviewArchiFollowCheckDetails?prjId=
${
row
.
prjId
}
&type=
${
type
}
&state=2
`
,
()
=>
{},
()
=>
{},
()
=>
{}
()
=>
{}
);
);
...
...
src/views/reviewArchiFollowCheck/tab1.vue
View file @
21e89ca
...
@@ -11,10 +11,12 @@
...
@@ -11,10 +11,12 @@
<el-alert
title=
"评审内容"
type=
"success"
:closable=
"false"
></el-alert>
<el-alert
title=
"评审内容"
type=
"success"
:closable=
"false"
></el-alert>
<el-select
v-model=
"select2"
class=
"rightSelect"
@
change=
"select2Change"
>
<el-select
v-model=
"select2"
class=
"rightSelect"
@
change=
"select2Change"
>
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<el-option
label=
"
本项目-安全防护方案.pdf
"
value=
"1"
></el-option>
<el-option
label=
"
系统架构-概设阶段架构设计-安全架构视图
"
value=
"1"
></el-option>
</el-select>
</el-select>
<div
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<div
style=
"height: calc(100% - 40px);overflow-y: auto;"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
<div
style=
"display: inline-block;"
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -36,7 +38,8 @@
...
@@ -36,7 +38,8 @@
<
script
>
<
script
>
import
{
import
{
getReviewArchiFollowCheckRightGraph
,
getReviewArchiFollowCheckRightGraph
,
saveReviewArchiFollowCheckRightSuggestion
saveReviewArchiFollowCheckRightSuggestion
,
queryReviewArchiFollowCheckRightSuggestionDetails
}
from
'@/api/index.js'
;
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
export
default
{
export
default
{
...
@@ -48,8 +51,8 @@ export default {
...
@@ -48,8 +51,8 @@ export default {
return
{
return
{
radio
:
'1'
,
radio
:
'1'
,
textarea
:
''
,
textarea
:
''
,
select1
:
null
,
select1
:
'1'
,
select2
:
null
,
select2
:
'1'
,
rightImageArray
:
[],
rightImageArray
:
[],
rightImageSrc
:
null
,
rightImageSrc
:
null
,
prjId
:
null
,
prjId
:
null
,
...
@@ -59,9 +62,26 @@ export default {
...
@@ -59,9 +62,26 @@ export default {
mounted
(){
mounted
(){
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
getRightGraph
(
5
);
this
.
getRightGraph
(
5
);
const
state
=
this
.
$route
.
query
.
state
;
if
(
state
==
2
)
{
this
.
getDetails
();
}
},
},
methods
:
{
methods
:
{
getDetails
()
{
//查看详情,从表格跳转过来的
const
params
=
{
archiPrjReviewEnum
:
'SECURITY_ARCHITECTURE_CONFORMANCE'
,
prjId
:
this
.
prjId
,
}
queryReviewArchiFollowCheckRightSuggestionDetails
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
textarea
=
res
.
data
.
reviewSuggestion
;
}
})
},
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
const
params
=
{
const
params
=
{
archiBelongId
:
archiBelongId
,
archiBelongId
:
archiBelongId
,
...
@@ -76,7 +96,6 @@ export default {
...
@@ -76,7 +96,6 @@ export default {
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
})
})
this
.
rightImageArray
=
res
.
data
;
this
.
rightImageArray
=
res
.
data
;
console
.
log
(
this
.
rightImageArray
)
// this.rightSelect = res.data;
// this.rightSelect = res.data;
// this.select2 = res.data[0].viewDetailsId;
// this.select2 = res.data[0].viewDetailsId;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
...
@@ -97,7 +116,10 @@ export default {
...
@@ -97,7 +116,10 @@ export default {
}
}
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
.
code
)
Message
({
type
:
"success"
,
message
:
'保存成功'
,
});
}
else
{
}
else
{
Message
({
Message
({
type
:
"error"
,
type
:
"error"
,
...
@@ -121,11 +143,14 @@ export default {
...
@@ -121,11 +143,14 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.rightSelect
{
.rightSelect
{
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.el-button--primary
{
.el-button--primary
{
background
:
rgba
(
13
,
134
,
127
,
1
);
background
:
rgba
(
13
,
134
,
127
,
1
);
...
@@ -142,13 +167,13 @@ export default {
...
@@ -142,13 +167,13 @@ export default {
}
}
.left_container
{
.left_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
margin-right
:
1%
;
margin-right
:
1%
;
position
:
relative
;
position
:
relative
;
}
}
.right_container
{
.right_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
position
:
relative
;
position
:
relative
;
}
}
.rightImageContainer
{
.rightImageContainer
{
...
...
src/views/reviewArchiFollowCheck/tab2.vue
View file @
21e89ca
...
@@ -13,8 +13,10 @@
...
@@ -13,8 +13,10 @@
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<el-option
label=
"系统架构-系统架构视图设计-安全架构视图"
value=
"1"
></el-option>
<el-option
label=
"系统架构-系统架构视图设计-安全架构视图"
value=
"1"
></el-option>
</el-select>
</el-select>
<div
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<div
style=
"height: calc(100% - 40px);overflow-y: auto;"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
<div
style=
"display: inline-block;"
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -36,7 +38,8 @@
...
@@ -36,7 +38,8 @@
<
script
>
<
script
>
import
{
import
{
getReviewArchiFollowCheckRightGraph
,
getReviewArchiFollowCheckRightGraph
,
saveReviewArchiFollowCheckRightSuggestion
saveReviewArchiFollowCheckRightSuggestion
,
queryReviewArchiFollowCheckRightSuggestionDetails
}
from
'@/api/index.js'
;
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
export
default
{
export
default
{
...
@@ -48,8 +51,8 @@ export default {
...
@@ -48,8 +51,8 @@ export default {
return
{
return
{
radio
:
'1'
,
radio
:
'1'
,
textarea
:
''
,
textarea
:
''
,
select1
:
null
,
select1
:
'1'
,
select2
:
null
,
select2
:
'1'
,
rightImageArray
:
[],
rightImageArray
:
[],
rightImageSrc
:
null
,
rightImageSrc
:
null
,
prjId
:
null
,
prjId
:
null
,
...
@@ -60,8 +63,25 @@ export default {
...
@@ -60,8 +63,25 @@ export default {
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
getRightGraph
(
5
);
this
.
getRightGraph
(
5
);
const
state
=
this
.
$route
.
query
.
state
;
if
(
state
==
2
)
{
this
.
getDetails
();
}
},
},
methods
:
{
methods
:
{
getDetails
()
{
//查看详情,从表格跳转过来的
const
params
=
{
archiPrjReviewEnum
:
'SECURITY_ARCHITECTURE_CONFORMANCE'
,
prjId
:
this
.
prjId
,
}
queryReviewArchiFollowCheckRightSuggestionDetails
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
textarea
=
res
.
data
.
reviewSuggestion
;
}
})
},
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
const
params
=
{
const
params
=
{
archiBelongId
:
archiBelongId
,
archiBelongId
:
archiBelongId
,
...
@@ -76,7 +96,6 @@ export default {
...
@@ -76,7 +96,6 @@ export default {
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
})
})
this
.
rightImageArray
=
res
.
data
;
this
.
rightImageArray
=
res
.
data
;
console
.
log
(
this
.
rightImageArray
)
// this.rightSelect = res.data;
// this.rightSelect = res.data;
// this.select2 = res.data[0].viewDetailsId;
// this.select2 = res.data[0].viewDetailsId;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
...
@@ -97,7 +116,10 @@ export default {
...
@@ -97,7 +116,10 @@ export default {
}
}
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
.
code
)
Message
({
type
:
"success"
,
message
:
'保存成功'
,
});
}
else
{
}
else
{
Message
({
Message
({
type
:
"error"
,
type
:
"error"
,
...
@@ -121,11 +143,15 @@ export default {
...
@@ -121,11 +143,15 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.rightSelect
{
.rightSelect
{
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.el-button--primary
{
.el-button--primary
{
background
:
rgba
(
13
,
134
,
127
,
1
);
background
:
rgba
(
13
,
134
,
127
,
1
);
...
@@ -142,13 +168,13 @@ export default {
...
@@ -142,13 +168,13 @@ export default {
}
}
.left_container
{
.left_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
margin-right
:
1%
;
margin-right
:
1%
;
position
:
relative
;
position
:
relative
;
}
}
.right_container
{
.right_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
position
:
relative
;
position
:
relative
;
}
}
.rightImageContainer
{
.rightImageContainer
{
...
...
src/views/reviewArchiFollowCheck/tab3.vue
View file @
21e89ca
...
@@ -13,8 +13,10 @@
...
@@ -13,8 +13,10 @@
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<el-option
label=
"系统架构-概设阶段架构设计-技术架构视图"
value=
"1"
></el-option>
<el-option
label=
"系统架构-概设阶段架构设计-技术架构视图"
value=
"1"
></el-option>
</el-select>
</el-select>
<div
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<div
style=
"height: calc(100% - 40px);overflow-y: auto;"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
<div
style=
"display: inline-block;"
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -36,7 +38,8 @@
...
@@ -36,7 +38,8 @@
<
script
>
<
script
>
import
{
import
{
getReviewArchiFollowCheckRightGraph
,
getReviewArchiFollowCheckRightGraph
,
saveReviewArchiFollowCheckRightSuggestion
saveReviewArchiFollowCheckRightSuggestion
,
queryReviewArchiFollowCheckRightSuggestionDetails
}
from
'@/api/index.js'
;
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
export
default
{
export
default
{
...
@@ -48,8 +51,8 @@ export default {
...
@@ -48,8 +51,8 @@ export default {
return
{
return
{
radio
:
'1'
,
radio
:
'1'
,
textarea
:
''
,
textarea
:
''
,
select1
:
null
,
select1
:
'1'
,
select2
:
null
,
select2
:
'1'
,
rightImageArray
:
[],
rightImageArray
:
[],
rightImageSrc
:
null
,
rightImageSrc
:
null
,
prjId
:
null
,
prjId
:
null
,
...
@@ -60,8 +63,25 @@ export default {
...
@@ -60,8 +63,25 @@ export default {
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
getRightGraph
(
4
);
this
.
getRightGraph
(
4
);
const
state
=
this
.
$route
.
query
.
state
;
if
(
state
==
2
)
{
this
.
getDetails
();
}
},
},
methods
:
{
methods
:
{
getDetails
()
{
//查看详情,从表格跳转过来的
const
params
=
{
archiPrjReviewEnum
:
'SECURITY_ARCHITECTURE_CONFORMANCE'
,
prjId
:
this
.
prjId
,
}
queryReviewArchiFollowCheckRightSuggestionDetails
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
textarea
=
res
.
data
.
reviewSuggestion
;
}
})
},
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
const
params
=
{
const
params
=
{
archiBelongId
:
archiBelongId
,
archiBelongId
:
archiBelongId
,
...
@@ -76,7 +96,6 @@ export default {
...
@@ -76,7 +96,6 @@ export default {
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
})
})
this
.
rightImageArray
=
res
.
data
;
this
.
rightImageArray
=
res
.
data
;
console
.
log
(
this
.
rightImageArray
)
// this.rightSelect = res.data;
// this.rightSelect = res.data;
// this.select2 = res.data[0].viewDetailsId;
// this.select2 = res.data[0].viewDetailsId;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
...
@@ -97,7 +116,10 @@ export default {
...
@@ -97,7 +116,10 @@ export default {
}
}
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
.
code
)
Message
({
type
:
"success"
,
message
:
'保存成功'
,
});
}
else
{
}
else
{
Message
({
Message
({
type
:
"error"
,
type
:
"error"
,
...
@@ -121,11 +143,15 @@ export default {
...
@@ -121,11 +143,15 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.rightSelect
{
.rightSelect
{
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.el-button--primary
{
.el-button--primary
{
background
:
rgba
(
13
,
134
,
127
,
1
);
background
:
rgba
(
13
,
134
,
127
,
1
);
...
@@ -142,13 +168,13 @@ export default {
...
@@ -142,13 +168,13 @@ export default {
}
}
.left_container
{
.left_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
margin-right
:
1%
;
margin-right
:
1%
;
position
:
relative
;
position
:
relative
;
}
}
.right_container
{
.right_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
position
:
relative
;
position
:
relative
;
}
}
.rightImageContainer
{
.rightImageContainer
{
...
...
src/views/reviewArchiFollowCheck/tab4.vue
View file @
21e89ca
...
@@ -13,8 +13,10 @@
...
@@ -13,8 +13,10 @@
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<el-option
label=
"系统架构-概设阶段架构设计-应用架构视图"
value=
"1"
></el-option>
<el-option
label=
"系统架构-概设阶段架构设计-应用架构视图"
value=
"1"
></el-option>
</el-select>
</el-select>
<div
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<div
style=
"height: calc(100% - 40px);overflow-y: auto;"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
<div
style=
"display: inline-block;"
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -36,7 +38,8 @@
...
@@ -36,7 +38,8 @@
<
script
>
<
script
>
import
{
import
{
getReviewArchiFollowCheckRightGraph
,
getReviewArchiFollowCheckRightGraph
,
saveReviewArchiFollowCheckRightSuggestion
saveReviewArchiFollowCheckRightSuggestion
,
queryReviewArchiFollowCheckRightSuggestionDetails
}
from
'@/api/index.js'
;
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
export
default
{
export
default
{
...
@@ -48,8 +51,8 @@ export default {
...
@@ -48,8 +51,8 @@ export default {
return
{
return
{
radio
:
'1'
,
radio
:
'1'
,
textarea
:
''
,
textarea
:
''
,
select1
:
null
,
select1
:
'1'
,
select2
:
null
,
select2
:
'1'
,
rightImageArray
:
[],
rightImageArray
:
[],
rightImageSrc
:
null
,
rightImageSrc
:
null
,
prjId
:
null
,
prjId
:
null
,
...
@@ -60,8 +63,25 @@ export default {
...
@@ -60,8 +63,25 @@ export default {
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
getRightGraph
(
2
);
this
.
getRightGraph
(
2
);
const
state
=
this
.
$route
.
query
.
state
;
if
(
state
==
2
)
{
this
.
getDetails
();
}
},
},
methods
:
{
methods
:
{
getDetails
()
{
//查看详情,从表格跳转过来的
const
params
=
{
archiPrjReviewEnum
:
'SECURITY_ARCHITECTURE_CONFORMANCE'
,
prjId
:
this
.
prjId
,
}
queryReviewArchiFollowCheckRightSuggestionDetails
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
textarea
=
res
.
data
.
reviewSuggestion
;
}
})
},
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
const
params
=
{
const
params
=
{
archiBelongId
:
archiBelongId
,
archiBelongId
:
archiBelongId
,
...
@@ -76,7 +96,6 @@ export default {
...
@@ -76,7 +96,6 @@ export default {
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
})
})
this
.
rightImageArray
=
res
.
data
;
this
.
rightImageArray
=
res
.
data
;
console
.
log
(
this
.
rightImageArray
)
// this.rightSelect = res.data;
// this.rightSelect = res.data;
// this.select2 = res.data[0].viewDetailsId;
// this.select2 = res.data[0].viewDetailsId;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
...
@@ -97,7 +116,10 @@ export default {
...
@@ -97,7 +116,10 @@ export default {
}
}
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
.
code
)
Message
({
type
:
"success"
,
message
:
'保存成功'
,
});
}
else
{
}
else
{
Message
({
Message
({
type
:
"error"
,
type
:
"error"
,
...
@@ -121,11 +143,15 @@ export default {
...
@@ -121,11 +143,15 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.rightSelect
{
.rightSelect
{
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.el-button--primary
{
.el-button--primary
{
background
:
rgba
(
13
,
134
,
127
,
1
);
background
:
rgba
(
13
,
134
,
127
,
1
);
...
@@ -142,13 +168,13 @@ export default {
...
@@ -142,13 +168,13 @@ export default {
}
}
.left_container
{
.left_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
margin-right
:
1%
;
margin-right
:
1%
;
position
:
relative
;
position
:
relative
;
}
}
.right_container
{
.right_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
position
:
relative
;
position
:
relative
;
}
}
.rightImageContainer
{
.rightImageContainer
{
...
...
src/views/reviewArchiFollowCheck/tab5.vue
View file @
21e89ca
...
@@ -13,8 +13,10 @@
...
@@ -13,8 +13,10 @@
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<!--
<el-option
v-for=
"item in rightSelect"
:key=
"item.viewDetailsId"
:label=
"item.viewDetailName"
:value=
"item.viewDetailsId"
></el-option>
-->
<el-option
label=
"系统架构-概设阶段架构设计-数据架构视图"
value=
"1"
></el-option>
<el-option
label=
"系统架构-概设阶段架构设计-数据架构视图"
value=
"1"
></el-option>
</el-select>
</el-select>
<div
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<div
style=
"height: calc(100% - 40px);overflow-y: auto;"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
<div
style=
"display: inline-block;"
v-for=
"item in rightImageArray"
:key=
"item.viewDetailsId"
>
<img
:src=
"item.metaModelSvg"
alt=
""
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -36,7 +38,8 @@
...
@@ -36,7 +38,8 @@
<
script
>
<
script
>
import
{
import
{
getReviewArchiFollowCheckRightGraph
,
getReviewArchiFollowCheckRightGraph
,
saveReviewArchiFollowCheckRightSuggestion
saveReviewArchiFollowCheckRightSuggestion
,
queryReviewArchiFollowCheckRightSuggestionDetails
}
from
'@/api/index.js'
;
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
export
default
{
export
default
{
...
@@ -48,8 +51,8 @@ export default {
...
@@ -48,8 +51,8 @@ export default {
return
{
return
{
radio
:
'1'
,
radio
:
'1'
,
textarea
:
''
,
textarea
:
''
,
select1
:
null
,
select1
:
'1'
,
select2
:
null
,
select2
:
'1'
,
rightImageArray
:
[],
rightImageArray
:
[],
rightImageSrc
:
null
,
rightImageSrc
:
null
,
prjId
:
null
,
prjId
:
null
,
...
@@ -60,8 +63,25 @@ export default {
...
@@ -60,8 +63,25 @@ export default {
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
prjId
=
this
.
$route
.
query
.
prjId
;
this
.
getRightGraph
(
3
);
this
.
getRightGraph
(
3
);
const
state
=
this
.
$route
.
query
.
state
;
if
(
state
==
2
)
{
this
.
getDetails
();
}
},
},
methods
:
{
methods
:
{
getDetails
()
{
//查看详情,从表格跳转过来的
const
params
=
{
archiPrjReviewEnum
:
'SECURITY_ARCHITECTURE_CONFORMANCE'
,
prjId
:
this
.
prjId
,
}
queryReviewArchiFollowCheckRightSuggestionDetails
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
textarea
=
res
.
data
.
reviewSuggestion
;
}
})
},
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
getRightGraph
(
archiBelongId
)
{
//获取右侧图片
const
params
=
{
const
params
=
{
archiBelongId
:
archiBelongId
,
archiBelongId
:
archiBelongId
,
...
@@ -76,7 +96,6 @@ export default {
...
@@ -76,7 +96,6 @@ export default {
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
item
.
metaModelSvg
=
'data:image/svg+xml;base64,'
+
item
.
metaModelSvg
;
})
})
this
.
rightImageArray
=
res
.
data
;
this
.
rightImageArray
=
res
.
data
;
console
.
log
(
this
.
rightImageArray
)
// this.rightSelect = res.data;
// this.rightSelect = res.data;
// this.select2 = res.data[0].viewDetailsId;
// this.select2 = res.data[0].viewDetailsId;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
// this.rightImageSrc = 'data:image/svg+xml;base64,'+ res.data[0].metaModelSvg;
...
@@ -97,7 +116,10 @@ export default {
...
@@ -97,7 +116,10 @@ export default {
}
}
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
saveReviewArchiFollowCheckRightSuggestion
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
.
code
)
Message
({
type
:
"success"
,
message
:
'保存成功'
,
});
}
else
{
}
else
{
Message
({
Message
({
type
:
"error"
,
type
:
"error"
,
...
@@ -121,11 +143,15 @@ export default {
...
@@ -121,11 +143,15 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.rightSelect
{
.rightSelect
{
position
:
absolute
;
position
:
absolute
;
top
:
44px
;
top
:
44px
;
left
:
22px
;
left
:
22px
;
width
:
400px
;
}
}
.el-button--primary
{
.el-button--primary
{
background
:
rgba
(
13
,
134
,
127
,
1
);
background
:
rgba
(
13
,
134
,
127
,
1
);
...
@@ -142,13 +168,13 @@ export default {
...
@@ -142,13 +168,13 @@ export default {
}
}
.left_container
{
.left_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
margin-right
:
1%
;
margin-right
:
1%
;
position
:
relative
;
position
:
relative
;
}
}
.right_container
{
.right_container
{
width
:
49%
;
width
:
49%
;
border
:
1px
solid
red
;
border
:
1px
solid
#ccc
;
position
:
relative
;
position
:
relative
;
}
}
.rightImageContainer
{
.rightImageContainer
{
...
...
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