Commit d278dbf7 by Elune

🔖 v2.4 版本发布,详情查看发行版说明

parent fafa2a7e
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
}, },
// 提交前的验证 // 提交前的验证
[CRUD.HOOK.afterValidateCU]() { [CRUD.HOOK.afterValidateCU]() {
if (!this.form.pid) { if (!this.form.pid && this.form.id !== 1) {
this.$message({ this.$message({
message: '上级部门不能为空', message: '上级部门不能为空',
type: 'warning' type: 'warning'
......
...@@ -157,7 +157,7 @@ import udOperation from '@crud/UD.operation' ...@@ -157,7 +157,7 @@ import udOperation from '@crud/UD.operation'
// crud交由presenter持有 // crud交由presenter持有
const defaultCrud = CRUD({ title: '菜单', url: 'api/menus', crudMethod: { ...crudMenu }}) const defaultCrud = CRUD({ title: '菜单', url: 'api/menus', crudMethod: { ...crudMenu }})
const defaultForm = { name: null, sort: 999, path: null, component: null, componentName: null, iframe: false, roles: [], pid: 0, icon: null, cache: false, hidden: false, type: 0, permission: null } const defaultForm = { id: null, name: null, sort: 999, path: null, component: null, componentName: null, iframe: false, roles: [], pid: 0, icon: null, cache: false, hidden: false, type: 0, permission: null }
export default { export default {
name: 'Menu', name: 'Menu',
components: { Treeselect, IconSelect, crudOperation, rrOperation, udOperation }, components: { Treeselect, IconSelect, crudOperation, rrOperation, udOperation },
......
...@@ -135,7 +135,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css' ...@@ -135,7 +135,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
// crud交由presenter持有 // crud交由presenter持有
const defaultCrud = CRUD({ title: '角色', url: 'api/roles', sort: 'level,asc', crudMethod: { ...crudRoles }}) const defaultCrud = CRUD({ title: '角色', url: 'api/roles', sort: 'level,asc', crudMethod: { ...crudRoles }})
const defaultForm = { name: null, depts: [], remark: null, dataScope: '全部', level: 3, permission: null } const defaultForm = { id: null, name: null, depts: [], remark: null, dataScope: '全部', level: 3, permission: null }
export default { export default {
name: 'Role', name: 'Role',
components: { Treeselect, pagination, crudOperation, rrOperation, udOperation }, components: { Treeselect, pagination, crudOperation, rrOperation, udOperation },
......
...@@ -119,7 +119,7 @@ import pagination from '@crud/Pagination' ...@@ -119,7 +119,7 @@ import pagination from '@crud/Pagination'
// crud交由presenter持有 // crud交由presenter持有
const defaultCrud = CRUD({ title: '定时任务', url: 'api/jobs', crudMethod: { ...crudJob }}) const defaultCrud = CRUD({ title: '定时任务', url: 'api/jobs', crudMethod: { ...crudJob }})
const defaultForm = { jobName: null, beanName: null, methodName: null, params: null, cronExpression: null, isPause: false, remark: null } const defaultForm = { id: null, jobName: null, beanName: null, methodName: null, params: null, cronExpression: null, isPause: false, remark: null }
export default { export default {
name: 'Timing', name: 'Timing',
components: { Log, pagination, crudOperation, rrOperation }, components: { Log, pagination, crudOperation, rrOperation },
......
...@@ -211,7 +211,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css' ...@@ -211,7 +211,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
let userRoles = [] let userRoles = []
// crud交由presenter持有 // crud交由presenter持有
const defaultCrud = CRUD({ title: '用户', url: 'api/users', crudMethod: { ...crudUser }}) const defaultCrud = CRUD({ title: '用户', url: 'api/users', crudMethod: { ...crudUser }})
const defaultForm = { username: null, nickName: null, sex: '男', email: null, enabled: 'false', roles: [], job: { id: null }, dept: { id: null }, phone: null } const defaultForm = { id: null, username: null, nickName: null, sex: '男', email: null, enabled: 'false', roles: [], job: { id: null }, dept: { id: null }, phone: null }
export default { export default {
name: 'User', name: 'User',
components: { Treeselect, crudOperation, rrOperation, udOperation, pagination }, components: { Treeselect, crudOperation, rrOperation, udOperation, pagination },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment