|
@@ -57,6 +57,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { getTodayStr } from "@/utils/date";
|
|
import { getTodayStr } from "@/utils/date";
|
|
|
|
+import { mapState } from "vuex";
|
|
export default {
|
|
export default {
|
|
name: "page-learn-child",
|
|
name: "page-learn-child",
|
|
components: {},
|
|
components: {},
|
|
@@ -80,7 +81,11 @@ export default {
|
|
learnChildList: []
|
|
learnChildList: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- computed: {},
|
|
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState({
|
|
|
|
+ chooseEngneeringWork: state => state.user.chooseEngneeringWork
|
|
|
|
+ })
|
|
|
|
+ },
|
|
created() {},
|
|
created() {},
|
|
mounted() {
|
|
mounted() {
|
|
this.getChildList();
|
|
this.getChildList();
|
|
@@ -113,12 +118,16 @@ export default {
|
|
let path = {
|
|
let path = {
|
|
categoryId: this.learnChildList[this.choosedChildIndex].id
|
|
categoryId: this.learnChildList[this.choosedChildIndex].id
|
|
};
|
|
};
|
|
|
|
+ let params = {
|
|
|
|
+ type: this.chooseEngneeringWork.value
|
|
|
|
+ };
|
|
this.$_http
|
|
this.$_http
|
|
.get(
|
|
.get(
|
|
this.$pathParams(
|
|
this.$pathParams(
|
|
this.$_API.JTXT_GET_CATEGORIES_CATEGROYID_MATERIALS,
|
|
this.$_API.JTXT_GET_CATEGORIES_CATEGROYID_MATERIALS,
|
|
path
|
|
path
|
|
- )
|
|
|
|
|
|
+ ),
|
|
|
|
+ { params }
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.formatNeedStudyTodayFun(res.data);
|
|
this.formatNeedStudyTodayFun(res.data);
|