课程管理更新
This commit is contained in:
parent
82dce0315d
commit
5f1d4b31fd
|
@ -109,7 +109,7 @@
|
|||
|
||||
|
||||
<script>
|
||||
import { courseAdd } from '@/api/course/course'
|
||||
import { courseAdd, getCourseDetails} from '@/api/course/course'
|
||||
|
||||
export default {
|
||||
name: 'step1',
|
||||
|
@ -126,8 +126,18 @@ export default {
|
|||
},
|
||||
components: {
|
||||
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: {
|
||||
//获取字典值
|
||||
// getPersonType() {
|
||||
|
|
|
@ -38,7 +38,7 @@ export default {
|
|||
this.$router.push({ path: '/course/CourseList', query: { } });
|
||||
},
|
||||
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