课程管理更新

This commit is contained in:
18571350067 2021-11-01 20:12:23 +08:00
parent 82dce0315d
commit 5f1d4b31fd
2 changed files with 13 additions and 3 deletions

View File

@ -109,7 +109,7 @@
<script> <script>
import { courseAdd } from '@/api/course/course' import { courseAdd, getCourseDetails} from '@/api/course/course'
export default { export default {
name: 'step1', name: 'step1',
@ -126,8 +126,18 @@ export default {
}, },
components: { components: {
courseAdd, courseAdd,
getCourseDetails
},
created() {
getCourseDetails({id: this.$route.query.id }).then(res => {
this.form = res.data;
this.form.courseType = this.form.courseType+'';
this.form.industryInvolved = this.form.industryInvolved + '';
this.form.isRequired = this.form.isRequired + '';
});
}, },
created() {},
methods: { methods: {
// //
// getPersonType() { // getPersonType() {

View File

@ -38,7 +38,7 @@ export default {
this.$router.push({ path: '/course/CourseList', query: { } }); this.$router.push({ path: '/course/CourseList', query: { } });
}, },
edit(record) { edit(record) {
this.$router.push({ path : '/course/CourseAdd', query:{record}}) this.$router.push({ path : '/course/CourseAdd', query:{ id: this.queryParam.id }});
} }
}, },