Commit 5d6be751 authored by mhw's avatar mhw

优化操作

parent 892d86a5
<!-- 下载文件列表 --> <!-- 下载文件列表 -->
<template> <template>
<el-table :data="outputList" border style="width: 1200px"> <div>
<el-table-column prop="markFormatType" label="标注格式类型"> <el-table :data="outputList" border style="width: 1200px">
</el-table-column> <el-table-column prop="markFormatType" label="标注格式类型">
<el-table-column prop="outputContent" label="导出内容"> </el-table-column>
</el-table-column> <el-table-column prop="outputContent" label="导出内容">
<el-table-column prop="fileSize" label="文件大小"> </el-table-column>
</el-table-column> <el-table-column prop="fileSize" label="文件大小">
<el-table-column prop="dataCount" label="数据量"> </el-table-column>
</el-table-column> <el-table-column prop="dataCount" label="数据量">
<el-table-column prop="createUserId" label="创建人"> </el-table-column>
<template slot-scope="scope">{{scope.row.createUserIdDictMap.name}}</template> <el-table-column prop="createUserId" label="创建人">
</el-table-column> <template slot-scope="scope">{{scope.row.createUserIdDictMap.name}}</template>
<el-table-column prop="outputStartTime" label="导出开始时间" width="150"> </el-table-column>
</el-table-column> <el-table-column prop="outputStartTime" label="导出开始时间" width="150">
<el-table-column prop="outputEndTime" label="导出完成时间" width="150"> </el-table-column>
</el-table-column> <el-table-column prop="outputEndTime" label="导出完成时间" width="150">
<el-table-column prop="status" label="状态"> </el-table-column>
<template slot-scope="scope"> <el-table-column prop="status" label="状态">
{{ OutputStatus.getValue(scope.row.status) }} <template slot-scope="scope">
</template> {{ OutputStatus.getValue(scope.row.status) }}
</el-table-column> </template>
<el-table-column label="操作" fixed="right"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="操作" fixed="right">
<el-button @click="down(scope.row.downloadUrl)" type="text" size="mini"> <template slot-scope="scope">
下载 <el-button @click="down(scope.row.downloadUrl)" type="text" size="mini">
</el-button> 下载
<el-button @click="outputDelete(scope.row.outputId)" type="text" size="mini"> </el-button>
刪除 <el-button @click="outputDelete(scope.row.outputId)" type="text" size="mini">
</el-button> 刪除
</template> </el-button>
</el-table-column> </template>
</el-table-column>
</el-table> </el-table>
</div>
</template> </template>
<script> <script>
......
<!-- --> <!-- -->
<template> <template>
<div class="tableBox" style=" width:100% "> <div class="tableBox" style=" width:100% ">
<vxe-table border show-header-overflow show-overflow :row-config="{ isHover: true }" :data="tableData.impl.dataList" min-height="96"> <div class="remark">(以下为当前步骤100个抽样命中结果的清洗效果对比)</div>
<vxe-table border show-header-overflow show-overflow :row-config="{ isHover: true }" :data="tableData.impl.dataList" min-height="96" @cell-click="clickEvent">
<vxe-column align="center" title="序号" type="seq" show-overflow-tooltip width="50px" /> <vxe-column align="center" title="序号" type="seq" show-overflow-tooltip width="50px" />
<vxe-column field="cleanBeforeData" title="清洗前"> <vxe-column field="cleanBeforeData" title="清洗前">
<!-- <template slot-scope="scope"> <!-- <template slot-scope="scope">
...@@ -9,7 +10,6 @@ ...@@ -9,7 +10,6 @@
</template> --> </template> -->
</vxe-column> </vxe-column>
<vxe-column field="cleanAfterData" title="清洗后"> <vxe-column field="cleanAfterData" title="清洗后">
</vxe-column> </vxe-column>
</vxe-table> </vxe-table>
<el-row slot="pagination" type="flex" justify="end" style="margin-top: 16px;width: 100%;"> <el-row slot="pagination" type="flex" justify="end" style="margin-top: 16px;width: 100%;">
...@@ -82,9 +82,20 @@ export default { ...@@ -82,9 +82,20 @@ export default {
} else { } else {
this.tableData.impl.refreshTable() this.tableData.impl.refreshTable()
} }
},
clickEvent({ row, column }) {
this.$alert(row[column.field], '内容')
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.remark {
font-size: 12px;
color: #84868c;
margin-bottom: 5px;
}
div /deep/ .vxe-body--column {
cursor: pointer;
}
</style> </style>
...@@ -72,7 +72,8 @@ ...@@ -72,7 +72,8 @@
<div class="dataItem" style="align-items: flex-start;"> <div class="dataItem" style="align-items: flex-start;">
<div class="title">导出日志:</div> <div class="title">导出日志:</div>
<div class="content"> <div class="content">
<downList :outputList='outputList' /> <el-button type="primary" size="mini" @click="openExport">详情</el-button>
<!-- <downList :outputList='outputList' /> -->
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -99,7 +100,7 @@ export default { ...@@ -99,7 +100,7 @@ export default {
} }
}, },
props: ['tableData', 'refresh'], props: ['tableData', 'refresh'],
components: { particulars, downList }, components: { particulars },
computed: {}, computed: {},
...@@ -213,6 +214,22 @@ export default { ...@@ -213,6 +214,22 @@ export default {
}) })
.catch((e) => {}) .catch((e) => {})
}, },
openExport() {
this.$dialog
.show(
'导出详情',
downList,
{
area: ['1200px', '80%']
},
{ outputList: this.outputList }
)
.then((res) => {
this.refresh()
this.getOutputList()
})
.catch((e) => {})
},
analyse(data) { analyse(data) {
// 分析 // 分析
}, },
......
...@@ -72,7 +72,8 @@ ...@@ -72,7 +72,8 @@
<div class="dataItem" style="align-items: flex-start;"> <div class="dataItem" style="align-items: flex-start;">
<div class="title">导出日志:</div> <div class="title">导出日志:</div>
<div class="content"> <div class="content">
<downList :outputList='outputList' /> <el-button type="primary" size="mini" @click="openExport">详情</el-button>
<!-- <downList :outputList='outputList' /> -->
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -99,7 +100,7 @@ export default { ...@@ -99,7 +100,7 @@ export default {
} }
}, },
props: ['tableData', 'refresh'], props: ['tableData', 'refresh'],
components: { particulars, downList }, components: { particulars },
computed: {}, computed: {},
...@@ -213,6 +214,22 @@ export default { ...@@ -213,6 +214,22 @@ export default {
}) })
.catch((e) => {}) .catch((e) => {})
}, },
openExport() {
this.$dialog
.show(
'导出详情',
downList,
{
area: ['1200px', '80%']
},
{ outputList: this.outputList }
)
.then((res) => {
this.refresh()
this.getOutputList()
})
.catch((e) => {})
},
analyse(data) { analyse(data) {
// 分析 // 分析
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment