|
@@ -358,27 +358,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- if (this.$route.query.searchForm) {
|
|
|
- this.$route.query.searchForm instanceof Object ? this.searchForm = this.$route.query.searchForm : this.searchForm = JSON.parse(this.$route.query.searchForm);
|
|
|
- }
|
|
|
- if (this.$route.query.rules) {
|
|
|
- this.$route.query.rules instanceof Object ? this.rules = this.$route.query.rules : this.rules = JSON.parse(this.$route.query.rules);
|
|
|
- }
|
|
|
+ this.init();
|
|
|
+ },
|
|
|
+ activated () {
|
|
|
+ this.init();
|
|
|
},
|
|
|
mounted () {
|
|
|
- getEmployeeOrgan().then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.organList = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
- this.getList();
|
|
|
- // 首先获取课程形式
|
|
|
- // 获取分部id
|
|
|
- vipGroupCategory().then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.courseStatusList = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
+
|
|
|
},
|
|
|
filters: {
|
|
|
onlinePip (val) {
|
|
@@ -478,6 +464,27 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ init () {
|
|
|
+ if (this.$route.query.searchForm) {
|
|
|
+ this.$route.query.searchForm instanceof Object ? this.searchForm = this.$route.query.searchForm : this.searchForm = JSON.parse(this.$route.query.searchForm);
|
|
|
+ }
|
|
|
+ if (this.$route.query.rules) {
|
|
|
+ this.$route.query.rules instanceof Object ? this.rules = this.$route.query.rules : this.rules = JSON.parse(this.$route.query.rules);
|
|
|
+ }
|
|
|
+ getEmployeeOrgan().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.organList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.getList();
|
|
|
+ // 首先获取课程形式
|
|
|
+ // 获取分部id
|
|
|
+ vipGroupCategory().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.courseStatusList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
onCheckAllBranch () {
|
|
|
// 适用所有分部
|
|
|
this.resetForm.organ = []
|