功能变化: 优化个人中心修改密码后强制退出登录状态
This commit is contained in:
1
backend/dvadmin/__init__.py
Normal file
1
backend/dvadmin/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
@@ -5,13 +5,13 @@ type GetListType = PageQuery & { show_all: string };
|
|||||||
|
|
||||||
export const apiPrefix = '/api/system/user/';
|
export const apiPrefix = '/api/system/user/';
|
||||||
|
|
||||||
export function GetDept(query: PageQuery) {
|
// export function GetDept(query: PageQuery) {
|
||||||
return request({
|
// return request({
|
||||||
url: '/api/system/dept/dept_lazy_tree/',
|
// url: '/api/system/dept/dept_all/',
|
||||||
method: 'get',
|
// method: 'get',
|
||||||
params: query,
|
// params: query,
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
export function GetList(query: GetListType) {
|
export function GetList(query: GetListType) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -220,7 +220,10 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
|||||||
label: 'name',
|
label: 'name',
|
||||||
}),
|
}),
|
||||||
column: {
|
column: {
|
||||||
minWidth: 150, //最小列宽
|
minWidth: 200, //最小列宽
|
||||||
|
formatter({value,row,index}){
|
||||||
|
return row.dept_name_all
|
||||||
|
}
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
rules: [
|
rules: [
|
||||||
@@ -259,7 +262,11 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
|||||||
label: 'name',
|
label: 'name',
|
||||||
}),
|
}),
|
||||||
column: {
|
column: {
|
||||||
minWidth: 100, //最小列宽
|
minWidth: 200, //最小列宽
|
||||||
|
formatter({value,row,index}){
|
||||||
|
const values = row.role_info.map((item:any) => item.name);
|
||||||
|
return values.join(',')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
rules: [
|
rules: [
|
||||||
@@ -382,6 +389,10 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
|||||||
form: {
|
form: {
|
||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
|
column:{
|
||||||
|
width:150,
|
||||||
|
showOverflowTooltip: true,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export const apiPrefix = '/api/system/user/';
|
|||||||
|
|
||||||
export function GetDept(query: PageQuery) {
|
export function GetDept(query: PageQuery) {
|
||||||
return request({
|
return request({
|
||||||
url: "/api/system/dept/dept_lazy_tree/",
|
url: "/api/system/dept/all_dept/",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query,
|
params: query,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -218,7 +218,10 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
|
|||||||
label: 'name'
|
label: 'name'
|
||||||
}),
|
}),
|
||||||
column: {
|
column: {
|
||||||
minWidth: 150, //最小列宽
|
minWidth: 200, //最小列宽
|
||||||
|
formatter({value,row,index}){
|
||||||
|
return row.dept_name_all
|
||||||
|
}
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
rules: [
|
rules: [
|
||||||
@@ -253,7 +256,11 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
|
|||||||
label: 'name',
|
label: 'name',
|
||||||
}),
|
}),
|
||||||
column: {
|
column: {
|
||||||
minWidth: 100, //最小列宽
|
minWidth: 200, //最小列宽
|
||||||
|
formatter({value,row,index}){
|
||||||
|
const values = row.role_info.map((item:any) => item.name);
|
||||||
|
return values.join(',')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|||||||
Reference in New Issue
Block a user