Commit bde00f75784a5bfeffaf2eff531601dd1ed2a687
1 parent
48d0decf
修复班组表格查询两次
Showing
1 changed file
with
2 additions
and
2 deletions
src/mes/teamInfo/index.js
| @@ -33,10 +33,10 @@ const teamInfoSid = "17086669370007136849817837261000"; | @@ -33,10 +33,10 @@ const teamInfoSid = "17086669370007136849817837261000"; | ||
| 33 | let loginInfo = {}; | 33 | let loginInfo = {}; |
| 34 | // 业务层 | 34 | // 业务层 |
| 35 | const useTeamInfoEvent = props => { | 35 | const useTeamInfoEvent = props => { |
| 36 | - const { formData, mesRefresh } = props; | 36 | + const { formData, mesRefresh = true} = props; |
| 37 | useEffect( | 37 | useEffect( |
| 38 | async () => { | 38 | async () => { |
| 39 | - if (commonUtils.isNotEmptyArr(formData)) { | 39 | + if (commonUtils.isNotEmptyArr(formData) && mesRefresh) { |
| 40 | const colunmData = handleGetColumnData(formData, true); | 40 | const colunmData = handleGetColumnData(formData, true); |
| 41 | const result = await handleGetData(formData, true); | 41 | const result = await handleGetData(formData, true); |
| 42 | const addState = { | 42 | const addState = { |