Browse Source

BUG修复:#13561 部门、用户管理-导出按钮,不能导出勾选的某条信息问题
#13554 用户管理-更多-密码修改时,用户名可删除不可输入,点击确认报错问题

GDW 2 weeks ago
parent
commit
477f24987e

+ 3 - 1
jeecgboot-vue3/src/views/system/user/index.vue

@@ -600,7 +600,9 @@
    * 导出Excel
    */
   function handleExportExcel() {
-    handleExportXls("用户列表", getExportUrl, { queries: JSON.stringify(queries.value)})
+    console.log(selectedRowKeys.value)
+
+    handleExportXls("用户列表", getExportUrl, {queries: JSON.stringify(queries.value), selections: selectedRowKeys.value.toString()})
 
   }
   const cardBodyStyle = {

+ 4 - 1
jeecgboot-vue3/src/views/system/user/user.data.ts

@@ -343,7 +343,10 @@ export const formPasswordSchema: FormSchema[] = [
     label: '用户账号',
     field: 'username',
     component: 'Input',
-    componentProps: { readOnly: true },
+    componentProps: {
+      readOnly: true,
+      allowClear: false
+    },
   },
   {
     label: '登录密码',