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 1b254103
authored
Dec 19, 2023
by
Thews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20231219wangwansu
1 parent
6ad7149f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
32 deletions
src/views/etpManage/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/views/etpManage/index.vue
View file @
1b25410
...
@@ -407,14 +407,14 @@ export default {
...
@@ -407,14 +407,14 @@ export default {
this
.
radioName
=
""
;
this
.
radioName
=
""
;
},
},
exportFile
()
{
//导出
exportFile
()
{
//导出
getTypicalExampleExcel
(
this
.
params
).
then
(
res
=>
{
//
getTypicalExampleExcel(this.params).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');
link
.
href
=
url
;
//
link.href = url;
document
.
body
.
appendChild
(
link
);
//
document.body.appendChild(link);
link
.
click
();
//
link.click();
})
//
})
},
},
// 表格多选
// 表格多选
...
@@ -488,6 +488,11 @@ export default {
...
@@ -488,6 +488,11 @@ export default {
display
:
flex
;
display
:
flex
;
margin-top
:
50px
;
margin-top
:
50px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
.el-button--primary{
background
:
rgba
(
13
,
134
,
127
,
0.1
);
color
:
#0D867F
;
border
:
0
;
}
}
}
.add_btn
{
.add_btn
{
display
:
flex
;
display
:
flex
;
...
...
src/views/total-archi-property-document/index.vue
View file @
1b25410
...
@@ -45,10 +45,18 @@
...
@@ -45,10 +45,18 @@
<!--
<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>
<el-table-column
prop=
"fileType"
label=
"文档类型"
align=
"center"
>
<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=
"content"
label=
"附件"
align=
"center"
></el-table-column>
<el-table-column
prop=
"fileName"
label=
"附件"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
><a
:href=
"scope.row.fileUrl"
:download=
"scope.row.fileName"
>
{{
scope
.
row
.
fileName
}}
</a></span>
</
template
>
</el-table-column>
</el-table>
</el-table>
<el-pagination
<el-pagination
background
background
...
@@ -90,8 +98,22 @@
...
@@ -90,8 +98,22 @@
placeholder=
"选择日期"
>
placeholder=
"选择日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"附件:"
prop=
"let5"
style=
"margin-left: 27px;"
>
<
!-- <
el-form-item label="附件:" prop="let5" style="margin-left: 27px;">
<input type="file" />
<input type="file" />
</el-form-item> -->
<el-form-item
label=
"文档附件:"
>
<!-- <input @change="fileUpload" type="file" /> -->
<el-upload
class=
"upload-demo"
action=
"/api/network/oss/upload"
ref=
"upload"
:on-remove=
"handleRemove"
:on-success=
"handleFileUploadSuccess"
:limit=
"1"
:file-list=
"fileList"
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件, 且不超过500kb</div> -->
</el-upload>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -165,17 +187,19 @@ export default {
...
@@ -165,17 +187,19 @@ export default {
total
:
20
//总条数
total
:
20
//总条数
},
},
formData
:
{
formData
:
{
tc
Name
:
''
,
file
Name
:
''
,
tc
Type
:
''
,
file
Type
:
''
,
prjType
:
''
,
fileVersion
:
''
,
buildContent
:
''
,
startTime
:
''
,
problemType
:
''
,
fileId
:
""
,
problemLevel
:
''
,
}
,
problemContent
:
''
,
dicObj
:
{
archiDetail
:
""
,
fileType
:
{}
,
},
},
tableHeight
:
null
,
tableHeight
:
null
,
searchDate
:
[],
searchDate
:
[],
fileList
:
[],
};
};
},
},
mounted
(){
mounted
(){
...
@@ -184,10 +208,14 @@ export default {
...
@@ -184,10 +208,14 @@ 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
();
},
},
methods
:
{
methods
:
{
// 查询列表
// 查询列表
...
@@ -313,6 +341,7 @@ export default {
...
@@ -313,6 +341,7 @@ export default {
fileType
:
''
,
fileType
:
''
,
fileVersion
:
''
,
fileVersion
:
''
,
startTime
:
''
,
startTime
:
''
,
fileId
:
""
,
}
}
},
},
// 导出
// 导出
...
@@ -326,6 +355,16 @@ export default {
...
@@ -326,6 +355,16 @@ export default {
link
.
click
();
link
.
click
();
})
})
},
},
// 文件上传逻辑
handleRemove
(
file
,
fileList
)
{
//文件移出
// console.log(file, fileList);
},
handleFileUploadSuccess
(
res
,
file
,
fileList
)
{
//文件上传
this
.
formData
.
fileId
=
res
.
data
.
fileId
;
console
.
log
(
res
);
console
.
log
(
file
);
console
.
log
(
fileList
);
},
getFileTypeSelect
()
{
//案例类型下拉
getFileTypeSelect
()
{
//案例类型下拉
const
params
=
{
const
params
=
{
...
...
src/views/typical-example-manage/index.vue
View file @
1b25410
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
</
template
>
</
template
>
</el-table-column>
</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"
></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"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
>
{{
dicObj
.
problemType
[
String
(
scope
.
row
.
problemType
)]
}}
</span>
<span
>
{{
dicObj
.
problemType
[
String
(
scope
.
row
.
problemType
)]
}}
</span>
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<span
>
{{
dicObj
.
problemLevel
[
String
(
scope
.
row
.
problemLevel
)]
}}
</span>
<span
>
{{
dicObj
.
problemLevel
[
String
(
scope
.
row
.
problemLevel
)]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"problemContent"
label=
"问题描述"
align=
"center"
></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"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
...
@@ -161,8 +161,7 @@ export default {
...
@@ -161,8 +161,7 @@ export default {
add_dialog
:
false
,
add_dialog
:
false
,
title
:
""
,
title
:
""
,
loading
:
false
,
loading
:
false
,
selectList
:
[
selectList
:
[],
],
selectData1
:
[
selectData1
:
[
{
{
label
:
"移动应用典型案例"
,
label
:
"移动应用典型案例"
,
...
@@ -255,25 +254,26 @@ export default {
...
@@ -255,25 +254,26 @@ export default {
this
.
selectData1
.
forEach
(
item
=>
{
this
.
selectData1
.
forEach
(
item
=>
{
this
.
dicObj
.
tcType
[
item
.
value
]
=
item
.
label
;
this
.
dicObj
.
tcType
[
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
;
})
,
})
;
this
.
selectData3
.
forEach
(
item
=>
{
this
.
selectData3
.
forEach
(
item
=>
{
this
.
dicObj
.
prjType
[
item
.
value
]
=
item
.
label
;
this
.
dicObj
.
prjType
[
item
.
value
]
=
item
.
label
;
})
,
})
;
this
.
selectData4
.
forEach
(
item
=>
{
this
.
selectData4
.
forEach
(
item
=>
{
this
.
dicObj
.
problemLevel
[
item
.
value
]
=
item
.
label
;
this
.
dicObj
.
problemLevel
[
item
.
value
]
=
item
.
label
;
})
,
})
;
// 初始化查询列表
// 初始化查询列表
this
.
getList
();
this
.
getList
();
// 获取元素列表
// 获取元素列表
// this.get_an_li_lei_xing_select();
this
.
get_an_li_lei_xing_select
();
// this.get_wen_ti_lei_xing_select();
this
.
get_wen_ti_lei_xing_select
();
// this.get_xiang_mu_lei_xing_select();
this
.
get_xiang_mu_lei_xing_select
();
// this.get_wen_ti_deng_ji_select();
this
.
get_wen_ti_deng_ji_select
();
},
},
methods
:
{
methods
:
{
// 查询列表
// 查询列表
...
...
src/views/typical-example-relative-use/index.vue
View file @
1b25410
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