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 8a58e079
authored
Dec 18, 2023
by
wangwansu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20231218wangwansu
1 parent
69b1c6a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
25 deletions
src/api/index.js
src/views/total-archi-property-document/index.vue
src/views/typical-example-manage/index.vue
src/api/index.js
View file @
8a58e07
...
...
@@ -238,4 +238,14 @@ export function getTypicalExampleDel(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/total-archi-property-document/index.vue
View file @
8a58e07
...
...
@@ -5,18 +5,18 @@
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item"
>
<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
class=
"search_menu_item"
>
<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-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
创建时间
</span>
<el-date-picker
v-model=
"
query_item4
"
v-model=
"
params.tcName
"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
...
...
@@ -25,7 +25,7 @@
</div>
</div>
<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=
""
/>
<p>
查询
</p>
</div>
...
...
@@ -42,17 +42,12 @@
<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=
"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=
"
archiLevelNam
e"
label=
"文档类型"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
archiBelongName
"
label=
"文档版本"
align=
"center"
></el-table-column>
<el-table-column
prop=
"c
ontent
"
label=
"创建时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
file
Name"
label=
"文档名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
fileTyp
e"
label=
"文档类型"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
fileVersion
"
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>
<!--
<el-pagination
background
layout=
"prev, pager, next"
:total=
"50"
>
</el-pagination>
-->
<el-pagination
background
@
size-change=
"handleSizeChange"
...
...
@@ -118,7 +113,10 @@ import {
delete_jia_gou_gui_shu
,
add_jia_gou_yuan_su
,
version_release_jia_gou_gui_shu
,
edit_jia_gou_yuan_su
edit_jia_gou_yuan_su
,
getDocPoolList
,
getDocPoolAdd
,
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
$
from
'jquery'
;
...
...
@@ -145,6 +143,14 @@ export default {
loading
:
false
,
selectTable
:
[],
search_select1
:
[],
params
:
{
current
:
1
,
pageSize
:
10
,
startTime
:
""
,
endTime
:
""
,
fileName
:
""
,
fileType
:
""
,
},
pager
:
{
current
:
1
,
sizes
:
[
10
,
20
,
50
,
100
,
200
],
...
...
@@ -159,9 +165,20 @@ export default {
this
.
set_table_height
();
})
this
.
set_table_height
();
this
.
get_table
();
// 初始化查询列表
this
.
getList
();
},
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
()
{
//动态设置表格高度
const
table_container_height
=
$
(
".table_container"
).
height
();
const
search_menu_height
=
$
(
".search_menu"
).
height
();
...
...
@@ -191,15 +208,12 @@ export default {
handleSizeChange
(
val
)
{
this
.
pager
.
current
=
1
;
this
.
pager
.
size
=
val
;
this
.
get
_table
();
this
.
get
List
();
},
//当前页码改变
handleCurrentChange
(
val
)
{
this
.
pager
.
current
=
val
;
this
.
get_table
();
},
get_table
()
{
//查询表格数据
this
.
getList
();
},
}
}
...
...
src/views/typical-example-manage/index.vue
View file @
8a58e07
...
...
@@ -268,16 +268,14 @@ export default {
this
.
dicObj
.
problemLevel
[
item
.
value
]
=
item
.
label
;
}),
console
.
log
(
this
.
dicObj
);
// 初始化查询列表
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
.
getList
();
// 获取元素列表
},
methods
:
{
// 查询列表
...
...
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