| | |
| | | originMenu: JSON.parse(JSON.stringify(menu)), |
| | | selectedTables: _config.tables || [], |
| | | menuformlist: [ |
| | | // { |
| | | // type: 'select', |
| | | // key: 'firparentId', |
| | | // label: '一级菜单', |
| | | // initVal: menu.ParentID, |
| | | // required: true, |
| | | // readonly: false, |
| | | // options: this.props.supMenuList |
| | | // }, |
| | | { |
| | | type: 'select', |
| | | key: 'parentId', |
| | | label: this.state.dict['header.menu.supMenu'], |
| | | label: '二级菜单', |
| | | initVal: menu.ParentID, |
| | | required: true, |
| | | readonly: false, |
| | |
| | | |
| | | getFuncNames = (data, funcNames, tableNames) => { |
| | | data.forEach(item => { |
| | | console.log(item) |
| | | if (item.subfuncs) { |
| | | this.getFuncNames(item.subfuncs, funcNames, tableNames) |
| | | } else { |
| | |
| | | tableNames.push(item.tableName) |
| | | } |
| | | if (item.innerFunc) { |
| | | // funcNames.push({func: item.innerFunc, label: item}) |
| | | funcNames.push(item.innerFunc) |
| | | } |
| | | // if (item.outerFunc) { |
| | | // funcNames.push(item.outerFunc) |
| | | // } |
| | | |
| | | if (item.callbackFunc) { |
| | | funcNames.push(item.callbackFunc) |
| | | } |
| | |
| | | Sort: (this.props.supMenuList.length + 1) * 10, |
| | | PageParam: JSON.stringify(_pageParam), |
| | | LongParam: _LongParam, |
| | | LText: _funcs.map(item => `select '${menu.MenuID}' as MenuID,'${item}' as ProcName`), |
| | | LText: _funcs.map(item => `select '${menu.MenuID}' as MenuID,'${item}' as ProcName,'${item}' as MenuName`), |
| | | LTexttb: _tables.map(item => `select '${menu.MenuID}' as MenuID,'${item}' as tbName`) |
| | | } |
| | | |