diff --git a/web/src/config/d2p-extends/types.js b/web/src/config/d2p-extends/types.js index aaf9622..c4b0043 100644 --- a/web/src/config/d2p-extends/types.js +++ b/web/src/config/d2p-extends/types.js @@ -92,21 +92,6 @@ export default { view: { component: { props: { height: 100, width: 100 } } }, - // 提交时,处理数据 - valueResolve (row, col) { - const value = row[col.key] - if (value != null) { - if (value.length >= 0) { - if (value instanceof Array) { - row[col.key] = value.toString() - } else { - row[col.key] = value[0] - } - } else { - row[col.key] = null - } - } - }, // 接收时,处理数据 valueBuilder (row, col) { const value = row[col.key] diff --git a/web/src/views/system/user/crud.js b/web/src/views/system/user/crud.js index a105645..0e9a97b 100644 --- a/web/src/views/system/user/crud.js +++ b/web/src/views/system/user/crud.js @@ -40,7 +40,7 @@ export const crudOptions = (vm) => { text: '', size: 'small', type: 'warning', - icon: 'el-icon-refresh-left', + icon: 'el-icon-key', show () { return vm.hasPermissions('ResetPwd') }, @@ -256,15 +256,15 @@ export const crudOptions = (vm) => { { title: '头像', key: 'avatar', - type: 'avatar-uploader', + type: 'avatar-cropper', width: 100, align: 'left', form: { component: { props: { elProps: { // 与el-uploader 配置一致 - multiple: true, - limit: 5 // 限制5个文件 + multiple: false, + limit: 1 // 限制5个文件 }, sizeLimit: 500 * 1024 // 不能超过限制 },