@@ -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;
});
@@ -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;
@@ -12,7 +12,7 @@
"lib": ["esnext", "dom"],
"baseUrl": ".",
"allowJs": true,
- "noImplicitAny": true,
+ "noImplicitAny": false,
"paths": {
"@/*": ["src/*"]
},