diff --git a/src/api/project/class.js b/src/api/project/class.js
index cac2709..f13d54f 100644
--- a/src/api/project/class.js
+++ b/src/api/project/class.js
@@ -23,9 +23,9 @@ export function classGet(params) {
}
export function classDel (params) {
return request({
- url: classApi.get,
+ url: classApi.del,
method: 'delete',
- data: params
+ params: params
})
}
export function classList(params) {
diff --git a/src/views/project/ProjectList.vue b/src/views/project/ProjectList.vue
index 414113b..239cf85 100644
--- a/src/views/project/ProjectList.vue
+++ b/src/views/project/ProjectList.vue
@@ -39,8 +39,7 @@
- 新增项目
- 删除项目
+ 新增项目
{{ index + 1 }}
- 修改
+ 修改
handleDelete(record)">
- 删除
+ 删除
详情
@@ -73,7 +71,6 @@
diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue
index 89ee36e..812d0cd 100644
--- a/src/views/project/ProjectStepForm.vue
+++ b/src/views/project/ProjectStepForm.vue
@@ -2,7 +2,7 @@
import Step1 from './form/ProjectForm'
import Step2 from './form/ProjectUnitSelect'
-import Step3 from './form/ProjectCourseSelect'
+import Step3 from './form/ProjectCourseList'
export default {
components: {
@@ -54,62 +54,22 @@ export default {
modalTitle: '新增项目',
visible: false,
confirmLoading: false,
- menuTreeData: [],
- componentShow: true,
- componentDisabled: false,
- componentRequired: true,
- routerRequired: true,
- routerShow: true,
- pidShow: true,
- permissionShow: true,
- permissionRequired: true,
- formLoading: true,
type: '',
- form: this.$form.createForm(this),
+ form: null
}
},
methods: {
// 新增打开页面初始化
- add1 (type) {
- this.modalTitle = "新增菜单"
+ add (type) {
+ this.modalTitle = "新增项目"
this.visible = true
-
- // // 默认选中菜单项,并初始化
- // this.form.getFieldDecorator('type', { valuePropName: 'checked', initialValue: '1' })
- // this.meneTypeFunc('1')
-
- // // 默认选中的单选框
- // this.form.getFieldDecorator('visible', { initialValue: true })
-
- // // 默认加载菜单树
- // this.getMenuTree()
-
this.formLoading = false
},
// 编辑打开页面初始化
edit (record) {
- this.modalTitle = "编辑菜单"
+ console.log(record)
+ this.modalTitle = "编辑项目"
this.visible = true
-
- // // 默认选中菜单项,并初始化
- // this.form.getFieldDecorator('type', { valuePropName: 'checked', initialValue: record.type.toString() })
- // this.meneTypeFunc(record.type.toString())
-
- // // 默认选中的单选框
- // // eslint-disable-next-line no-unused-vars
- // const visibleDef = false
- // // eslint-disable-next-line eqeqeq
- // if (record.visible == 1) {
- // this.visibleDef = true
- // }
- // this.form.getFieldDecorator('visible', { valuePropName: 'checked', initialValue: this.visibleDef })
-
- // setTimeout(() => {
- // this.setMenuItem(record)
- // // 默认加载菜单树
- // this.getMenuTree()
- // }, 100)
-
this.formLoading = false
},
@@ -122,6 +82,7 @@ export default {
},
//上一步
prevStep () {
+ console.log("返回上一步")
if (this.currentTab > 0) {
this.currentTab -= 1
}
diff --git a/src/views/project/classAdd/ClassForm.vue b/src/views/project/classAdd/ClassForm.vue
new file mode 100644
index 0000000..5778689
--- /dev/null
+++ b/src/views/project/classAdd/ClassForm.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/project/classAdd/ClassList.vue b/src/views/project/classAdd/ClassList.vue
index 8c7e439..494ea1b 100644
--- a/src/views/project/classAdd/ClassList.vue
+++ b/src/views/project/classAdd/ClassList.vue
@@ -1,37 +1,39 @@
-
- 返回
-
+
+ 新增种类
+
{{ index + 1 }}
- handleDelete(record)">
- handleDetail(record)">删除
+
+ 删除
-
-
+
+
+
diff --git a/src/views/project/form/ProjectCourseList.vue b/src/views/project/form/ProjectCourseList.vue
new file mode 100644
index 0000000..724f00d
--- /dev/null
+++ b/src/views/project/form/ProjectCourseList.vue
@@ -0,0 +1,119 @@
+
+
+
+
+ 总课时:{{ totalHours }}, 总学时要求:{{ totalLearnHours }}, 总题目数量:{{ totalTopicNum }}
+ 课程名:
+
+ 查询
+ 添加课程
+
+
+
+
+ {{ index + 1 }}
+
+
+
+ 课程预览
+ 题库预览
+ 必选题设置
+ handleDelete(record)">
+ 删除
+
+
+
+
+
+ 下一步
+ 上一步
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/project/form/ProjectCourseSelect.vue b/src/views/project/form/ProjectCourseSelect.vue
index 08aee42..5d53107 100644
--- a/src/views/project/form/ProjectCourseSelect.vue
+++ b/src/views/project/form/ProjectCourseSelect.vue
@@ -1,86 +1,41 @@
-
-
-
- 总课时:{{ totalHours }}, 总学时要求:{{ totalLearnHours }}, 总题目数量:{{ totalTopicNum }}
- 课程名:
-
- 查询
- (queryParam = {})">添加课程
-
-
-
- {{ index + 1 }}
-
-
-
-
- 课程预览
- 题库预览
- 必选题设置
- handleDelete(record)">
- 删除
-
-
-
-
-
- 下一步
- 取消
-
-
-
+
+
+
+
+ 系统课程
+ 自制课程
+
+
+
+ Content
+
+
+
\ No newline at end of file
diff --git a/src/views/project/form/ProjectForm.vue b/src/views/project/form/ProjectForm.vue
index 076bd45..106ac5d 100644
--- a/src/views/project/form/ProjectForm.vue
+++ b/src/views/project/form/ProjectForm.vue
@@ -1,127 +1,127 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 参数待替换
-
- 新增种类
-
-
-
-
-
- 必修课
- 选修课
-
-
-
-
-
-
- 培训
- 考试
- 培训-练习
- 培训-练习-考试
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
- -
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 参数待替换
+
+
+
+
+
+
+
+ 必修课
+ 选修课
+
+
+
+
+
+
+ 培训
+ 考试
+ 培训-练习
+ 培训-练习-考试
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- -
-
-
-
+ -
+
+
-
-
-
-
-
-
-
- -
-
-
-
+
+
+
+
+
+
+
-
+ -
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
-
-
-
-
-
-
- 补考次数:
-
-
-
-
- 随机补考
-
+
+
+
+
+
-
+ 补考次数:
+
+
+
+
+ 随机补考
+
+
+
-
-
-
- 允许
- 不允许
-
-
-
-
-
-
-
-
-
-
- 下一步
- 上一步
-
-
-
-
+
+
+
+ 允许
+ 不允许
+
+
+
+
+
+
+
+
+
+
+ 下一步
+
+
+
+
+