diff --git a/src/api/org/org.js b/src/api/org/org.js
new file mode 100644
index 0000000..0751f08
--- /dev/null
+++ b/src/api/org/org.js
@@ -0,0 +1,45 @@
+import request from '@/utils/request'
+
+const orgApi = {
+ add: 'sys/org/add',
+ edit: 'sys/org/edit',
+ del: 'sys/org/del',
+ list: 'sys/org/list',
+ page: 'sys/org/pageList',
+}
+
+export function orgAdd (params) {
+ return request({
+ url: orgApi.add,
+ method: 'post',
+ data: params
+ })
+}
+export function orgEdit (params) {
+ return request({
+ url: orgApi.edit,
+ method: 'post',
+ data: params
+ })
+}
+export function orgDel (params) {
+ return request({
+ url: orgApi.del,
+ method: 'post',
+ params: params
+ })
+}
+export function orgList (params) {
+ return request({
+ url: orgApi.list,
+ method: 'get',
+ params: params
+ })
+}
+export function orgPage (params) {
+ return request({
+ url: orgApi.page,
+ method: 'get',
+ params: params
+ })
+}
diff --git a/src/api/project/class.js b/src/api/project/class.js
new file mode 100644
index 0000000..cac2709
--- /dev/null
+++ b/src/api/project/class.js
@@ -0,0 +1,38 @@
+import request from '@/utils/request'
+
+const classApi = {
+ get: '/project/species/get',
+ add: '/project/species/add',
+ del: '/project/species/del',
+ list: '/project/species/pageList'
+}
+
+export function classAdd(params) {
+ return request({
+ url: classApi.add,
+ method: 'post',
+ data: params
+ })
+}
+export function classGet(params) {
+ return request({
+ url: classApi.getDict,
+ method: 'get',
+ params: params
+ })
+}
+export function classDel (params) {
+ return request({
+ url: classApi.get,
+ method: 'delete',
+ data: params
+ })
+}
+export function classList(params) {
+ console.log("------------{}", params)
+ return request({
+ url: classApi.list,
+ method: 'get',
+ params: params
+ })
+}
diff --git a/src/layouts/BasicLayout.less b/src/layouts/BasicLayout.less
index a0762ec..371f01a 100644
--- a/src/layouts/BasicLayout.less
+++ b/src/layouts/BasicLayout.less
@@ -34,3 +34,9 @@
}
}
+.ant-layout-sider {
+ flex: 0 0 230px !important;
+ max-width: 230px !important;
+ min-width: 230px !important;
+ width: 230px !important;
+}
diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue
index 67679aa..5b6cce9 100644
--- a/src/layouts/BasicLayout.vue
+++ b/src/layouts/BasicLayout.vue
@@ -120,4 +120,10 @@ export default {
diff --git a/src/store/getters.js b/src/store/getters.js
index b83c4f4..a65fb87 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -5,7 +5,7 @@ const getters = {
color: state => state.app.color,
token: state => state.user.token,
avatar: state => state.user.avatar,
- nickname: state => state.user.name,
+ name: state => state.user.name,
welcome: state => state.user.welcome,
roles: state => state.user.roles,
buttons: state => state.user.buttons,
diff --git a/src/utils/permissions.js b/src/utils/permissions.js
index 768f921..83b0bb1 100644
--- a/src/utils/permissions.js
+++ b/src/utils/permissions.js
@@ -14,8 +14,8 @@ export function actionToObject (json) {
*/
export function hasBtnPermission (permission) {
const myBtns = store.getters.buttons
- const nickname = store.getters.nickname
- if (nickname == '超级管理员') {
+ const name = store.getters.name
+ if (name == 'admin') {
return true
}
return myBtns.indexOf(permission) > -1
diff --git a/src/views/org/OrgForm.vue b/src/views/org/OrgForm.vue
new file mode 100644
index 0000000..de7fc6a
--- /dev/null
+++ b/src/views/org/OrgForm.vue
@@ -0,0 +1,205 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ id }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/org/OrgList.vue b/src/views/org/OrgList.vue
new file mode 100644
index 0000000..d76244f
--- /dev/null
+++ b/src/views/org/OrgList.vue
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ singleDelete(record)">
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ singleDelete(record)">
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/project/AddClass.vue b/src/views/project/AddClass.vue
deleted file mode 100644
index 036daba..0000000
--- a/src/views/project/AddClass.vue
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/project/ProjectList.vue b/src/views/project/ProjectList.vue
index d8bd0cc..414113b 100644
--- a/src/views/project/ProjectList.vue
+++ b/src/views/project/ProjectList.vue
@@ -38,9 +38,9 @@
(queryParam = {})">重置
-
- 新建
- 删除
+
+ 新增项目
+ 删除项目
+
@@ -75,16 +76,12 @@
import moment from 'moment'
import { STable } from '@/components'
import { getProjectList } from '@/api/project/project'
-import ProjectForm from '@/views/project/form/ProjectForm'
-import router from '@/router/index.js'
+import projectStepForm from './ProjectStepForm'
export default {
- name: 'ProjectList',
- props: {},
components: {
STable,
- ProjectForm,
- router,
+ projectStepForm,
},
data() {
return {
@@ -153,10 +150,10 @@ export default {
methods: {
// 增
handledCreate() {
- return this.$router.push(
- // {name: 'ProjectForm'}
- { path: 'project/project/add' }
- )
+ // return this.$router.push(
+ // // {name: 'ProjectForm'}
+ // { path: 'project/project/add' }
+ // )
// router.push()
},
diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue
new file mode 100644
index 0000000..89ee36e
--- /dev/null
+++ b/src/views/project/ProjectStepForm.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/project/classAdd/ClassList.vue b/src/views/project/classAdd/ClassList.vue
new file mode 100644
index 0000000..8c7e439
--- /dev/null
+++ b/src/views/project/classAdd/ClassList.vue
@@ -0,0 +1,65 @@
+
+
+ 返回
+
+
+ {{ index + 1 }}
+
+
+
+ handleDelete(record)">
+ handleDetail(record)">删除
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/project/form/ProjectCourseSelect.vue b/src/views/project/form/ProjectCourseSelect.vue
index 8d6824f..08aee42 100644
--- a/src/views/project/form/ProjectCourseSelect.vue
+++ b/src/views/project/form/ProjectCourseSelect.vue
@@ -1,49 +1,42 @@
-
-
-
-
- 总课时:{{ totalHours }}, 总学时要求:{{ totalLearnHours }}, 总题目数量:{{ totalTopicNum }}
- 课程名:
-
- 查询
- (queryParam = {})">添加课程
-
-
-
- {{ index + 1 }}
-
-
-
-
- 课程预览
- 题库预览
- 必选题设置
-
-
-
-
-
- 下一步
- 取消
-
+
+
+
+ 总课时:{{ totalHours }}, 总学时要求:{{ totalLearnHours }}, 总题目数量:{{ totalTopicNum }}
+ 课程名:
+
+ 查询
+ (queryParam = {})">添加课程
-
-
+
+
+ {{ index + 1 }}
+
+
+
+
+ 课程预览
+ 题库预览
+ 必选题设置
+ handleDelete(record)">
+ 删除
+
+
+
+
+
+ 下一步
+ 取消
+
+
+
diff --git a/src/views/project/form/ProjectStepForm.vue b/src/views/project/form/ProjectStepForm.vue
deleted file mode 100644
index 745058b..0000000
--- a/src/views/project/form/ProjectStepForm.vue
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
- 将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/project/form/ProjectUnitSelect.vue b/src/views/project/form/ProjectUnitSelect.vue
index 9101380..cecb7b8 100644
--- a/src/views/project/form/ProjectUnitSelect.vue
+++ b/src/views/project/form/ProjectUnitSelect.vue
@@ -1,49 +1,47 @@
-
-
-
- 下一步
- 取消
-
+
-
-
+
+
-
-
-
- {
- onChecked(_, props, [...selectedKeys, ...targetKeys], itemSelect)
- }
- "
- @select="
- (_, props) => {
- onChecked(_, props, [...selectedKeys, ...targetKeys], itemSelect)
- }
- "
- />
-
-
-
-
+
+
+
+ {
+ onChecked(_, props, [...selectedKeys, ...targetKeys], itemSelect)
+ }
+ "
+ @select="
+ (_, props) => {
+ onChecked(_, props, [...selectedKeys, ...targetKeys], itemSelect)
+ }
+ "
+ />
+
+
+
+ 下一步
+ 取消
+
+
diff --git a/src/views/role/RoleList.vue b/src/views/role/RoleList.vue
deleted file mode 100644
index 024aa84..0000000
--- a/src/views/role/RoleList.vue
+++ /dev/null
@@ -1,168 +0,0 @@
-
-
-
-
-
-
-
- {{ item.describe }}
- {{ item.name }}
-
-
-
-
-
-
-
-
-
角色:{{ mdl.name }}
-
-
-
-
-
-
-
-
-
-
-
-
- 正常
- 禁用
-
-
-
-
-
-
-
-
-
-
- {{ permission.name }}:
-
-
-
- 全选
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/security/menu/MenuForm.vue b/src/views/security/menu/MenuForm.vue
index d75067d..013e5ad 100644
--- a/src/views/security/menu/MenuForm.vue
+++ b/src/views/security/menu/MenuForm.vue
@@ -67,7 +67,6 @@
:dropdownStyle="{ maxHeight: '300px', overflow: 'auto' }"
:treeData="menuTreeData"
placeholder="请选择父级菜单"
- treeDefaultExpandAll
:replaceFields="{
children:'children',
title:'name',