From e8f5edd9c3404660ecd51a13506fda2e2f914ded Mon Sep 17 00:00:00 2001
From: lxy <10179281+lxy0722@user.noreply.gitee.com>
Date: Mon, 6 Jan 2025 20:36:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=83=A8=E9=97=A8=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../system/dept/components/DeptUserCom/crud.tsx | 12 ++++++------
.../system/dept/components/DeptUserCom/index.vue | 10 ++++++++++
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/web/src/views/system/dept/components/DeptUserCom/crud.tsx b/web/src/views/system/dept/components/DeptUserCom/crud.tsx
index bcee5b0..bf2f9d6 100644
--- a/web/src/views/system/dept/components/DeptUserCom/crud.tsx
+++ b/web/src/views/system/dept/components/DeptUserCom/crud.tsx
@@ -263,10 +263,10 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
}),
column: {
minWidth: 200, //最小列宽
- formatter({value,row,index}){
- const values = row.role_info.map((item:any) => item.name);
- return values.join(',')
- }
+ // formatter({value,row,index}){
+ // const values = row.role_info.map((item:any) => item.name);
+ // return values.join(',')
+ // }
},
form: {
rules: [
@@ -385,12 +385,12 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
},
avatar: {
title: '头像',
- type: 'avatar-cropper',
+ type: 'avatar-uploader',
form: {
show: false,
},
column:{
- width:150,
+ width:100,
showOverflowTooltip: true,
}
},
diff --git a/web/src/views/system/dept/components/DeptUserCom/index.vue b/web/src/views/system/dept/components/DeptUserCom/index.vue
index f52db55..689bb1a 100644
--- a/web/src/views/system/dept/components/DeptUserCom/index.vue
+++ b/web/src/views/system/dept/components/DeptUserCom/index.vue
@@ -42,6 +42,15 @@
导入
+
+
+
+
+
@@ -69,6 +78,7 @@ import { ECharts, EChartsOption, init } from 'echarts';
import { getDeptInfoById, resetPwd } from './api';
import { warningNotification, successNotification } from '/@/utils/message';
import { HeadDeptInfoType } from '../../types';
+import {getBaseURL} from '/@/utils/baseUrl';
let deptCountChart: ECharts;
let deptSexChart: ECharts;