课程管理更新
This commit is contained in:
parent
82dce0315d
commit
5f1d4b31fd
|
@ -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() {
|
||||||
|
|
|
@ -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 }});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue