提交 ddae58c0 编写于 作者: changdi.hao's avatar changdi.hao

Merge branch 'dev-20210702' of...

Merge branch 'dev-20210702' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-admin-consultation into dev-20210702
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
}, },
confirm() { confirm() {
let req = { let req = {
id:diagnoseLogId, id:this.diagnoseLogId,
bizType:2, bizType:2,
refundReason:this.model.refundReason refundReason:this.model.refundReason
} }
......
...@@ -433,7 +433,7 @@ ...@@ -433,7 +433,7 @@
label="变更前内容"> label="变更前内容">
</el-table-column> </el-table-column>
</el-table> </el-table>
<!--<br/> <!-- 与产品确认,不需要分页功能<br/>
<el-row :gutter="0" type="flex" justify="end" align="center"> <el-row :gutter="0" type="flex" justify="end" align="center">
<el-pagination <el-pagination
class="log-info-pagin" class="log-info-pagin"
......
...@@ -450,7 +450,7 @@ export default { ...@@ -450,7 +450,7 @@ export default {
//取消/退款 //取消/退款
cancelRefund(row) { cancelRefund(row) {
this.refundVisible = true; this.refundVisible = true;
this.diagnoseLogId = row.id; this.diagnoseLogId = row.diagnoseLogId;
console.log(row); console.log(row);
}, },
//设为稍后跟进 //设为稍后跟进
......
...@@ -6,15 +6,13 @@ ...@@ -6,15 +6,13 @@
style="width: 100%" style="width: 100%"
v-loading="loading" v-loading="loading"
> >
<el-table-column <el-table-column key="fileName" prop="fileName" label="名称" min-width="170" align="center" ></el-table-column>
v-for="item in tableColumn" <el-table-column key="createdTime" prop="createdTime" label="创建时间" min-width="170" align="center" ></el-table-column>
:key="item.prop" <el-table-column key="status" prop="status" label="状态" min-width="170" align="center" >
:prop="item.prop" <template slot-scope="scope">
:label="item.label" <div class="status_base"><div :class="'status-circle status-' + scope.row.status"></div><div>{{ getStatusDesc(scope.row.status) }}</div></div>
:show-overflow-tooltip="item.showtooltip" </template>
min-width="170" </el-table-column>
align="center"
></el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
fixed="right" fixed="right"
...@@ -22,13 +20,10 @@ ...@@ -22,13 +20,10 @@
min-width="400" min-width="400"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <div
type="primary" @click="download(scope.row.path)"
size="small" class="download-btn"
@click="download(scope.row)" >下载</div>
style="margin-top: 10px"
>下载</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -43,7 +38,7 @@ ...@@ -43,7 +38,7 @@
:page-sizes="[15, 30, 50, 100, 200]" :page-sizes="[15, 30, 50, 100, 200]"
:page-size="pageSize" :page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="totalRows" :total="totalCount"
> >
</el-pagination> </el-pagination>
</div> </div>
...@@ -51,70 +46,88 @@ ...@@ -51,70 +46,88 @@
</template> </template>
<script> <script>
const STATUS_DESC_MAP = {
1: '处理中',
2: '完成',
3: '失败'
}
export default { export default {
data() { data() {
return { return {
pageSize: 15, pageSize: 15,
pageNo: 1, pageNo: 1,
totalRows: 0, totalCount: 0,
loading: false, loading: false,
tableData: [], tableData: [],
tableColumn: [ }
{ },
prop: "名称", created () {
label: "名称", this.queryList()
showtooltip: false,
},
{
prop: "时间",
label: "时间",
showtooltip: false,
},
{
prop: "状态",
label: "状态",
showtooltip: false,
},
],
};
}, },
methods: { methods: {
// 导出 queryList () {
download() { this.POST(`/diagnose/admin/diagnose/export/list`, {
let url = `/diagnose/admin/diagnose/export`; pageSize: this.pageSize,
let params = this.searchParam; pageNo: this.pageNo
params.bizType = 2; }).then(res => {
this.POST(url, params) if (res && res.code === '000000') {
.then((res) => { this.totalCount = res.data.allSize
if (res.code == "000000") { this.tableData = res.data.list
this.downloadFile( }
res.data.attachments.base64, })
res.data.attachments.name },
); getStatusDesc (status) {
} return STATUS_DESC_MAP[status]
})
.catch((err) => {
console.log("网络出现点儿问题,稍后重试");
});
}, },
/* 文件下载*/ download(link) {
downloadFile(base64, name) { window.location.href = link
let a = document.createElement("a");
let href = "data:application/xls;base64," + base64;
a.setAttribute("href", href);
a.setAttribute("download", name);
a.click();
this.$message.success("导出成功");
}, },
handleSizeChange(value) { handleSizeChange(value) {
this.pageSize = value; this.pageNo = 1
this.pageSize = value
this.queryList()
}, },
handleCurrentChange(value) { handleCurrentChange(value) {
this.pageNo = value; this.pageNo = value
this.queryList()
}, },
}, },
}; };
</script> </script>
<style> <style lang="less" scoped>
.down-list {
margin: 15px;
.status_base {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.status-circle {
content: '';
display: block;
width: 8px;
height: 8px;
border-radius: 4px;
margin-right: 5px;
}
.status-1 {
background-color: rgb(219, 223, 12);;
}
.status-2 {
background-color: rgb(87, 238, 82);;
}
.status-3 {
background-color: rgb(238, 68, 16);;
}
}
.download-btn {
color: rgb(7, 180, 59);
cursor: pointer;
}
.download-btn:hover {
color: rgb(98, 233, 86);
}
}
</style> </style>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册