Ver código fonte

用户管理

jxq 3 semanas atrás
pai
commit
d551c556e8

+ 5 - 4
src/views/system/user/components/dept-tree.vue

@@ -64,10 +64,11 @@ function handleNodeClick(data: { [key: string]: any }) {
 
 onBeforeMount?.(() => {
   treeList().then((response) => {
-    if (response.data) {
-      deptId.value = response.data[0].id;
-      emits("node-click");
-    }
+    // lupeng说默认不让传
+    // if (response.data) {
+    //   deptId.value = response.data[0].id;
+    //   emits("node-click");
+    // }
     deptList.value = response.data;
   });
 });

+ 2 - 0
src/views/system/user/index.vue

@@ -548,6 +548,8 @@ async function loadDeptOptions() {
  *
  * @param type 弹窗类型  用户表单:user-form | 用户导入:user-import
  * @param id 用户ID
+ * @param {string} type
+ * @param {*} row
  */
 async function openDialog(type, row) {
   dialog.visible = true;

+ 1 - 1
tsconfig.json

@@ -12,7 +12,7 @@
     "lib": ["esnext", "dom"],
     "baseUrl": ".",
     "allowJs": true,
-    "noImplicitAny": true,
+    "noImplicitAny": false,
     "paths": {
       "@/*": ["src/*"]
     },