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 73f7200b
authored
Dec 19, 2023
by
liuyong
Browse files
Options
Browse Files
Download
Plain Diff
修改页面
2 parents
658da14e
8a58e079
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
117 additions
and
159 deletions
src/api/index.js
src/views/etpManage/index.vue
src/views/total-archi-property-document/index.vue
src/views/typical-example-manage/index.vue
src/api/index.js
View file @
73f7200
...
@@ -197,6 +197,8 @@ export function get_BaoGaoMoBanJieGouHua_Table(params) {
...
@@ -197,6 +197,8 @@ export function get_BaoGaoMoBanJieGouHua_Table(params) {
export
function
get_BaoGaoMoBanGuanLianShiYong_Table
(
params
)
{
export
function
get_BaoGaoMoBanGuanLianShiYong_Table
(
params
)
{
return
post
(
'/kl-report-temp-link/'
,
params
);
return
post
(
'/kl-report-temp-link/'
,
params
);
}
}
// 专家人才库管理
// 专家人才库管理
// 列表查询
// 列表查询
export
function
getETPManageList
(
params
)
{
export
function
getETPManageList
(
params
)
{
...
@@ -214,3 +216,36 @@ export function getETPManageUpdate(params) {
...
@@ -214,3 +216,36 @@ export function getETPManageUpdate(params) {
export
function
getETPManageDel
(
params
)
{
export
function
getETPManageDel
(
params
)
{
return
post
(
'/kl-talent-pool/delete'
,
params
);
return
post
(
'/kl-talent-pool/delete'
,
params
);
}
}
// 典型案例库管理
// 列表查询
export
function
getTypicalExampleList
(
params
)
{
return
post
(
'/kl-typical-case/'
,
params
);
}
// 新建典型案例
export
function
getTypicalExampleAdd
(
params
)
{
return
post
(
'/kl-typical-case/cTypicalCase'
,
params
);
}
// 编辑典型案例
export
function
getTypicalExampleUpdate
(
params
)
{
return
post
(
'/kl-typical-case/uTypicalCase'
,
params
);
}
// 删除典型案例
export
function
getTypicalExampleDel
(
params
)
{
return
post
(
'/kl-typical-case/del'
,
params
);
}
// 典型案例导出
export
function
getTypicalExampleExcel
(
params
)
{
return
post
(
'/excel/etTc'
,
params
);
}
// 总体架构资产文档库
// 列表查询
export
function
getDocPoolList
(
params
)
{
return
post
(
'/kl-doc-pool/'
,
params
);
}
// 新建总体架构资产文档
export
function
getDocPoolAdd
(
params
)
{
return
post
(
'/kl-doc-pool/cDocPool'
,
params
);
}
\ No newline at end of file
src/views/etpManage/index.vue
View file @
73f7200
...
@@ -40,34 +40,34 @@
...
@@ -40,34 +40,34 @@
<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>
<div
class=
"version_btn"
@
click=
"operate('pushAll')"
>
<
!--
<
div
class=
"version_btn"
@
click=
"operate('pushAll')"
>
<
!--
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/version.png"
alt=
""
/>
--
>
<
img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/version.png"
alt=
""
/
>
<p>
删除
</p>
<p>
删除
</p>
</div>
</div>
<div
class=
"version_btn"
@
click=
"operate('pushAll')"
>
<div
class=
"version_btn"
@
click=
"operate('pushAll')"
>
<
!--
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/version.png"
alt=
""
/>
--
>
<
img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/version.png"
alt=
""
/
>
<p>
导入
</p>
<p>
导入
</p>
</div>
</div>
<div
class=
"version_btn"
@
click=
"operate('pushAll')"
>
<div
class=
"version_btn"
@
click=
"operate('pushAll')"
>
<
!--
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/version.png"
alt=
""
/>
--
>
<
img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/version.png"
alt=
""
/
>
<p>
导出
</p>
<p>
导出
</p>
</div>
</div>
-->
</div>
</div>
<el-table
:data=
"tableData"
stripe
border
@
selection-change=
"handleSelectionChange"
height=
"450"
>
<el-table
:data=
"tableData"
stripe
border
@
selection-change=
"handleSelectionChange"
height=
"450"
>
<el-table-column
type=
"selection"
width=
"55"
:selectable=
"selectInit"
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
:selectable=
"selectInit"
></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=
""
label=
"单位"
width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
deptName
"
label=
"单位"
width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
rsN
ame"
label=
"专家库名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
n
ame"
label=
"专家库名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
content
"
label=
"专家名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
talentName
"
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
prop=
"
content
"
label=
"专家级别"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
level
"
label=
"专家级别"
align=
"center"
></el-table-column>
<el-table-column
prop=
"co
ntent
"
label=
"专家评价"
align=
"center"
></el-table-column>
<el-table-column
prop=
"co
mments
"
label=
"专家评价"
align=
"center"
></el-table-column>
<el-table-column
prop=
"state"
label=
"专家状态"
width=
"150"
align=
"center"
>
<el-table-column
prop=
"state"
label=
"专家状态"
width=
"150"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
state
[
scope
.
row
.
state
]
}}
</span>
<span
>
{{
dicObj
.
state
[
scope
.
row
.
state
]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"
content
"
label=
"备注"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
remark
"
label=
"备注"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
width=
"200"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"200"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
...
@@ -172,6 +172,7 @@ import {
...
@@ -172,6 +172,7 @@ import {
getETPManageAdd
,
getETPManageAdd
,
getETPManageUpdate
,
getETPManageUpdate
,
getETPManageDel
,
getETPManageDel
,
getDianXingAnLiSelectData
,
}
from
"@/api/index.js"
;
}
from
"@/api/index.js"
;
import
$
from
'jquery'
;
import
$
from
'jquery'
;
...
@@ -219,33 +220,17 @@ export default {
...
@@ -219,33 +220,17 @@ export default {
},
},
dicObj
:
{
dicObj
:
{
state
:
{
state
:
{
0
:
"已停用"
,
1
:
"在库"
,
1
:
"已发布"
,
2
:
"出库"
,
2
:
"暂存"
,
},
},
scope
:
{
0
:
"架构之间"
,
1
:
"业务架构"
,
2
:
"应用架构"
,
3
:
"数据架构"
,
4
:
"技术架构"
,
5
:
"安全架构"
,
},
eleLtId
:
{
}
},
},
stateList
:
[
stateList
:
[
{
{
label
:
"
已发布
"
,
label
:
"
在库
"
,
value
:
1
,
value
:
1
,
},
},
{
{
label
:
"已停用"
,
label
:
"出库"
,
value
:
0
,
},
{
label
:
"暂存"
,
value
:
2
,
value
:
2
,
},
},
],
],
...
@@ -275,6 +260,24 @@ export default {
...
@@ -275,6 +260,24 @@ export default {
value
:
5
,
value
:
5
,
},
},
],
],
levelList
:
[
{
label
:
"策略层"
,
value
:
0
,
},
{
label
:
"管理层"
,
value
:
1
,
},
{
label
:
"设计层"
,
value
:
2
,
},
{
label
:
"实施层"
,
value
:
3
,
},
],
eleList
:
[],
eleList
:
[],
radioName
:
""
,
radioName
:
""
,
search_select1
:
[],
search_select1
:
[],
...
@@ -288,23 +291,19 @@ export default {
...
@@ -288,23 +291,19 @@ export default {
// 初始化查询列表
// 初始化查询列表
this
.
getList
();
this
.
getList
();
// 获取元素列表
// 获取元素列表
this
.
getYuansuList
();
this
.
get_dialog_select2
().
then
(
res
=>
{
this
.
search_select1
=
res
;
});
},
},
methods
:
{
methods
:
{
// 查询列表
// 查询列表
getList
()
{
getList
()
{
if
(
this
.
params
.
state
!=
''
)
{
getETPManageList
(
this
.
params
).
then
(
res
=>
{
this
.
params
.
state
=
Number
(
this
.
params
.
state
)
console
.
log
(
res
);
}
this
.
page
.
total
=
res
.
total
;
getJGYSGLlist
(
this
.
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
records
;
if
(
res
.
code
==
200
)
{
// if (res.code == 200) {
this
.
page
.
total
=
res
.
data
.
total
;
// this.page.total = res.data.total;
this
.
tableData
=
res
.
data
.
records
;
// this.tableData = res.data.records;
}
// console.log(this.tableData);
// }
});
});
},
},
// 获取元素列表
// 获取元素列表
...
@@ -389,80 +388,17 @@ export default {
...
@@ -389,80 +388,17 @@ export default {
}
}
});
});
}
}
}
else
if
(
type
==
"pushAdd"
)
{
this
.
formData
.
state
=
1
;
if
(
this
.
formData
.
eleRelaId
)
{
// 编辑发布
getJGYSGLUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
});
}
else
{
// 新建发布
getJGYSGLAdd
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
});
}
}
else
if
(
type
==
"pushEdit"
)
{
// 编辑发布
this
.
$confirm
(
"确认发布吗"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
formData
=
item
this
.
formData
.
state
=
1
;
getJGYSGLUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"发布成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
}
else
if
(
type
==
"stop"
)
{
// 停用
this
.
$confirm
(
"确认停用吗"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
formData
=
item
;
this
.
formData
.
state
=
0
;
getJGYSGLUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"停用成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
}
else
if
(
type
==
"del"
)
{
}
else
if
(
type
==
"del"
)
{
// 删除
// 删除
this
.
formData
=
item
;
this
.
formData
=
item
;
this
.
formData
.
delFlag
=
1
;
this
.
$confirm
(
"确认删除吗"
,
"提示"
,
{
this
.
$confirm
(
"确认删除吗"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
}).
then
(()
=>
{
}).
then
(()
=>
{
getJGYSGLDel
(
this
.
formData
).
then
(
res
=>
{
getETPManageUpdate
(
this
.
formData
).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
$message
.
success
(
"删除成功"
);
this
.
getList
();
this
.
getList
();
...
@@ -472,34 +408,6 @@ export default {
...
@@ -472,34 +408,6 @@ export default {
});
});
}).
catch
(()
=>
{
}).
catch
(()
=>
{
});
});
}
else
if
(
type
==
"pushAll"
)
{
if
(
this
.
selectList
.
length
<=
0
)
{
this
.
$message
.
error
(
"请选择一项进行发布"
);
return
;
}
let
params
=
{
eleRelaId
:
[],
state
:
2
};
this
.
selectList
.
map
(
item
=>
{
params
.
eleRelaId
.
push
(
item
.
eleRelaId
)
})
this
.
$confirm
(
"确认批量发布吗"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
getJGYSGLUpdateBatch
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"批量发布成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
}
}
},
},
// 新建清空表单
// 新建清空表单
...
...
src/views/total-archi-property-document/index.vue
View file @
73f7200
...
@@ -5,18 +5,18 @@
...
@@ -5,18 +5,18 @@
<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=
"
query_item3
"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
params.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=
"
query_item1
"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
params.fileType
"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in search_select1"
:key=
"item.belongId"
:label=
"item.name"
:value=
"item.belongId"
></el-option>
<el-option
v-for=
"item in search_select1"
:key=
"item.belongId"
:label=
"item.name"
:value=
"item.belongId"
></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-date-picker
<el-date-picker
v-model=
"
query_item4
"
v-model=
"
params.tcName
"
type=
"daterange"
type=
"daterange"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</div>
</div>
</div>
</div>
<div
class=
"search_menu_btn_container"
>
<div
class=
"search_menu_btn_container"
>
<div
class=
"query_btn"
@
click=
"get
_table
"
>
<div
class=
"query_btn"
@
click=
"get
List
"
>
<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>
...
@@ -42,17 +42,12 @@
...
@@ -42,17 +42,12 @@
<el-table
:height=
"tableHeight"
@
selection-change=
"select_table_rows"
v-loading=
"loading"
:data=
"tableData"
stripe
border
>
<el-table
:height=
"tableHeight"
@
selection-change=
"select_table_rows"
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"
: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=
"
element
Name"
label=
"文档名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
file
Name"
label=
"文档名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
archiLevelNam
e"
label=
"文档类型"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
fileTyp
e"
label=
"文档类型"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
archiBelongName
"
label=
"文档版本"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
fileVersion
"
label=
"文档版本"
align=
"center"
></el-table-column>
<el-table-column
prop=
"c
ontent
"
label=
"创建时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"c
reateTime
"
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>
</el-table>
<!--
<el-pagination
background
layout=
"prev, pager, next"
:total=
"50"
>
</el-pagination>
-->
<el-pagination
<el-pagination
background
background
@
size-change=
"handleSizeChange"
@
size-change=
"handleSizeChange"
...
@@ -118,7 +113,10 @@ import {
...
@@ -118,7 +113,10 @@ import {
delete_jia_gou_gui_shu
,
delete_jia_gou_gui_shu
,
add_jia_gou_yuan_su
,
add_jia_gou_yuan_su
,
version_release_jia_gou_gui_shu
,
version_release_jia_gou_gui_shu
,
edit_jia_gou_yuan_su
edit_jia_gou_yuan_su
,
getDocPoolList
,
getDocPoolAdd
,
}
from
'@/api/index.js'
;
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
$
from
'jquery'
;
import
$
from
'jquery'
;
...
@@ -145,6 +143,14 @@ export default {
...
@@ -145,6 +143,14 @@ export default {
loading
:
false
,
loading
:
false
,
selectTable
:
[],
selectTable
:
[],
search_select1
:
[],
search_select1
:
[],
params
:
{
current
:
1
,
pageSize
:
10
,
startTime
:
""
,
endTime
:
""
,
fileName
:
""
,
fileType
:
""
,
},
pager
:
{
pager
:
{
current
:
1
,
current
:
1
,
sizes
:
[
10
,
20
,
50
,
100
,
200
],
sizes
:
[
10
,
20
,
50
,
100
,
200
],
...
@@ -159,9 +165,20 @@ export default {
...
@@ -159,9 +165,20 @@ export default {
this
.
set_table_height
();
this
.
set_table_height
();
})
})
this
.
set_table_height
();
this
.
set_table_height
();
this
.
get_table
();
// 初始化查询列表
this
.
getList
();
},
},
methods
:
{
methods
:
{
// 查询列表
getList
()
{
getDocPoolList
(
this
.
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
tableData
=
res
.
data
.
records
;
}
});
},
set_table_height
()
{
//动态设置表格高度
set_table_height
()
{
//动态设置表格高度
const
table_container_height
=
$
(
".table_container"
).
height
();
const
table_container_height
=
$
(
".table_container"
).
height
();
const
search_menu_height
=
$
(
".search_menu"
).
height
();
const
search_menu_height
=
$
(
".search_menu"
).
height
();
...
@@ -191,15 +208,12 @@ export default {
...
@@ -191,15 +208,12 @@ export default {
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
pager
.
current
=
1
;
this
.
pager
.
current
=
1
;
this
.
pager
.
size
=
val
;
this
.
pager
.
size
=
val
;
this
.
get
_table
();
this
.
get
List
();
},
},
//当前页码改变
//当前页码改变
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
pager
.
current
=
val
;
this
.
pager
.
current
=
val
;
this
.
get_table
();
this
.
getList
();
},
get_table
()
{
//查询表格数据
},
},
}
}
}
}
...
...
src/views/typical-example-manage/index.vue
View file @
73f7200
This diff is collapsed.
Click to expand it.
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