diff --git a/src/utils/dict.js b/src/utils/dict.js index 83ad190..685029a 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -155,6 +155,7 @@ export const DICT_TYPE = { Drive_card_type : 'drive_card_type', File_type : 'file_type', Cource_type : 'cource_type', + COURCE_TYPE : 'cource_type', Car_blong : 'car_blong', // 车牌颜色 CAR_LICENSE_COLOR: 'car_license_color', diff --git a/src/views/drivingSchool/schoolCourse/courseApi/index.js b/src/views/drivingSchool/schoolCourse/courseApi/index.js new file mode 100644 index 0000000..0758aca --- /dev/null +++ b/src/views/drivingSchool/schoolCourse/courseApi/index.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 创建驾校课程分类 +export function createDlDriveSchoolCourse(data) { + return request({ + url: '/base/dl-drive-school-course/create', + method: 'post', + data: data + }) +} + +// 更新驾校课程分类 +export function updateDlDriveSchoolCourse(data) { + return request({ + url: '/base/dl-drive-school-course/update', + method: 'put', + data: data + }) +} + +// 删除驾校课程分类 +export function deleteDlDriveSchoolCourse(id) { + return request({ + url: '/base/dl-drive-school-course/delete?id=' + id, + method: 'delete' + }) +} + +// 获得驾校课程分类 +export function getDlDriveSchoolCourse(id) { + return request({ + url: '/base/dl-drive-school-course/get?id=' + id, + method: 'get' + }) +} + +// 获得驾校课程分类分页 +export function getDlDriveSchoolCoursePage(params) { + return request({ + url: '/base/dl-drive-school-course/page', + method: 'get', + params + }) +} +// 导出驾校课程分类 Excel +export function exportDlDriveSchoolCourseExcel(params) { + return request({ + url: '/base/dl-drive-school-course/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} \ No newline at end of file diff --git a/src/views/drivingSchool/schoolCourse/form/DlDriveSchoolCourseForm.vue b/src/views/drivingSchool/schoolCourse/form/DlDriveSchoolCourseForm.vue new file mode 100644 index 0000000..77bff50 --- /dev/null +++ b/src/views/drivingSchool/schoolCourse/form/DlDriveSchoolCourseForm.vue @@ -0,0 +1,147 @@ + + + diff --git a/src/views/drivingSchool/schoolCourse/index.vue b/src/views/drivingSchool/schoolCourse/index.vue index 7062ab7..e960056 100644 --- a/src/views/drivingSchool/schoolCourse/index.vue +++ b/src/views/drivingSchool/schoolCourse/index.vue @@ -1,308 +1,112 @@