zhangwei
3 天以前 4176d3b696a2bcf44829b5b646f5b678b8877c23
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);