huangbin 4 년 전
부모
커밋
eb789c2d4d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/information/account_info/compoments/modify-futures/index.vue

+ 3 - 1
src/views/information/account_info/compoments/modify-futures/index.vue

@@ -108,9 +108,11 @@ export default defineComponent({
         const { rules, formState, formRef, initFormData } = handleAddOrModifyFuturesForm();
         watchEffect(() => {
             if (visible.value) {
+              console.log(props.selectedData);
+              
                 mergeTwoObj(formState, props.selectedData?.mainAcc);
                 if(props.selectedData?.mainAcc) {
-                  formState.accountid = props.selectedData.mainAcc.accountid.toString()
+                  formState.accountid = props.selectedData.mainAcc.hedgeaccountcode
                 }
                 queryResultLoadingAndInfo(QueryFuturesCompany, loading).then((res) => {
                     companyList.value = res;