|
@@ -151,7 +151,7 @@
|
|
|
class="btn-primary"
|
|
|
type="text"
|
|
|
:disabled="loading"
|
|
|
- @click="toDonwloadFile(scope.row.id, 'TASK_REPORT')"
|
|
|
+ @click="toViewLog(scope.row)"
|
|
|
>导出日志</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -195,6 +195,19 @@
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ class="log-dialog"
|
|
|
+ :visible.sync="modalIsShow"
|
|
|
+ title="日志"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ append-to-body
|
|
|
+ top="10vh"
|
|
|
+ width="800px"
|
|
|
+ >
|
|
|
+ <p v-for="(cont, cidx) in logList" :key="cidx">{{ cont }}</p>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -242,6 +255,9 @@ export default {
|
|
|
curTask: {},
|
|
|
multipleSelection: [],
|
|
|
loading: false,
|
|
|
+ // log dialog
|
|
|
+ modalIsShow: false,
|
|
|
+ logList: [],
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -337,6 +353,10 @@ export default {
|
|
|
this.$message.success("操作成功!");
|
|
|
this.getList();
|
|
|
},
|
|
|
+ toViewLog(row) {
|
|
|
+ this.logList = (row.summary || "").split("\n");
|
|
|
+ this.modalIsShow = true;
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|