|
@@ -29,27 +29,38 @@
|
|
|
|
|
|
<el-table v-loading="loading" :data="adminList" height="calc(100vh - 10vh - 120px)">
|
|
<el-table v-loading="loading" :data="adminList" height="calc(100vh - 10vh - 120px)">
|
|
<el-table-column label="id" align="center" prop="id" show-overflow-tooltip />
|
|
<el-table-column label="id" align="center" prop="id" show-overflow-tooltip />
|
|
- <el-table-column label="类别" align="center" prop="resultType" show-overflow-tooltip />
|
|
|
|
<el-table-column label="文件名称" align="center" prop="funcType" show-overflow-tooltip />
|
|
<el-table-column label="文件名称" align="center" prop="funcType" show-overflow-tooltip />
|
|
- <el-table-column label="开始时间" align="center" prop="startTime" show-overflow-tooltip />
|
|
|
|
- <el-table-column label="结束时间" align="center" prop="endTime" show-overflow-tooltip />
|
|
|
|
|
|
+ <el-table-column label="文件大小" align="center" prop="fileSize" show-overflow-tooltip >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span v-if = "scope.row.fileSize">{{(scope.row.fileSize / 1024).toFixed(2)}}Kb</span>
|
|
|
|
+ <span v-if = "!scope.row.fileSize"></span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="任务开始时间" align="center" prop="startTime" show-overflow-tooltip />
|
|
|
|
+ <el-table-column label="任务结束时间" align="center" prop="endTime" show-overflow-tooltip />
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" show-overflow-tooltip >
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" show-overflow-tooltip >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button v-if ="scope.row.isSuccess == true"
|
|
|
|
|
|
+ <el-button v-if ="scope.row.isSuccess && scope.row.url && scope.row.activeFlag == '1' && scope.row.delFlag == '0'"
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-bottom"
|
|
icon="el-icon-bottom"
|
|
@click="handleExport(scope.row)"
|
|
@click="handleExport(scope.row)"
|
|
|
|
+ :loading="exportLoading"
|
|
>下载</el-button>
|
|
>下载</el-button>
|
|
<span v-if="scope.row.isSuccess == false">
|
|
<span v-if="scope.row.isSuccess == false">
|
|
<span v-if="scope.row.result == '' || scope.row.result == null">文件整理中...请稍后查看</span>
|
|
<span v-if="scope.row.result == '' || scope.row.result == null">文件整理中...请稍后查看</span>
|
|
<span else>{{scope.row.result}}</span>
|
|
<span else>{{scope.row.result}}</span>
|
|
</span>
|
|
</span>
|
|
-
|
|
|
|
|
|
+ <el-button else-if
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="el-icon-bottom"
|
|
|
|
+ disabled
|
|
|
|
+ @click="handleExport(scope.row)"
|
|
|
|
+ >下载</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
-
|
|
|
|
<pagination
|
|
<pagination
|
|
v-show="total>0"
|
|
v-show="total>0"
|
|
:total="total"
|
|
:total="total"
|
|
@@ -113,90 +124,35 @@ export default {
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
filelist(this.addDateRange(this.queryParams,this.dateRange,'section')).then(response => {
|
|
filelist(this.addDateRange(this.queryParams,this.dateRange,'section')).then(response => {
|
|
- if(response.data.records.length>0){
|
|
|
|
- this.total = response.data.total;
|
|
|
|
- let arrBig = response.data.records
|
|
|
|
- let arr = []
|
|
|
|
- arr = response.data.records.map(item =>{
|
|
|
|
- return {
|
|
|
|
- batchNos:[item.result]
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- for(let i=1;i<response.data.records.length; i++){
|
|
|
|
- arr[0].batchNos.push(response.data.records[i].result)
|
|
|
|
- }
|
|
|
|
- getFile(arr[0]).then(response =>{
|
|
|
|
- const reverse = response.data.reverse()
|
|
|
|
- for(let i=0;i<response.data.length;i++){
|
|
|
|
- arrBig[i].url = reverse[i].url
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.loading = false;
|
|
|
|
- this.adminList = arrBig;
|
|
|
|
- this.total = response.data.total;
|
|
|
|
- }
|
|
|
|
- // let has = response.data.records
|
|
|
|
- // this.total = response.data.total;
|
|
|
|
- // if(has.length>0){
|
|
|
|
- // let arr = has
|
|
|
|
- // let a = []
|
|
|
|
- // for(let i = 0;i<has.length;i++){
|
|
|
|
- // if(has[i].isSuccess == true){
|
|
|
|
- // a.push(has[i].result)
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // a = a.map(item =>{
|
|
|
|
- // return {
|
|
|
|
- // batchNos:[item]
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // // for(let i=1;i<response.data.records.length; i++){
|
|
|
|
- // // arr[0].batchNos.push(response.data.records[i].result)
|
|
|
|
- // // }
|
|
|
|
- // getFile(a).then(response =>{
|
|
|
|
- // const reverse = response.data.reverse()
|
|
|
|
- // for(let i=0;i<response.data.length;i++){
|
|
|
|
- // arr[i] = reverse[i]
|
|
|
|
- // }
|
|
|
|
- // this.adminList = arr;
|
|
|
|
- // this.loading = false;
|
|
|
|
- // })
|
|
|
|
-
|
|
|
|
- // }
|
|
|
|
|
|
+ this.total = response.data.total;
|
|
|
|
+ if(response.data.records.length>0){
|
|
|
|
+ let arrBig = response.data.records
|
|
|
|
+ let arr = []
|
|
|
|
+ arr = response.data.records.map(item =>{
|
|
|
|
+ return {
|
|
|
|
+ batchNos:[item.result]
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ for(let i=1;i<response.data.records.length; i++){
|
|
|
|
+ arr[0].batchNos.push(response.data.records[i].result)
|
|
|
|
+ }
|
|
|
|
+ getFile(arr[0]).then(response =>{
|
|
|
|
+ const reverse = response.data
|
|
|
|
+ for(let i=0;i<response.data.length;i++){
|
|
|
|
+ arrBig[i].url = reverse[i].url
|
|
|
|
+ arrBig[i].delFlag = reverse[i].delFlag
|
|
|
|
+ arrBig[i].activeFlag = reverse[i].activeFlag
|
|
|
|
+ arrBig[i].expriceAt = reverse[i].expriceAt
|
|
|
|
+ arrBig[i].fileSize = reverse[i].fileSize
|
|
|
|
+ }
|
|
|
|
+ this.adminList = arrBig;
|
|
|
|
+ this.loading = false;
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}).catch(err =>{
|
|
}).catch(err =>{
|
|
this.loading = false;
|
|
this.loading = false;
|
|
})
|
|
})
|
|
- // filelist(this.addDateRange(this.queryParams,this.dateRange)).then(response => {
|
|
|
|
- // // let has = response.data.records
|
|
|
|
- // // this.total = response.data.total;
|
|
|
|
- // // if(has.length>0){
|
|
|
|
- // // let arr = []
|
|
|
|
- // // for(let i = 0;i<has.length;i++){
|
|
|
|
- // // if(has[i].isSuccess == true){
|
|
|
|
- // // arr.push(has[i].result)
|
|
|
|
- // // }
|
|
|
|
- // // }
|
|
|
|
- // // arr = arr.map(item =>{
|
|
|
|
- // // return {
|
|
|
|
- // // batchNos:[item]
|
|
|
|
- // // }
|
|
|
|
- // // })
|
|
|
|
- // // for(let i=1;i<response.data.records.length; i++){
|
|
|
|
- // // arr[0].batchNos.push(response.data.records[i].result)
|
|
|
|
- // // }
|
|
|
|
- // // getFile(arr[0]).then(response =>{
|
|
|
|
- // // const reverse = response.data.reverse()
|
|
|
|
- // // for(let i=0;i<response.data.length;i++){
|
|
|
|
- // // arr[i] = reverse[i]
|
|
|
|
- // // }
|
|
|
|
- // // this.adminList = arr;
|
|
|
|
- // // this.loading = false;
|
|
|
|
- // // })
|
|
|
|
|
|
|
|
- // // }
|
|
|
|
- // }).catch(err =>{
|
|
|
|
- // this.loading = false;
|
|
|
|
- // })
|
|
|
|
},
|
|
},
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|
|
handleQuery() {
|
|
handleQuery() {
|
|
@@ -208,7 +164,8 @@ export default {
|
|
this.queryParams.startTime = undefined;
|
|
this.queryParams.startTime = undefined;
|
|
this.queryParams.endTime = undefined;
|
|
this.queryParams.endTime = undefined;
|
|
this.queryParams.endTime = undefined;
|
|
this.queryParams.endTime = undefined;
|
|
- this.queryParams.type = 1
|
|
|
|
|
|
+ this.queryParams.asyncTaskId = undefined;
|
|
|
|
+ this.queryParams.userName = undefined;
|
|
this.dateRange = [];
|
|
this.dateRange = [];
|
|
this.resetForm("queryForm");
|
|
this.resetForm("queryForm");
|
|
this.handleQuery();
|
|
this.handleQuery();
|
|
@@ -223,6 +180,7 @@ export default {
|
|
a.click(); // 模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了
|
|
a.click(); // 模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了
|
|
a.remove();
|
|
a.remove();
|
|
},
|
|
},
|
|
|
|
+
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|