huangbin 4 anos atrás
pai
commit
eb789c2d4d

+ 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;