|
@@ -102,7 +102,8 @@
|
|
import {notify} from "../../constants"
|
|
import {notify} from "../../constants"
|
|
import TaskItem from '../../components/commons/TaskItem'
|
|
import TaskItem from '../../components/commons/TaskItem'
|
|
import ProjectItem from '../../components/commons/ProjectItem'
|
|
import ProjectItem from '../../components/commons/ProjectItem'
|
|
- import {storageGet} from '@/js/index'
|
|
|
|
|
|
+ import {defaultValue, getRolesPermissions, storageGet} from '@/js/index'
|
|
|
|
+ import {mapActions, mapGetters} from 'vuex';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'PopularProjectAndTaskList',
|
|
name: 'PopularProjectAndTaskList',
|
|
@@ -224,12 +225,16 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleSearchData() {
|
|
handleSearchData() {
|
|
- console.log("this.searchVal " + this.searchVal)
|
|
|
|
this.activePage = 1;
|
|
this.activePage = 1;
|
|
- if (this.currTab == 'project') {
|
|
|
|
|
|
+ console.log("this.searchType " + this.searchType);;
|
|
|
|
+ if (this.searchType === 'project') {
|
|
|
|
+ this.currTab = 'project';
|
|
this.getHotProject();
|
|
this.getHotProject();
|
|
|
|
+ console.log("currTab " + this.currTab)
|
|
} else {
|
|
} else {
|
|
|
|
+ this.currTab = 'task';
|
|
this.getHotTask();
|
|
this.getHotTask();
|
|
|
|
+ console.log("currTab " + this.currTab)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handlePageChange(index) {
|
|
handlePageChange(index) {
|