Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d82a5e6
Signed-off-by: Logaxn <[email protected]>
dyanalinga Mar 11, 2019
b505568
.
dyanalinga Mar 11, 2019
49ae4d9
Signed-off-by: Logaxn <[email protected]>
dyanalinga Mar 11, 2019
346e81e
.
dyanalinga Mar 11, 2019
08e0956
Signed-off-by: Logaxn <[email protected]>
dyanalinga Mar 11, 2019
9e381b1
.
dyanalinga Mar 11, 2019
e7c895c
Signed-off-by: Logaxn <[email protected]>
dyanalinga Mar 11, 2019
8c86d61
Signed-off-by: Logaxn <[email protected]>
dyanalinga Mar 12, 2019
f97911c
Signed-off-by: Logaxn <[email protected]>
dyanalinga Mar 12, 2019
22b28e1
Signed-off-by: Logaxn <[email protected]>
dyanalinga Mar 12, 2019
ddd18d6
Signed-off-by: Logaxn <[email protected]>
dyanalinga Mar 16, 2019
92dac9c
Signed-off-by: Logaxn <[email protected]>
dyanalinga Mar 16, 2019
2534df7
null
dyanalinga Mar 16, 2019
aeda631
Merge pull request #1 from PanJiaChen/master
marxangels Mar 16, 2019
b29a22b
Merge pull request #2 from PanJiaChen/master
marxangels Mar 17, 2019
1ff0560
Excel Export Error
marxangels Mar 19, 2019
7e3e530
Delete readme.md
marxangels Mar 19, 2019
6a8c061
Merge pull request #3 from PanJiaChen/master
marxangels Mar 19, 2019
0bf6a2e
Merge pull request #4 from PanJiaChen/master
marxangels Mar 25, 2019
7adafb3
Merge pull request #5 from PanJiaChen/master
marxangels Mar 28, 2019
d001cce
Merge pull request #6 from PanJiaChen/master
marxangels Mar 30, 2019
460a0ab
Merge pull request #7 from PanJiaChen/master
marxangels Apr 5, 2019
7f40044
Merge pull request #8 from PanJiaChen/master
marxangels Apr 17, 2019
7d089df
add tabindex
marxangels Apr 17, 2019
093e542
Merge pull request #9 from PanJiaChen/master
marxangels Apr 23, 2019
09fa0d9
Merge pull request #10 from PanJiaChen/master
marxangels May 4, 2019
321427f
Merge pull request #11 from PanJiaChen/master
marxangels May 9, 2019
d29330e
Merge pull request #12 from PanJiaChen/master
marxangels May 10, 2019
65b9749
Update errorLog.js
marxangels May 11, 2019
dbaaaea
Update index.vue
marxangels May 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/components/ErrorLog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
</el-button>
</el-badge>

<el-dialog :visible.sync="dialogTableVisible" title="Error Log" width="80%" append-to-body>
<el-dialog :visible.sync="dialogTableVisible" width="80%" append-to-body>
<div slot="title">
<span style="padding-right: 10px;">Error Log</span>
<el-button size="mini" type="primary" icon="el-icon-delete" @click="clearAll">Clear All</el-button>
</div>
<el-table :data="errorLogs" border>
<el-table-column label="Message">
<template slot-scope="{row}">
Expand Down Expand Up @@ -54,6 +58,12 @@ export default {
errorLogs() {
return this.$store.getters.errorLogs
}
},
methods: {
clearAll() {
this.dialogTableVisible = false
this.$store.dispatch('errorLog/clearErrorLog')
}
}
}
</script>
Expand Down
6 changes: 6 additions & 0 deletions src/store/modules/errorLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ const state = {
const mutations = {
ADD_ERROR_LOG: (state, log) => {
state.logs.push(log)
},
CLEAR_ERROR_LOG: (state) => {
state.logs.splice(0)
}
}

const actions = {
addErrorLog({ commit }, log) {
commit('ADD_ERROR_LOG', log)
},
clearErrorLog({ commit }) {
commit('CLEAR_ERROR_LOG')
}
}

Expand Down