同步部门管理页面

This commit is contained in:
lxy
2025-01-06 20:36:10 +08:00
parent 2d69633660
commit e8f5edd9c3
2 changed files with 16 additions and 6 deletions

View File

@@ -263,10 +263,10 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
}), }),
column: { column: {
minWidth: 200, //最小列宽 minWidth: 200, //最小列宽
formatter({value,row,index}){ // formatter({value,row,index}){
const values = row.role_info.map((item:any) => item.name); // const values = row.role_info.map((item:any) => item.name);
return values.join(',') // return values.join(',')
} // }
}, },
form: { form: {
rules: [ rules: [
@@ -385,12 +385,12 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
}, },
avatar: { avatar: {
title: '头像', title: '头像',
type: 'avatar-cropper', type: 'avatar-uploader',
form: { form: {
show: false, show: false,
}, },
column:{ column:{
width:150, width:100,
showOverflowTooltip: true, showOverflowTooltip: true,
} }
}, },

View File

@@ -42,6 +42,15 @@
<template #actionbar-right> <template #actionbar-right>
<importExcel api="api/system/user/" v-auth="'user:Import'">导入 </importExcel> <importExcel api="api/system/user/" v-auth="'user:Import'">导入 </importExcel>
</template> </template>
<template #cell_avatar="scope">
<div v-if="scope.row.avatar" style="display: flex; justify-content: center; align-items: center;">
<el-image
style="width: 50px; height: 50px; border-radius: 50%; aspect-ratio: 1 /1 ; "
:src="getBaseURL(scope.row.avatar)"
:preview-src-list="[getBaseURL(scope.row.avatar)]"
:preview-teleported="true" />
</div>
</template>
</fs-crud> </fs-crud>
<el-dialog v-model="resetPwdVisible" title="重设密码" width="400px" draggable :before-close="handleResetPwdClose"> <el-dialog v-model="resetPwdVisible" title="重设密码" width="400px" draggable :before-close="handleResetPwdClose">
@@ -69,6 +78,7 @@ import { ECharts, EChartsOption, init } from 'echarts';
import { getDeptInfoById, resetPwd } from './api'; import { getDeptInfoById, resetPwd } from './api';
import { warningNotification, successNotification } from '/@/utils/message'; import { warningNotification, successNotification } from '/@/utils/message';
import { HeadDeptInfoType } from '../../types'; import { HeadDeptInfoType } from '../../types';
import {getBaseURL} from '/@/utils/baseUrl';
let deptCountChart: ECharts; let deptCountChart: ECharts;
let deptSexChart: ECharts; let deptSexChart: ECharts;