From 4176d3b696a2bcf44829b5b646f5b678b8877c23 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期一, 04 八月 2025 14:00:10 +0800 Subject: [PATCH] 'ts报红 --- Web/src/views/Customer/fBS_CusExtend/component/editDialog.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Web/src/views/Customer/fBS_CusExtend/component/editDialog.vue b/Web/src/views/Customer/fBS_CusExtend/component/editDialog.vue index d335c35..d260286 100644 --- a/Web/src/views/Customer/fBS_CusExtend/component/editDialog.vue +++ b/Web/src/views/Customer/fBS_CusExtend/component/editDialog.vue @@ -18,8 +18,8 @@ ruleForm: {} as any, stores: {}, dropdownData: {} as any, - enterpriseList:[], - roleList:[] + enterpriseList:[] as any[], + roleList:[] as any[] }); // 鑷娣诲姞鍏朵粬瑙勫垯 @@ -49,7 +49,7 @@ }); // 鎵撳紑寮圭獥 -const openDialog = async (row: any, title: string, qiyeList,roleList) => { +const openDialog = async (row: any, title: string, qiyeList: any[], roleList: any[]) => { state.roleList = roleList state.enterpriseList = qiyeList state.title = title; @@ -80,14 +80,14 @@ } }); }; -const isLeaf = data => { +const isLeaf = (data: any[]) => { data.forEach(item => { if (!item.child) { item.leaf = true; } }); }; -const loadNode = (node, resolve) => { +const loadNode = (node: { level: number; data: any; }, resolve: (arg0: never[]) => any) => { if (node.level === 0) { isLeaf(node.data); return resolve(node.data); -- Gitblit v1.9.1