Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
9795bfca
提交
9795bfca
编写于
8月 12, 2024
作者:
zhongyao.qiao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat 下载列表增加刷新
上级
e6c511d8
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
61 行增加
和
51 行删除
+61
-51
down-list.vue
src/views/IM/diagnosis-admin/down-list.vue
+61
-51
未找到文件。
src/views/IM/diagnosis-admin/down-list.vue
浏览文件 @
9795bfca
...
...
@@ -29,7 +29,8 @@
>
<template
slot-scope=
"scope"
>
<div
class=
"status_base"
>
<div
:class=
"'status-circle status-' + scope.row.status"
/><div>
{{
getStatusDesc
(
scope
.
row
.
status
)
}}
</div>
<div
:class=
"'status-circle status-' + scope.row.status"
/>
<div>
{{
getStatusDesc
(
scope
.
row
.
status
)
}}
</div>
</div>
</
template
>
</el-table-column>
...
...
@@ -41,6 +42,14 @@
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.status === 1"
class=
"download-btn"
@
click=
"reload"
>
刷新
</div>
<div
v-else-if=
"scope.row.status === 2"
class=
"download-btn"
@
click=
"download(scope.row.path)"
>
...
...
@@ -67,56 +76,57 @@
</template>
<
script
>
import
{
exportList
}
from
'@/api/downList'
;
const
STATUS_DESC_MAP
=
{
1
:
'处理中'
,
2
:
'完成'
,
3
:
'失败'
};
export
default
{
data
()
{
return
{
pageSize
:
15
,
pageNo
:
1
,
totalCount
:
0
,
loading
:
false
,
tableData
:
[],
};
import
{
exportList
}
from
'@/api/downList'
;
const
STATUS_DESC_MAP
=
{
1
:
'处理中'
,
2
:
'完成'
,
3
:
'失败'
,
};
export
default
{
data
()
{
return
{
pageSize
:
15
,
pageNo
:
1
,
totalCount
:
0
,
loading
:
false
,
tableData
:
[],
};
},
created
()
{
this
.
queryList
();
},
methods
:
{
reload
()
{
this
.
queryList
();
},
created
()
{
queryList
()
{
exportList
({
pageSize
:
this
.
pageSize
,
pageNo
:
this
.
pageNo
,
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
'000000'
)
{
this
.
totalCount
=
res
.
data
.
allSize
;
this
.
tableData
=
res
.
data
.
list
;
}
});
},
getStatusDesc
(
status
)
{
return
STATUS_DESC_MAP
[
status
];
},
download
(
link
)
{
window
.
location
.
href
=
link
;
},
handleSizeChange
(
value
)
{
this
.
pageNo
=
1
;
this
.
pageSize
=
value
;
this
.
queryList
();
},
methods
:
{
queryList
()
{
exportList
({
pageSize
:
this
.
pageSize
,
pageNo
:
this
.
pageNo
}).
then
(
res
=>
{
if
(
res
&&
res
.
code
===
'000000'
)
{
this
.
totalCount
=
res
.
data
.
allSize
;
this
.
tableData
=
res
.
data
.
list
;
}
});
},
getStatusDesc
(
status
)
{
return
STATUS_DESC_MAP
[
status
];
},
download
(
link
)
{
window
.
location
.
href
=
link
;
},
handleSizeChange
(
value
)
{
this
.
pageNo
=
1
;
this
.
pageSize
=
value
;
this
.
queryList
();
},
handleCurrentChange
(
value
)
{
this
.
pageNo
=
value
;
this
.
queryList
();
},
handleCurrentChange
(
value
)
{
this
.
pageNo
=
value
;
this
.
queryList
();
},
};
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -137,13 +147,13 @@
margin-right
:
5px
;
}
.status-1
{
background-color
:
rgb
(
219
,
223
,
12
);
;
background-color
:
rgb
(
219
,
223
,
12
);
}
.status-2
{
background-color
:
rgb
(
87
,
238
,
82
);
;
background-color
:
rgb
(
87
,
238
,
82
);
}
.status-3
{
background-color
:
rgb
(
238
,
68
,
16
);
;
background-color
:
rgb
(
238
,
68
,
16
);
}
}
.download-btn
{
...
...
@@ -154,4 +164,4 @@
color
:
rgb
(
98
,
233
,
86
);
}
}
</
style
>
\ No newline at end of file
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录