mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 22:51:05 +03:30
Show Test Result
This commit is contained in:
@@ -129,12 +129,17 @@ export default {
|
||||
lastPage: 1
|
||||
}),
|
||||
created() {
|
||||
this.load();
|
||||
if(this.$route.name == 'NotVerifyTestResult') {
|
||||
this.load(1, 'NotVerified');
|
||||
} else {
|
||||
this.load();
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
...mapMutations("modal", ["changeCurrentModal"]),
|
||||
async load(page = 1) {
|
||||
const result = await ApiService.get(urls.listTestResult(page));
|
||||
async load(page = 1, verified = null) {
|
||||
const result = await ApiService.get(urls.listTestResult(page, verified));
|
||||
if (result && result.status == 200) {
|
||||
this.items = result.data.data.data;
|
||||
this.currentPage = result.data.data.current_page;
|
||||
|
||||
Reference in New Issue
Block a user