소스 검색

修改bug

Renxy 2 년 전
부모
커밋
793d0c8fe2
2개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 3
      src/pages/PurchaseAdmin/PurchaseList/Detail/Index.js
  2. 0 2
      src/pages/PurchaseAdmin/PurchaseList/Flow/models/flow.js

+ 3 - 3
src/pages/PurchaseAdmin/PurchaseList/Detail/Index.js

@@ -950,9 +950,6 @@ function Detail(props) {
       callback,
     });
   };
-  dispatch({
-    type: 'user/getRoleList',
-  });
   useEffect(() => {
     dispatch({
       type: 'detail/queryProjectRecord',
@@ -966,6 +963,9 @@ function Detail(props) {
         id: templateId,
       },
     });
+    dispatch({
+      type: 'user/getRoleList',
+    });
     dispatch({
       type: 'user/fetch',
     });

+ 0 - 2
src/pages/PurchaseAdmin/PurchaseList/Flow/models/flow.js

@@ -255,8 +255,6 @@ export default {
     },
     *queryProcessFlows({ payload }, { call, put }) {
       const data = yield call(queryProcessFlows, payload);
-      console.log(data);
-      console.log(JSON.parse(data[0].form_json));
       if (data && data.length > 0) {
         yield put({
           type: 'save',