Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
download-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
downloader
download-web
Commits
a2c01127
Commit
a2c01127
authored
Sep 01, 2025
by
焦子成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
85482980
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
src/views/Downloader.vue
+14
-10
src/views/History.vue
+0
-0
No files found.
src/views/Downloader.vue
View file @
a2c01127
...
...
@@ -353,12 +353,12 @@
<
/el-table-column> --
>
<
el
-
table
-
column
label
=
"大小"
width
=
"120"
align
=
"center"
prop
=
"fileLength"
>
<
!--
<
template
#
default
=
"{ row
}
"
>
<
template
#
default
=
"{ row
}
"
>
<
span
v
-
if
=
"row.totalBytes > 0"
class
=
"size-info"
>
{{
formatBytes
(
row
.
downloadedBytes
)
}}
/
{{
formatBytes
(
row
.
totalBytes
)
}}
<
/span
>
<
span
v
-
else
class
=
"size-info"
>-<
/span
>
<
/template>
--
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
width
=
"200"
align
=
"center"
fixed
=
"right"
>
...
...
@@ -440,14 +440,14 @@ const activeCollapse = ref(['upload']) // 默认展开配置区域
const
currentPage
=
ref
(
1
)
const
pageSize
=
ref
(
10
)
// 已上传文件列表
cons
t
upQuery
=
ref
({
le
t
upQuery
=
ref
({
current
:
1
,
pageSize
:
5
}
)
let
upTableData
=
reactive
([])
let
upTotal
=
ref
(
0
)
// 下载任务管理列表
cons
t
deQuery
=
ref
({
le
t
deQuery
=
ref
({
current
:
1
,
pageSize
:
10
,
fileStatus
:
''
...
...
@@ -455,13 +455,13 @@ const deQuery = ref({
let
deTableData
=
reactive
([])
let
deTotal
=
ref
(
0
)
cons
t
columnMapping
=
ref
({
le
t
columnMapping
=
ref
({
fileNameColumns
:
[],
url
:
''
}
)
// 状态筛选
cons
t
statusFilter
=
ref
(
''
)
le
t
statusFilter
=
ref
(
''
)
// 计算是否可以解析
const
canParse
=
computed
(()
=>
{
...
...
@@ -824,20 +824,21 @@ onMounted(() => {
detectBrowserDownloadPath()
loadUpTableData()
loadDetailTableData()
loadUploadDetailTotalNum()
}
)
function loadDetailTableData(){
http.post(config.uploadDetailList,deQuery.value).then(res=>{
if (res.code === 200){
deTableData = res.data.rows
deTotal.value = res.data.total
loadUploadDetailTotalNum()
}
else {
ElMessage.error(res.message)
}
}
)
}
const totalNumObj = reactive
({
let totalNumObj = ref
({
countNum:0,
fileLength: '',
status0: 0,
status1: 0,
status2: 0,
...
...
@@ -847,7 +848,10 @@ const totalNumObj = reactive({
function loadUploadDetailTotalNum(){
http.post(config.uploadDetailTotalNum).then(res=>{
if (res.code === 200){
totalNumObj.value.countNum = res.data.countNum
totalNumObj.value.status3 = res.data.status3
totalNumObj.value.status4 = res.data.status4
totalNumObj.value.fileLength = res.data.fileLength
}
else {
ElMessage.error(res.message)
}
...
...
@@ -902,7 +906,7 @@ function deleteRow(row) {
// 解析Excel文件
const parseExcelFile = async () => {
if (rawExcelData.value.length >
8
000){
if (rawExcelData.value.length >
3
000){
ElMessage.error('文件数据量太大,请拆分处理,每次不超过3000条')
return
}
...
...
src/views/History.vue
View file @
a2c01127
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment