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 0fdb53a9
authored
Jan 11, 2024
by
Thews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20240111wangwansu
1 parent
33de6631
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
69 deletions
src/api/index.js
src/views/archi-asset-manage/index.vue
src/api/index.js
View file @
0fdb53a
...
...
@@ -333,4 +333,19 @@ export function addBaoGaoMoBanGuanLianShiYong(params) {
// 报告模版关联使用-模版名称
export
function
getMoBanMingCheng
(
params
)
{
return
post
(
'/kl-report-temp/gtKlReportTemp'
,
params
);
}
\ No newline at end of file
}
// 架构资产
// 获取列表
export
function
getArchiAssetManageList
(
params
)
{
return
post
(
'/network/arc-ast-bi/'
,
params
);
}
// 新增
export
function
getArchiAssetManageAdd
(
params
)
{
return
post
(
'/network/arc-ast-bi/ad'
,
params
);
}
// 修改
export
function
getArchiAssetManageUpdate
(
params
)
{
return
post
(
'/network/arc-ast-bi/upd'
,
params
);
}
src/views/archi-asset-manage/index.vue
View file @
0fdb53a
...
...
@@ -5,24 +5,12 @@
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
业务组件名称
</span>
<el-input
v-model=
"params.
tc
Name"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"params.
asset
Name"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
创建人
</span>
<el-input
v-model=
"params.
tcName
"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"params.
createMan
"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
<!--
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
案例类型
</span>
<el-select
v-model=
"params.tcType"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
问题类型
</span>
<el-select
v-model=
"params.problemType"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData2"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
-->
</div>
<div
class=
"search_menu_btn_container"
>
<div
class=
"query_btn"
@
click=
"getList"
>
...
...
@@ -41,37 +29,13 @@
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-plus"
@
click=
"exportFile"
>
导出
</el-button>
-->
</div>
<el-table
:height=
"tableHeight"
@
selection-change=
"handleSelectionChange"
v-loading=
"loading"
:data=
"tableData"
stripe
border
>
<!--
<el-table-column
type=
"selection"
width=
"55"
:selectable=
"selectable"
></el-table-column>
-->
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
align=
"center"
></el-table-column>
<el-table-column
prop=
"tcName"
label=
"业务组件名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"tcName"
label=
"业务组件类型"
align=
"center"
></el-table-column>
<el-table-column
prop=
"tcName"
label=
"上级业务组件"
align=
"center"
></el-table-column>
<el-table-column
prop=
"tcName"
label=
"创建人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"tcName"
label=
"创建时间"
align=
"center"
></el-table-column>
<!--
<el-table-column
prop=
"tcType"
label=
"案例类型"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
tcType
[
String
(
scope
.
row
.
tcType
)]
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"prjType"
label=
"项目类型"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
prjType
[
String
(
scope
.
row
.
prjType
)]
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"buildContent"
label=
"建设内容"
align=
"center"
></el-table-column>
<el-table-column
prop=
"archiDetail"
label=
"架构详情"
align=
"center"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"problemType"
label=
"问题类型"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
problemType
[
String
(
scope
.
row
.
problemType
)]
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"problemLevel"
label=
"问题等级"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
problemLevel
[
String
(
scope
.
row
.
problemLevel
)]
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"problemContent"
label=
"问题描述"
align=
"center"
:show-overflow-tooltip=
"true"
></el-table-column>
-->
<el-table-column
prop=
"assetName"
label=
"业务组件名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"assetType"
label=
"业务组件类型"
align=
"center"
></el-table-column>
<el-table-column
prop=
"parentAssetName"
label=
"上级业务组件"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createMan"
label=
"创建人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
width=
"260"
align=
"center"
>
<template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
...
...
@@ -148,6 +112,9 @@
<
script
>
import
{
getArchiAssetManageList
,
getArchiAssetManageAdd
,
getArchiAssetManageUpdate
,
getDianXingAnLiSelectData
,
getTypicalExampleList
,
getTypicalExampleAdd
,
...
...
@@ -221,9 +188,8 @@ export default {
params
:
{
current
:
1
,
pageSize
:
10
,
tcName
:
""
,
tcType
:
""
,
problemType
:
""
,
assetName
:
""
,
createMan
:
""
,
},
pager
:
{
current
:
1
,
...
...
@@ -260,33 +226,20 @@ export default {
})
this
.
set_table_height
();
this
.
selectData1
.
forEach
(
item
=>
{
this
.
dicObj
.
tcType
[
item
.
value
]
=
item
.
label
;
});
this
.
selectData2
.
forEach
(
item
=>
{
this
.
dicObj
.
problemType
[
item
.
value
]
=
item
.
label
;
});
this
.
selectData3
.
forEach
(
item
=>
{
this
.
dicObj
.
prjType
[
item
.
value
]
=
item
.
label
;
});
this
.
selectData4
.
forEach
(
item
=>
{
this
.
dicObj
.
problemLevel
[
item
.
value
]
=
item
.
label
;
});
// 初始化查询列表
this
.
getList
();
// 获取元素列表
this
.
get_an_li_lei_xing_select
();
this
.
get_wen_ti_lei_xing_select
();
this
.
get_xiang_mu_lei_xing_select
();
this
.
get_wen_ti_deng_ji_select
();
//
this.get_an_li_lei_xing_select();
//
this.get_wen_ti_lei_xing_select();
//
this.get_xiang_mu_lei_xing_select();
//
this.get_wen_ti_deng_ji_select();
},
methods
:
{
// 查询列表
getList
()
{
get
TypicalExampl
eList
(
this
.
params
).
then
(
res
=>
{
get
ArchiAssetManag
eList
(
this
.
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
tableData
=
res
.
data
.
records
;
...
...
@@ -298,9 +251,8 @@ export default {
this
.
params
=
{
current
:
1
,
pageSize
:
10
,
tcName
:
""
,
tcType
:
""
,
problemType
:
""
,
assetName
:
""
,
createMan
:
""
,
}
},
// 所有操作
...
...
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