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 8bc9010e
authored
Mar 12, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
1 parent
05cee8b3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
200 additions
and
179 deletions
src/api/index.js
src/views/archi-asset-manage/index.vue
src/views/busi-assets-list/index.vue
src/views/current-assets-list/tab1.vue
src/views/current-assets-list/tab2.vue
src/views/current-assets-list/tab3.vue
src/views/current-assets-list/tab4.vue
src/views/current-assets-list/tab5.vue
src/views/etpManage/index.vue
src/views/report-template-relative-use/index.vue
src/views/total-archi-property-document/index.vue
src/views/typical-example-manage/index.vue
src/views/typical-example-relative-use/index.vue
src/api/index.js
View file @
8bc9010
...
@@ -262,7 +262,7 @@ export function getETPManageList(params) {
...
@@ -262,7 +262,7 @@ export function getETPManageList(params) {
}
}
// 新建专家人才库
// 新建专家人才库
export
function
getETPManageAdd
(
params
)
{
export
function
getETPManageAdd
(
params
)
{
return
post
(
'/kl-talent-pool/adKlTalent
Pool
'
,
params
);
return
post
(
'/kl-talent-pool/adKlTalent'
,
params
);
}
}
// 编辑专家人才库
// 编辑专家人才库
export
function
getETPManageUpdate
(
params
)
{
export
function
getETPManageUpdate
(
params
)
{
...
...
src/views/archi-asset-manage/index.vue
View file @
8bc9010
...
@@ -489,7 +489,6 @@
...
@@ -489,7 +489,6 @@
this
.
treeData
[
0
].
subList
=
res
.
data
;
this
.
treeData
[
0
].
subList
=
res
.
data
;
this
.
archiBelongId
=
res
.
data
[
0
].
viewId
;
this
.
archiBelongId
=
res
.
data
[
0
].
viewId
;
this
.
assetConstant
=
res
.
data
[
0
].
archiType
;
this
.
assetConstant
=
res
.
data
[
0
].
archiType
;
this
.
getZuJianLeiXingSelect
(
null
);
this
.
get_table
();
this
.
get_table
();
}
else
{
}
else
{
Message
({
Message
({
...
@@ -532,7 +531,6 @@
...
@@ -532,7 +531,6 @@
treeClick
(
data
)
{
//左侧树点击
treeClick
(
data
)
{
//左侧树点击
this
.
archiBelongId
=
data
.
viewId
;
this
.
archiBelongId
=
data
.
viewId
;
this
.
assetConstant
=
data
.
archiType
;
this
.
assetConstant
=
data
.
archiType
;
this
.
getZuJianLeiXingSelect
(
null
);
this
.
get_table
();
this
.
get_table
();
},
},
queryZuJianLeiXingSelect
(
data
)
{
//组件类型搜索
queryZuJianLeiXingSelect
(
data
)
{
//组件类型搜索
...
@@ -553,6 +551,9 @@
...
@@ -553,6 +551,9 @@
};
};
queryZiChanJiaGouZuJianLeiXing
(
params
).
then
(
res
=>
{
queryZiChanJiaGouZuJianLeiXing
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
'组件类型'
)
console
.
log
(
res
.
data
)
this
.
zuJianLeiXingSelect
=
res
.
data
;
this
.
zuJianLeiXingSelect
=
res
.
data
;
}
else
{
}
else
{
Message
({
Message
({
...
@@ -1072,6 +1073,7 @@
...
@@ -1072,6 +1073,7 @@
}
}
this
.
add_dialog3
=
true
;
this
.
add_dialog3
=
true
;
this
.
is_add_edit
=
'add'
;
this
.
is_add_edit
=
'add'
;
this
.
getZuJianLeiXingSelect
(
null
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
form
.
resetFields
();
this
.
$refs
.
form
.
resetFields
();
this
.
ruleForm
.
let1
=
null
;
this
.
ruleForm
.
let1
=
null
;
...
...
src/views/busi-assets-list/index.vue
View file @
8bc9010
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/create.png"
alt=
""
/>
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/create.png"
alt=
""
/>
<p>
新建
</p>
<p>
新建
</p>
</div>
-->
</div>
-->
<el-button
@
click=
"add"
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
新建
</el-button>
<el-button
@
click=
"add
Item
"
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
新建
</el-button>
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
@
click=
"moreDelete"
>
删除
</el-button>
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
@
click=
"moreDelete"
>
删除
</el-button>
<!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-plus"
>
导入
</el-button>
-->
<!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-plus"
>
导入
</el-button>
-->
<div
class=
"import_btn"
@
click=
"importFile"
>
<div
class=
"import_btn"
@
click=
"importFile"
>
...
@@ -528,10 +528,11 @@
...
@@ -528,10 +528,11 @@
this
.
selectLabel2
=
''
;
this
.
selectLabel2
=
''
;
});
});
},
},
add
()
{
//新建
add
Item
()
{
//新建
this
.
addDialog
=
true
;
this
.
addDialog
=
true
;
this
.
is_add_edit
=
'add'
;
this
.
is_add_edit
=
'add'
;
this
.
getShangJiJieDianSelect
();
// this.getShangJiJieDianSelect();
this
.
getZuJianLeiXingSelect
(
null
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
form
.
resetFields
();
this
.
$refs
.
form
.
resetFields
();
this
.
ruleForm
.
let1
=
null
;
this
.
ruleForm
.
let1
=
null
;
...
@@ -700,9 +701,9 @@
...
@@ -700,9 +701,9 @@
};
};
queryZiChanJiaGouZuJianLeiXing
(
params
).
then
(
res
=>
{
queryZiChanJiaGouZuJianLeiXing
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
//
console.log('组件类型')
console
.
log
(
'组件类型'
)
//
console.log(res.data)
console
.
log
(
res
.
data
)
this
.
zuJianLeiXingSelect
=
res
.
data
;
this
.
zuJianLeiXingSelect
=
res
.
data
;
}
else
{
}
else
{
Message
({
Message
({
...
@@ -890,7 +891,6 @@
...
@@ -890,7 +891,6 @@
this
.
archiBelongId
=
data
.
archiBelongId
;
this
.
archiBelongId
=
data
.
archiBelongId
;
this
.
assetConstant
=
data
.
assetConstant
;
this
.
assetConstant
=
data
.
assetConstant
;
// this.archiAssetTypeId = data.viewId;
// this.archiAssetTypeId = data.viewId;
this
.
getZuJianLeiXingSelect
(
null
);
this
.
get_table
();
this
.
get_table
();
},
},
getTreeData
()
{
//查询左侧树
getTreeData
()
{
//查询左侧树
...
@@ -976,7 +976,6 @@
...
@@ -976,7 +976,6 @@
this
.
assetConstant
=
res
.
data
[
0
].
assetConstant
;
this
.
assetConstant
=
res
.
data
[
0
].
assetConstant
;
// this.archiAssetTypeId = res.data[0].viewId;
// this.archiAssetTypeId = res.data[0].viewId;
this
.
getShangJiJieDianSelect
();
this
.
getShangJiJieDianSelect
();
this
.
getZuJianLeiXingSelect
(
null
);
this
.
getGuanLianZiChanSelectData
(
null
);
this
.
getGuanLianZiChanSelectData
(
null
);
this
.
get_table
();
this
.
get_table
();
...
...
src/views/current-assets-list/tab1.vue
View file @
8bc9010
...
@@ -229,4 +229,7 @@ export default {
...
@@ -229,4 +229,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
width
:
33%
;
width
:
33%
;
}
}
.btn_icon
{
margin-right
:
10px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/current-assets-list/tab2.vue
View file @
8bc9010
...
@@ -229,4 +229,7 @@ export default {
...
@@ -229,4 +229,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
width
:
33%
;
width
:
33%
;
}
}
.btn_icon
{
margin-right
:
10px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/current-assets-list/tab3.vue
View file @
8bc9010
...
@@ -230,4 +230,7 @@ export default {
...
@@ -230,4 +230,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
width
:
33%
;
width
:
33%
;
}
}
.btn_icon
{
margin-right
:
10px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/current-assets-list/tab4.vue
View file @
8bc9010
...
@@ -227,4 +227,7 @@ export default {
...
@@ -227,4 +227,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
width
:
33%
;
width
:
33%
;
}
}
.btn_icon
{
margin-right
:
10px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/current-assets-list/tab5.vue
View file @
8bc9010
...
@@ -227,4 +227,7 @@ export default {
...
@@ -227,4 +227,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
width
:
33%
;
width
:
33%
;
}
}
.btn_icon
{
margin-right
:
10px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/etpManage/index.vue
View file @
8bc9010
This diff is collapsed.
Click to expand it.
src/views/report-template-relative-use/index.vue
View file @
8bc9010
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
</div>
</div>
<div
class=
"search_menu_item"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
模版名称
</span>
<span
class=
"search_title"
>
模版名称
</span>
<el-select
clearable
v-model=
"searchParams.t
emp
Name"
placeholder=
"请选择"
style=
"width: 210px;"
>
<el-select
clearable
v-model=
"searchParams.t
pl
Name"
placeholder=
"请选择"
style=
"width: 210px;"
>
<el-option
v-for=
"item in moBanMingCheng"
:key=
"item.tplId"
:label=
"item.t
emp
Name"
:value=
"item.tplId"
></el-option>
<el-option
v-for=
"item in moBanMingCheng"
:key=
"item.tplId"
:label=
"item.t
pl
Name"
:value=
"item.tplId"
></el-option>
</el-select>
</el-select>
</div>
</div>
</div>
</div>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<el-table-column
prop=
"deptName"
label=
"单位"
align=
"center"
></el-table-column>
<el-table-column
prop=
"deptName"
label=
"单位"
align=
"center"
></el-table-column>
<el-table-column
prop=
"appName"
label=
"系统名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"appName"
label=
"系统名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"t
emp
Name"
label=
"模板名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"t
pl
Name"
label=
"模板名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
width=
"600"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"600"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"模板名称:"
prop=
"let4"
>
<el-form-item
label=
"模板名称:"
prop=
"let4"
>
<el-select
clearable
v-model=
"ruleForm.let4"
placeholder=
"请选择"
style=
"width: 200px;"
>
<el-select
clearable
v-model=
"ruleForm.let4"
placeholder=
"请选择"
style=
"width: 200px;"
>
<el-option
v-for=
"item in moBanMingCheng"
:key=
"item.tplId"
:label=
"item.t
emp
Name"
:value=
"item.tplId"
></el-option>
<el-option
v-for=
"item in moBanMingCheng"
:key=
"item.tplId"
:label=
"item.t
pl
Name"
:value=
"item.tplId"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -183,7 +183,7 @@ export default {
...
@@ -183,7 +183,7 @@ export default {
deptName
:
null
,
deptName
:
null
,
appName
:
null
,
appName
:
null
,
projectName
:
null
,
projectName
:
null
,
t
emp
Name
:
null
,
t
pl
Name
:
null
,
},
},
loading
:
false
,
loading
:
false
,
selectTable
:
[],
selectTable
:
[],
...
@@ -219,6 +219,7 @@ export default {
...
@@ -219,6 +219,7 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getMoBanMingCheng
({}).
then
(
res
=>
{
getMoBanMingCheng
({}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
.
data
)
resolve
(
res
.
data
);
resolve
(
res
.
data
);
}
}
})
})
...
@@ -238,7 +239,7 @@ export default {
...
@@ -238,7 +239,7 @@ export default {
"deptName"
:
this
.
searchParams
.
deptName
,
"deptName"
:
this
.
searchParams
.
deptName
,
"appName"
:
this
.
searchParams
.
appName
,
"appName"
:
this
.
searchParams
.
appName
,
"projectName"
:
this
.
searchParams
.
projectName
,
"projectName"
:
this
.
searchParams
.
projectName
,
"t
empName"
:
this
.
searchParams
.
temp
Name
,
"t
plName"
:
this
.
searchParams
.
tpl
Name
,
"current"
:
this
.
pager
.
current
,
"current"
:
this
.
pager
.
current
,
"pageSize"
:
this
.
pager
.
size
,
"pageSize"
:
this
.
pager
.
size
,
};
};
...
@@ -447,7 +448,7 @@ export default {
...
@@ -447,7 +448,7 @@ export default {
this
.
searchParams
.
deptName
=
null
;
this
.
searchParams
.
deptName
=
null
;
this
.
searchParams
.
appName
=
null
;
this
.
searchParams
.
appName
=
null
;
this
.
searchParams
.
projectName
=
null
;
this
.
searchParams
.
projectName
=
null
;
this
.
searchParams
.
t
emp
Name
=
null
;
this
.
searchParams
.
t
pl
Name
=
null
;
},
},
// 每页条数改变
// 每页条数改变
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
...
@@ -466,7 +467,7 @@ export default {
...
@@ -466,7 +467,7 @@ export default {
"deptName"
:
this
.
searchParams
.
deptName
,
"deptName"
:
this
.
searchParams
.
deptName
,
"appName"
:
this
.
searchParams
.
appName
,
"appName"
:
this
.
searchParams
.
appName
,
"projectName"
:
this
.
searchParams
.
projectName
,
"projectName"
:
this
.
searchParams
.
projectName
,
"t
empName"
:
this
.
searchParams
.
temp
Name
,
"t
plName"
:
this
.
searchParams
.
tpl
Name
,
"current"
:
this
.
pager
.
current
,
"current"
:
this
.
pager
.
current
,
"pageSize"
:
this
.
pager
.
size
,
"pageSize"
:
this
.
pager
.
size
,
};
};
...
...
src/views/total-archi-property-document/index.vue
View file @
8bc9010
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
文档名称
</span>
<span
class=
"search_title"
>
文档名称
</span>
<el-input
v-model=
"
p
arams.fileName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchP
arams.fileName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</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=
"
p
arams.fileType"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.fileType"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in selectData1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
</div>
</div>
<div
class=
"search_menu_btn_container"
>
<div
class=
"search_menu_btn_container"
>
<div
class=
"query_btn"
@
click=
"
getList
"
>
<div
class=
"query_btn"
@
click=
"
search_table
"
>
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/search.png"
alt=
""
/>
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/search.png"
alt=
""
/>
<p>
查询
</p>
<p>
查询
</p>
</div>
</div>
...
@@ -45,11 +45,7 @@
...
@@ -45,11 +45,7 @@
<!--
<el-table-column
type=
"selection"
width=
"55"
:selectable=
"selectable"
></el-table-column>
-->
<!--
<el-table-column
type=
"selection"
width=
"55"
:selectable=
"selectable"
></el-table-column>
-->
<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=
"fileName"
label=
"文档名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"fileName"
label=
"文档名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"fileType"
label=
"文档类型"
align=
"center"
>
<el-table-column
prop=
"fileType_"
label=
"文档类型"
align=
"center"
></el-table-column>
<template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
fileType
[
String
(
scope
.
row
.
fileType
)]
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"fileVersion"
label=
"文档版本"
align=
"center"
></el-table-column>
<el-table-column
prop=
"fileVersion"
label=
"文档版本"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"fileName"
label=
"附件"
align=
"center"
>
<el-table-column
prop=
"fileName"
label=
"附件"
align=
"center"
>
...
@@ -146,35 +142,8 @@ export default {
...
@@ -146,35 +142,8 @@ export default {
tableData
:
[],
tableData
:
[],
add_dialog
:
false
,
add_dialog
:
false
,
loading
:
false
,
loading
:
false
,
selectData1
:
[
selectData1
:
[],
{
searchParams
:
{
label
:
"元模型"
,
value
:
1
,
},
{
label
:
"业务架构"
,
value
:
2
,
},
{
label
:
"应用架构"
,
value
:
3
,
},
{
label
:
"数据架构"
,
value
:
4
,
},
{
label
:
"技术架构"
,
value
:
5
,
},
{
label
:
"安全架构"
,
value
:
6
,
},
],
params
:
{
current
:
1
,
pageSize
:
10
,
startTime
:
""
,
startTime
:
""
,
endTime
:
""
,
endTime
:
""
,
fileName
:
""
,
fileName
:
""
,
...
@@ -208,37 +177,55 @@ export default {
...
@@ -208,37 +177,55 @@ export default {
})
})
this
.
set_table_height
();
this
.
set_table_height
();
this
.
selectData1
.
forEach
(
item
=>
{
this
.
dicObj
.
fileType
[
item
.
value
]
=
item
.
label
;
});
// 初始化查询列表
// 初始化查询列表
this
.
getList
();
this
.
getList
();
// 获取元素列表
// 获取元素列表
this
.
getFileTypeSelect
();
this
.
getFileTypeSelect
().
then
(
res
=>
{
this
.
selectData1
=
res
;
});
},
},
methods
:
{
methods
:
{
search_table
()
{
//搜索
this
.
pager
.
current
=
1
;
this
.
getList
();
},
// 查询列表
// 查询列表
getList
()
{
getList
()
{
this
.
loading
=
true
;
if
(
this
.
searchDate
!=
null
&&
this
.
searchDate
.
length
==
2
)
{
if
(
this
.
searchDate
!=
null
&&
this
.
searchDate
.
length
==
2
)
{
this
.
p
arams
.
beginTime
=
this
.
searchDate
[
0
];
this
.
searchP
arams
.
beginTime
=
this
.
searchDate
[
0
];
this
.
p
arams
.
endTime
=
this
.
searchDate
[
1
];
this
.
searchP
arams
.
endTime
=
this
.
searchDate
[
1
];
}
else
{
}
else
{
this
.
p
arams
.
beginTime
=
""
;
this
.
searchP
arams
.
beginTime
=
""
;
this
.
p
arams
.
endTime
=
""
;
this
.
searchP
arams
.
endTime
=
""
;
}
}
getDocPoolList
(
this
.
params
).
then
(
res
=>
{
const
params
=
{
"beginTime"
:
this
.
searchParams
.
beginTime
,
"endTime"
:
this
.
searchParams
.
endTime
,
"fileName"
:
this
.
searchParams
.
fileName
,
"fileType"
:
this
.
searchParams
.
fileType
,
"current"
:
this
.
pager
.
current
,
"pageSize"
:
this
.
pager
.
size
,
};
getDocPoolList
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
loading
=
false
;
this
.
getFileTypeSelect
().
then
(
res2
=>
{
res
.
data
.
records
.
map
(
item
=>
{
let
result1
=
res2
.
find
(
item2
=>
item2
.
value
==
item
.
fileType
);
item
[
'fileType_'
]
=
result1
?
result1
.
label
:
''
;
});
this
.
pager
.
current
=
res
.
data
.
current
;
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
pager
.
size
=
res
.
data
.
size
;
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
=
res
.
data
.
records
;
});
}
}
});
});
},
},
// 重置
// 重置
reset
()
{
reset
()
{
this
.
params
=
{
this
.
searchParams
=
{
current
:
1
,
pageSize
:
10
,
beginTime
:
""
,
beginTime
:
""
,
endTime
:
""
,
endTime
:
""
,
fileName
:
""
,
fileName
:
""
,
...
@@ -348,7 +335,7 @@ export default {
...
@@ -348,7 +335,7 @@ export default {
},
},
// 导出
// 导出
exportFile
()
{
exportFile
()
{
getDocPoolExcel
(
this
.
p
arams
).
then
(
res
=>
{
getDocPoolExcel
(
this
.
searchP
arams
).
then
(
res
=>
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
});
let
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
});
let
url
=
URL
.
createObjectURL
(
blob
);
let
url
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
'a'
);
let
link
=
document
.
createElement
(
'a'
);
...
@@ -369,30 +356,28 @@ export default {
...
@@ -369,30 +356,28 @@ export default {
// console.log(fileList);
// console.log(fileList);
},
},
getFileTypeSelect
()
{
//
案例
类型下拉
getFileTypeSelect
()
{
//
文档
类型下拉
const
params
=
{
const
params
=
{
key
:
"kl_file_type"
key
:
"kl_file_type"
}
}
return
new
Promise
((
resolve
,
reject
)
=>
{
getDianXingAnLiSelectData
(
params
).
then
(
res
=>
{
getDianXingAnLiSelectData
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
selectData1
=
res
.
data
;
resolve
(
res
.
data
)
;
}
}
})
})
})
},
},
// 每页条数改变
// 每页条数改变
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
pager
.
current
=
1
;
this
.
pager
.
current
=
1
;
this
.
params
.
current
=
1
;
this
.
pager
.
size
=
val
;
this
.
pager
.
size
=
val
;
this
.
params
.
pageSize
=
val
;
this
.
getList
();
this
.
getList
();
},
},
//当前页码改变
//当前页码改变
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
pager
.
current
=
val
;
this
.
pager
.
current
=
val
;
this
.
params
.
current
=
val
;
this
.
getList
();
this
.
getList
();
},
},
...
...
src/views/typical-example-manage/index.vue
View file @
8bc9010
This diff is collapsed.
Click to expand it.
src/views/typical-example-relative-use/index.vue
View file @
8bc9010
...
@@ -5,23 +5,23 @@
...
@@ -5,23 +5,23 @@
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
案例名称
</span>
<span
class=
"search_title"
>
案例名称
</span>
<el-input
v-model=
"
params.tc
Name"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchParams.case
Name"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</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.tc
Type"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchParams.case
Type"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in selectData1"
:key=
"item.value"
: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=
"
p
arams.problemType"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.problemType"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData2"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in selectData2"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</div>
</div>
</div>
</div>
<div
class=
"search_menu_btn_container"
>
<div
class=
"search_menu_btn_container"
>
<div
class=
"query_btn"
@
click=
"
getList
"
>
<div
class=
"query_btn"
@
click=
"
search_table
"
>
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/search.png"
alt=
""
/>
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/search.png"
alt=
""
/>
<p>
查询
</p>
<p>
查询
</p>
</div>
</div>
...
@@ -38,29 +38,13 @@
...
@@ -38,29 +38,13 @@
<!--
<el-table-column
type=
"selection"
width=
"55"
:selectable=
"selectable"
></el-table-column>
-->
<!--
<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=
"selection"
width=
"55"
></el-table-column>
<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=
"tcName"
label=
"案例名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"caseName"
label=
"案例名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"tcType"
label=
"案例类型"
align=
"center"
>
<el-table-column
prop=
"caseType_"
label=
"案例类型"
align=
"center"
></el-table-column>
<template
slot-scope=
"scope"
>
<el-table-column
prop=
"projectType_"
label=
"项目类型"
align=
"center"
></el-table-column>
<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=
"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=
"archiDetail"
label=
"架构详情"
align=
"center"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"problemType"
label=
"问题类型"
align=
"center"
>
<el-table-column
prop=
"problemType_"
label=
"问题类型"
align=
"center"
></el-table-column>
<
template
slot-scope=
"scope"
>
<el-table-column
prop=
"problemLevel_"
label=
"问题等级"
align=
"center"
></el-table-column>
<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=
"problemContent"
label=
"问题描述"
align=
"center"
:show-overflow-tooltip=
"true"
></el-table-column>
<!--
<el-table-column
label=
"操作"
width=
"260"
align=
"center"
>
<!--
<el-table-column
label=
"操作"
width=
"260"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -107,71 +91,16 @@ export default {
...
@@ -107,71 +91,16 @@ export default {
add_dialog
:
false
,
add_dialog
:
false
,
loading
:
false
,
loading
:
false
,
selectTable
:
[],
selectTable
:
[],
selectData1
:
[
selectData1
:
[],
{
selectData2
:
[],
label
:
"移动应用典型案例"
,
selectData3
:
[],
value
:
1
,
selectData4
:
[],
},
searchParams
:
{
{
caseName
:
""
,
label
:
"数据模型典型案例"
,
caseType
:
""
,
value
:
2
,
},
{
label
:
"数据中台典型案例"
,
value
:
3
,
},
],
selectData2
:
[
{
label
:
"一致性"
,
value
:
1
,
},
{
label
:
"架构遵从"
,
value
:
2
,
},
{
label
:
"重复风险"
,
value
:
3
,
},
],
selectData3
:
[
{
label
:
"暂时未例举"
,
value
:
1
,
},
],
selectData4
:
[
{
label
:
"一级"
,
value
:
1
,
},
{
label
:
"二级"
,
value
:
2
,
},
{
label
:
"三级"
,
value
:
3
,
},
],
params
:
{
current
:
1
,
pageSize
:
10
,
tcName
:
""
,
tcType
:
""
,
problemType
:
""
,
problemType
:
""
,
},
},
dicObj
:
{
dicObj
:
{},
tcType
:
{
// 1: "在库",
// 2: "出库",
// 3: "出库",
},
prjType
:
{},
problemType
:
{},
problemLevel
:
{},
},
pager
:
{
pager
:
{
current
:
1
,
current
:
1
,
sizes
:
[
10
,
20
,
50
,
100
,
200
],
sizes
:
[
10
,
20
,
50
,
100
,
200
],
...
@@ -188,7 +117,7 @@ export default {
...
@@ -188,7 +117,7 @@ export default {
this
.
set_table_height
();
this
.
set_table_height
();
this
.
selectData1
.
forEach
(
item
=>
{
this
.
selectData1
.
forEach
(
item
=>
{
this
.
dicObj
.
tc
Type
[
item
.
value
]
=
item
.
label
;
this
.
dicObj
.
case
Type
[
item
.
value
]
=
item
.
label
;
});
});
this
.
selectData2
.
forEach
(
item
=>
{
this
.
selectData2
.
forEach
(
item
=>
{
this
.
dicObj
.
problemType
[
item
.
value
]
=
item
.
label
;
this
.
dicObj
.
problemType
[
item
.
value
]
=
item
.
label
;
...
@@ -204,26 +133,115 @@ export default {
...
@@ -204,26 +133,115 @@ export default {
this
.
getList
();
this
.
getList
();
// 获取元素列表
// 获取元素列表
// this.get_an_li_lei_xing_select();
this
.
get_an_li_lei_xing_select
().
then
(
res
=>
{
// this.get_wen_ti_lei_xing_select();
this
.
selectData1
=
res
;
});
this
.
get_wen_ti_lei_xing_select
().
then
(
res
=>
{
this
.
selectData2
=
res
;
});
this
.
get_xiang_mu_lei_xing_select
().
then
(
res
=>
{
this
.
selectData3
=
res
;
});
this
.
get_wen_ti_deng_ji_select
().
then
(
res
=>
{
this
.
selectData4
=
res
;
});
},
},
methods
:
{
methods
:
{
search_table
()
{
//搜索
this
.
pager
.
current
=
1
;
this
.
getList
();
},
get_an_li_lei_xing_select
()
{
//案例类型下拉
const
params
=
{
key
:
"kl_case_type"
}
return
new
Promise
((
resolve
,
reject
)
=>
{
getDianXingAnLiSelectData
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
resolve
(
res
.
data
);
}
})
})
},
get_wen_ti_lei_xing_select
()
{
//问题类型下拉
const
params
=
{
key
:
"kl_question_type"
}
return
new
Promise
((
resolve
,
reject
)
=>
{
getDianXingAnLiSelectData
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
resolve
(
res
.
data
);
}
})
})
},
get_xiang_mu_lei_xing_select
()
{
//项目类型下拉
const
params
=
{
key
:
"kl_project_type"
}
return
new
Promise
((
resolve
,
reject
)
=>
{
getDianXingAnLiSelectData
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
resolve
(
res
.
data
);
}
})
})
},
get_wen_ti_deng_ji_select
()
{
//问题等级下拉
const
params
=
{
key
:
"kl_question_level"
}
return
new
Promise
((
resolve
,
reject
)
=>
{
getDianXingAnLiSelectData
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
resolve
(
res
.
data
);
}
})
})
},
// 查询列表
// 查询列表
getList
()
{
getList
()
{
getTypicalExampleList
(
this
.
params
).
then
(
res
=>
{
this
.
loading
=
true
;
const
params
=
{
"caseName"
:
this
.
searchParams
.
caseName
,
"caseType"
:
this
.
searchParams
.
caseType
,
"problemType"
:
this
.
searchParams
.
problemType
,
"current"
:
this
.
pager
.
current
,
"pageSize"
:
this
.
pager
.
size
,
};
getTypicalExampleList
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
loading
=
false
;
Promise
.
all
([
this
.
get_an_li_lei_xing_select
(),
this
.
get_xiang_mu_lei_xing_select
(),
this
.
get_wen_ti_lei_xing_select
(),
this
.
get_wen_ti_deng_ji_select
()
]).
then
(
res2
=>
{
res
.
data
.
records
.
map
(
item
=>
{
let
result1
=
res2
[
0
].
find
(
item2
=>
item2
.
value
==
item
.
caseType
);
let
result2
=
res2
[
1
].
find
(
item2
=>
item2
.
value
==
item
.
projectType
);
let
result3
=
res2
[
2
].
find
(
item2
=>
item2
.
value
==
item
.
problemType
);
let
result4
=
res2
[
3
].
find
(
item2
=>
item2
.
value
==
item
.
problemLevel
);
item
[
'caseType_'
]
=
result1
?
result1
.
label
:
''
;
item
[
'projectType_'
]
=
result2
?
result2
.
label
:
''
;
item
[
'problemType_'
]
=
result2
?
result3
.
label
:
''
;
item
[
'problemLevel_'
]
=
result2
?
result4
.
label
:
''
;
});
this
.
pager
.
current
=
res
.
data
.
current
;
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
pager
.
size
=
res
.
data
.
size
;
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
=
res
.
data
.
records
;
})
}
}
});
});
},
},
// 重置
// 重置
reset
()
{
reset
()
{
this
.
params
=
{
this
.
searchParams
=
{
current
:
1
,
caseName
:
""
,
pageSize
:
10
,
caseType
:
""
,
tcName
:
""
,
tcType
:
""
,
problemType
:
""
,
problemType
:
""
,
}
}
},
},
...
@@ -316,8 +334,8 @@ export default {
...
@@ -316,8 +334,8 @@ export default {
// 新建清空表单
// 新建清空表单
resetForm
(){
resetForm
(){
this
.
formData
=
{
this
.
formData
=
{
tc
Name
:
''
,
case
Name
:
''
,
tc
Type
:
''
,
case
Type
:
''
,
prjType
:
''
,
prjType
:
''
,
buildContent
:
''
,
buildContent
:
''
,
problemType
:
''
,
problemType
:
''
,
...
@@ -327,7 +345,7 @@ export default {
...
@@ -327,7 +345,7 @@ export default {
}
}
},
},
exportFile
()
{
//导出
exportFile
()
{
//导出
getTypicalExampleExcel
(
this
.
p
arams
).
then
(
res
=>
{
getTypicalExampleExcel
(
this
.
searchP
arams
).
then
(
res
=>
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
});
let
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
});
let
url
=
URL
.
createObjectURL
(
blob
);
let
url
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
'a'
);
let
link
=
document
.
createElement
(
'a'
);
...
@@ -357,16 +375,12 @@ export default {
...
@@ -357,16 +375,12 @@ export default {
// 每页条数改变
// 每页条数改变
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
pager
.
current
=
1
;
this
.
pager
.
current
=
1
;
this
.
params
.
current
=
1
;
this
.
pager
.
size
=
val
;
this
.
pager
.
size
=
val
;
this
.
params
.
pageSize
=
val
;
this
.
getList
();
this
.
getList
();
},
},
//当前页码改变
//当前页码改变
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
pager
.
current
=
val
;
this
.
pager
.
current
=
val
;
this
.
params
.
current
=
val
;
this
.
getList
();
this
.
getList
();
},
},
}
}
...
...
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