|
@@ -58,7 +58,7 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column label="操作" width="220" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<template v-if="scope.row.status === 0 || scope.row.status === 3">
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="goRealTime(scope.row)">实时动态</el-button>
|
|
@@ -66,6 +66,7 @@
|
|
|
</template>
|
|
|
<template v-else-if="scope.row.status === 2">
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="goRealTime(scope.row)">测流成果</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-view" @click="handlePreview(scope.row)">成果预览</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleExport(scope.row)">导出</el-button>
|
|
|
</template>
|
|
|
</template>
|
|
@@ -143,6 +144,10 @@ export default {
|
|
|
handleExport(task) {
|
|
|
window.open(`${process.env.VUE_APP_BASE_API}/achievement/downAchievement?resultId=${task.resultId}`, '_blank')
|
|
|
},
|
|
|
+ handlePreview(task) {
|
|
|
+ const url = `${process.env.VUE_APP_BASE_API}/achievement/downAchievement?resultId=${task.resultId}`;
|
|
|
+ window.open(`/excel?url=${window.encodeURIComponent(url)}`, '_blank')
|
|
|
+ },
|
|
|
handleStop(task) {
|
|
|
this.$modal.confirm('是否确认终止编号为"' + task.taskid + '"的测流任务?').then(function() {
|
|
|
return taskAction(task.siteId, 0);
|