|
@@ -54,7 +54,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { updateCourseSimple, getCode, courseSimpleQuery } from "../api";
|
|
|
+import { updateCourseSimple, courseSimpleQuery } from "../api";
|
|
|
|
|
|
const initModalForm = {
|
|
|
id: null,
|
|
@@ -117,12 +117,8 @@ export default {
|
|
|
this.modalForm = this.$objAssign(initModalForm, val);
|
|
|
} else {
|
|
|
this.modalForm = { ...initModalForm };
|
|
|
- this.createCode();
|
|
|
}
|
|
|
},
|
|
|
- async createCode() {
|
|
|
- this.modalForm.courseCode = await getCode("COURSE_CODE");
|
|
|
- },
|
|
|
visibleChange() {
|
|
|
this.initData(this.instance);
|
|
|
},
|