功能变化: 部门允许选择父级
This commit is contained in:
@@ -408,6 +408,6 @@ PLUGINS_URL_PATTERNS = []
|
|||||||
# from dvadmin_third.settings import * # 第三方用户管理
|
# from dvadmin_third.settings import * # 第三方用户管理
|
||||||
# from dvadmin_ak_sk.settings import * # 秘钥管理管理
|
# from dvadmin_ak_sk.settings import * # 秘钥管理管理
|
||||||
# from dvadmin_tenants.settings import * # 租户管理
|
# from dvadmin_tenants.settings import * # 租户管理
|
||||||
from dvadmin_social_auth.settings import *
|
#from dvadmin_social_auth.settings import *
|
||||||
# ...
|
# ...
|
||||||
# ********** 一键导入插件配置结束 **********
|
# ********** 一键导入插件配置结束 **********
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export const commonCrudConfig = (options = {
|
|||||||
return {
|
return {
|
||||||
dept_belong_id: {
|
dept_belong_id: {
|
||||||
title: '所属部门',
|
title: '所属部门',
|
||||||
type: 'dict-cascader',
|
type: 'dict-tree',
|
||||||
search: {
|
search: {
|
||||||
show: options.dept_belong_id?.search || false
|
show: options.dept_belong_id?.search || false
|
||||||
},
|
},
|
||||||
@@ -62,14 +62,12 @@ export const commonCrudConfig = (options = {
|
|||||||
multiple: false,
|
multiple: false,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
props: {
|
props: {
|
||||||
showAllLevels:false,
|
checkStrictly:true,
|
||||||
props: {
|
props: {
|
||||||
// 为什么这里要写两层props
|
// 为什么这里要写两层props
|
||||||
// 因为props属性名与fs的动态渲染的props命名冲突,所以要多写一层
|
// 因为props属性名与fs的动态渲染的props命名冲突,所以要多写一层
|
||||||
label: "name",
|
label: "name",
|
||||||
value: "id",
|
value: "id",
|
||||||
checkStrictly: true,
|
|
||||||
emitPath:false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -207,14 +207,7 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
|
|||||||
isTree: true,
|
isTree: true,
|
||||||
url: '/api/system/dept/all_dept/',
|
url: '/api/system/dept/all_dept/',
|
||||||
value: 'id',
|
value: 'id',
|
||||||
label: 'name',
|
label: 'name'
|
||||||
getData: async ({url}: { url: string }) => {
|
|
||||||
return request({
|
|
||||||
url: url,
|
|
||||||
}).then((ret: any) => {
|
|
||||||
return ret.data;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
column: {
|
column: {
|
||||||
minWidth: 150, //最小列宽
|
minWidth: 150, //最小列宽
|
||||||
@@ -231,6 +224,7 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
props: {
|
props: {
|
||||||
|
checkStrictly:true,
|
||||||
props: {
|
props: {
|
||||||
value: 'id',
|
value: 'id',
|
||||||
label: 'name',
|
label: 'name',
|
||||||
@@ -249,18 +243,6 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
|
|||||||
url: '/api/system/role/',
|
url: '/api/system/role/',
|
||||||
value: 'id',
|
value: 'id',
|
||||||
label: 'name',
|
label: 'name',
|
||||||
isTree: true,
|
|
||||||
getData: async ({url}: { url: string }) => {
|
|
||||||
return request({
|
|
||||||
url: url,
|
|
||||||
params: {
|
|
||||||
page: 1,
|
|
||||||
limit: 10,
|
|
||||||
},
|
|
||||||
}).then((ret: any) => {
|
|
||||||
return ret.data;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
column: {
|
column: {
|
||||||
minWidth: 100, //最小列宽
|
minWidth: 100, //最小列宽
|
||||||
|
|||||||
Reference in New Issue
Block a user