upDateResult.vue
1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<template>
<div>
<el-table ref="filterTable" class="mt20" :data="tableData" size="small" border>
<!-- <el-table-column label="行号" prop="line" width="50" align="center">
</el-table-column> -->
<el-table-column label="序号" type="index" width="70" align="center" />
<el-table-column label="错误信息" prop="errorMessage">
<template slot-scope="scope">
{{scope.row}}
<!-- <div v-for="(m, key) in scope.row.errorMessage" :key="key">
{{ m }}
</div> -->
</template>
</el-table-column>
<!-- <el-table-column v-if="tableData.length == 0"></el-table-column>
<el-table-column v-for="(value, key) in tableData" :key="key" v-if="key != 'errorMessage' && key != 'line'"
header-align="center" align="center" :label="key" :prop="key"></el-table-column> -->
</el-table>
</div>
</template>
<script>
export default {
name: 'UpDateResult',
data() {
return {
tableData: [],
fromRoute: ''
}
},
created() {
this.tableData = this.$route.params.data
this.fromRoute = this.$route.params.from
},
wactch: {
dialogVisible(val) {
if (val) {
}
}
},
methods: {
close() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$store.state.tagsView.visitedViews.splice(
this.$store.state.tagsView.visitedViews.findIndex(
(item) => item.path === this.$route.path
),
);
this.$router.push({ name: this.fromRoute })
}
}
}
</script>
<style lang="scss" scoped>
</style>