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 0a897fd1
authored
Dec 26, 2023
by
liuyong
Browse files
Options
Browse Files
Download
Plain Diff
修改代码
2 parents
adb24b60
e9b2559e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
30 deletions
src/api/index.js
src/views/archiViewConfig/index.vue
src/views/metaModelDic/pages/page1.vue
src/views/metaModelDic/pages/page3.vue
src/api/index.js
View file @
0a897fd
...
@@ -195,11 +195,11 @@ export function getJiShuZhengCeJieGouHuaTable(params) {
...
@@ -195,11 +195,11 @@ export function getJiShuZhengCeJieGouHuaTable(params) {
}
}
// 技术政策结构化-新增
// 技术政策结构化-新增
export
function
addJiShuZhengCeJieGouHuaTable
(
params
)
{
export
function
addJiShuZhengCeJieGouHuaTable
(
params
)
{
return
post
(
'/kl-tech-policy/ad
KlTechPolicy
'
,
params
);
return
post
(
'/kl-tech-policy/ad
d
'
,
params
);
}
}
// 技术政策结构化-编辑,删除,启用,停用
// 技术政策结构化-编辑,删除,启用,停用
export
function
editJiShuZhengCeJieGouHuaTable
(
params
)
{
export
function
editJiShuZhengCeJieGouHuaTable
(
params
)
{
return
post
(
'/kl-tech-policy/upd
KlTechPolicy
'
,
params
);
return
post
(
'/kl-tech-policy/upd'
,
params
);
}
}
// 典型案例库管理-所有下拉值
// 典型案例库管理-所有下拉值
export
function
getDianXingAnLiSelectData
(
params
)
{
export
function
getDianXingAnLiSelectData
(
params
)
{
...
@@ -296,7 +296,7 @@ export function getDocPoolAdd(params) {
...
@@ -296,7 +296,7 @@ export function getDocPoolAdd(params) {
}
}
// 技术政策结构化,批量删除
// 技术政策结构化,批量删除
export
function
deleteAllJiShuZhengCeJieGouHua
(
params
)
{
export
function
deleteAllJiShuZhengCeJieGouHua
(
params
)
{
return
post
(
'/kl-tech-policy/upd
KlTechPolicyB
atch'
,
params
);
return
post
(
'/kl-tech-policy/upd
-b
atch'
,
params
);
}
}
// 报告模版结构化,批量删除
// 报告模版结构化,批量删除
export
function
deleteAllBaoGaoMoBanJieGouHua
(
params
)
{
export
function
deleteAllBaoGaoMoBanJieGouHua
(
params
)
{
...
...
src/views/archiViewConfig/index.vue
View file @
0a897fd
...
@@ -343,7 +343,7 @@ export default {
...
@@ -343,7 +343,7 @@ export default {
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
page
.
current
=
val
;
this
.
page
.
current
=
val
;
this
.
params
p
.
current
=
val
;
this
.
params
.
current
=
val
;
this
.
getList
();
this
.
getList
();
},
},
// 所有操作
// 所有操作
...
...
src/views/metaModelDic/pages/page1.vue
View file @
0a897fd
...
@@ -38,21 +38,24 @@
...
@@ -38,21 +38,24 @@
<el-table-column
prop=
"elementName"
label=
"元素名称"
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"
>
<el-table-column
prop=
"archiLevelId"
label=
"架构层次"
width=
"150"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
schemaLevel
[
scope
.
row
.
archiLevelId
]
}}
</span>
<span
>
{{
dicObj
.
archiLevelId
[
scope
.
row
.
archiLevelId
]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"archiBelongId"
label=
"架构归属"
width=
"150"
align=
"center"
>
<el-table-column
prop=
"archiBelongId"
label=
"架构归属"
width=
"150"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
schemaBelong
[
scope
.
row
.
archiBelongId
]
}}
</span>
<span
>
{{
dicObj
.
archiBelongId
[
scope
.
row
.
archiBelongId
]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <el-table-column prop="archiLevelName" label="架构层次" align="center"></el-table-column>
<el-table-column prop="archiBelongName" label="架构归属" align="center"></el-table-column> -->
<el-table-column
prop=
"content"
label=
"描述"
align=
"center"
></el-table-column>
<el-table-column
prop=
"content"
label=
"描述"
align=
"center"
></el-table-column>
<el-table-column
label=
"图标"
align=
"center"
>
<
!-- <
el-table-column label="图标" align="center">
<template>
<template>
<el-button type="text" style="color: #0D867F;">预览</el-button>
<el-button type="text" style="color: #0D867F;">预览</el-button>
</template>
</template>
</el-table-column> -->
<el-table-column
label=
"图标"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<img
:src=
"scope.row.icon"
alt=
""
style=
"width: 50%;"
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"version"
label=
"版本"
align=
"center"
></el-table-column>
<el-table-column
prop=
"version"
label=
"版本"
align=
"center"
></el-table-column>
<el-table-column
label=
"状态"
align=
"center"
>
<el-table-column
label=
"状态"
align=
"center"
>
...
@@ -282,13 +285,13 @@ export default {
...
@@ -282,13 +285,13 @@ export default {
1
:
"已发布"
,
1
:
"已发布"
,
2
:
"暂存"
,
2
:
"暂存"
,
},
},
schemaLevel
:
{
archiLevelId
:
{
0
:
"策略层"
,
0
:
"策略层"
,
1
:
"管理层"
,
1
:
"管理层"
,
2
:
"设计层"
,
2
:
"设计层"
,
3
:
"实施层"
,
3
:
"实施层"
,
},
},
schemaBelong
:
{
archiBelongId
:
{
3
:
"业务架构"
,
3
:
"业务架构"
,
4
:
"应用架构"
,
4
:
"应用架构"
,
5
:
"数据架构"
,
5
:
"数据架构"
,
...
...
src/views/metaModelDic/pages/page3.vue
View file @
0a897fd
...
@@ -11,13 +11,13 @@
...
@@ -11,13 +11,13 @@
</div>
</div>
<div
class=
"search_menu_item"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
架构层次
</span>
<span
class=
"search_title"
>
架构层次
</span>
<el-select
v-model=
"params.
schemaLevel
"
placeholder=
"请选择"
clearable
class=
"search_item"
>
<el-select
v-model=
"params.
archiLevelId
"
placeholder=
"请选择"
clearable
class=
"search_item"
>
<el-option
v-for=
"(item,idnex) in levelList"
:key=
"idnex"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"(item,idnex) in levelList"
:key=
"idnex"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
<div
class=
"search_menu_item"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
架构归属
</span>
<span
class=
"search_title"
>
架构归属
</span>
<el-select
v-model=
"params.
schemaBelong
"
placeholder=
"请选择"
clearable
class=
"search_item"
>
<el-select
v-model=
"params.
archiBelongId
"
placeholder=
"请选择"
clearable
class=
"search_item"
>
<el-option
v-for=
"(item,idnex) in belongList"
:key=
"idnex"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"(item,idnex) in belongList"
:key=
"idnex"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
...
@@ -38,14 +38,14 @@
...
@@ -38,14 +38,14 @@
<el-table
:data=
"tableData"
stripe
border
height=
"450"
>
<el-table
:data=
"tableData"
stripe
border
height=
"450"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
align=
"center"
></el-table-column>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
align=
"center"
></el-table-column>
<el-table-column
prop=
"viewName"
label=
"架构视图名称"
width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"viewName"
label=
"架构视图名称"
width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
schemaLevel
"
label=
"架构层次"
width=
"150"
align=
"center"
>
<el-table-column
prop=
"
archiLevelId
"
label=
"架构层次"
width=
"150"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
schemaLevel
[
scope
.
row
.
schemaLevel
]
}}
</span>
<span
>
{{
dicObj
.
archiLevelId
[
scope
.
row
.
archiLevelId
]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"
schemaBelong
"
label=
"架构归属"
width=
"150"
align=
"center"
>
<el-table-column
prop=
"
archiBelongId
"
label=
"架构归属"
width=
"150"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
schemaBelong
[
scope
.
row
.
schemaBelong
]
}}
</span>
<span
>
{{
dicObj
.
archiBelongId
[
scope
.
row
.
archiBelongId
]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"content"
label=
"视图描述"
width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"content"
label=
"视图描述"
width=
"150"
align=
"center"
></el-table-column>
...
@@ -96,13 +96,13 @@
...
@@ -96,13 +96,13 @@
</div>
</div>
<div
class=
"dialog_form_item"
>
<div
class=
"dialog_form_item"
>
<div
class=
"dialog_form_item_title"
>
架构层次
</div>
<div
class=
"dialog_form_item_title"
>
架构层次
</div>
<el-select
v-model=
"formData.
schemaLevel
"
placeholder=
""
:disabled=
"true"
class=
"search_item"
>
<el-select
v-model=
"formData.
archiLevelId
"
placeholder=
""
:disabled=
"true"
class=
"search_item"
>
<el-option
v-for=
"(item,idnex) in levelList"
:key=
"idnex"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"(item,idnex) in levelList"
:key=
"idnex"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
<div
class=
"dialog_form_item"
>
<div
class=
"dialog_form_item"
>
<div
class=
"dialog_form_item_title"
>
架构归属
</div>
<div
class=
"dialog_form_item_title"
>
架构归属
</div>
<el-select
v-model=
"formData.
schemaBelong
"
placeholder=
""
:disabled=
"true"
class=
"search_item"
>
<el-select
v-model=
"formData.
archiBelongId
"
placeholder=
""
:disabled=
"true"
class=
"search_item"
>
<el-option
v-for=
"(item,idnex) in belongList"
:key=
"idnex"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"(item,idnex) in belongList"
:key=
"idnex"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
...
@@ -250,8 +250,8 @@ export default {
...
@@ -250,8 +250,8 @@ export default {
let3
:
''
,
let3
:
''
,
let4
:
''
,
let4
:
''
,
formData
:
{
formData
:
{
schemaLevel
:
""
,
archiLevelId
:
""
,
schemaBelong
:
""
,
archiBelongId
:
""
,
viewName
:
""
,
viewName
:
""
,
content
:
""
,
content
:
""
,
},
},
...
@@ -266,8 +266,8 @@ export default {
...
@@ -266,8 +266,8 @@ export default {
current
:
1
,
current
:
1
,
pageSize
:
10
,
pageSize
:
10
,
viewName
:
""
,
viewName
:
""
,
schemaLevel
:
""
,
archiLevelId
:
""
,
schemaBelong
:
""
,
archiBelongId
:
""
,
type
:
3
,
type
:
3
,
},
},
page
:
{
page
:
{
...
@@ -282,13 +282,13 @@ export default {
...
@@ -282,13 +282,13 @@ export default {
1
:
"已发布"
,
1
:
"已发布"
,
2
:
"暂存"
,
2
:
"暂存"
,
},
},
schemaLevel
:
{
archiLevelId
:
{
0
:
"策略层"
,
0
:
"策略层"
,
1
:
"管理层"
,
1
:
"管理层"
,
2
:
"设计层"
,
2
:
"设计层"
,
3
:
"实施层"
,
3
:
"实施层"
,
},
},
schemaBelong
:
{
archiBelongId
:
{
0
:
"业务架构"
,
0
:
"业务架构"
,
1
:
"应用架构"
,
1
:
"应用架构"
,
2
:
"数据架构"
,
2
:
"数据架构"
,
...
@@ -400,7 +400,7 @@ export default {
...
@@ -400,7 +400,7 @@ export default {
getViewNameList
().
then
(
res
=>
{
getViewNameList
().
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
let
arr
=
JSON
.
parse
(
res
.
msg
);
let
arr
=
JSON
.
parse
(
res
.
msg
);
let
viewStr
=
arr
[
0
].
viewName
;
let
viewStr
=
arr
&&
arr
[
0
]?
arr
[
0
].
viewName
:
''
;
this
.
viewNameList
=
viewStr
.
split
(
","
);
this
.
viewNameList
=
viewStr
.
split
(
","
);
}
}
});
});
...
@@ -411,8 +411,8 @@ export default {
...
@@ -411,8 +411,8 @@ export default {
current
:
1
,
current
:
1
,
pageSize
:
10
,
pageSize
:
10
,
viewName
:
""
,
viewName
:
""
,
schemaLevel
:
""
,
archiLevelId
:
""
,
schemaBelong
:
""
,
archiBelongId
:
""
,
type
:
3
,
type
:
3
,
}
}
},
},
...
@@ -524,8 +524,8 @@ export default {
...
@@ -524,8 +524,8 @@ export default {
// 新建清空表单
// 新建清空表单
resetForm
(){
resetForm
(){
this
.
formData
=
{
this
.
formData
=
{
schemaLevel
:
""
,
archiLevelId
:
""
,
schemaBelong
:
""
,
archiBelongId
:
""
,
viewName
:
""
,
viewName
:
""
,
content
:
""
,
content
:
""
,
}
}
...
...
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