huangbin 4 éve
szülő
commit
139c363cb8

+ 78 - 77
src/views/information/account_info/compoments/add-futures/index.vue

@@ -1,79 +1,80 @@
 <template>
-    <!-- 新增期货账户 -->
-    <a-modal class="commonModal add-futures"
-             title="新增期货账户"
-             v-model:visible="visible"
-             @cancel="cancel"
-             centered
-             :maskClosable="false"
-             width="890px">
-        <template #footer>
-            <a-button key="submit"
-                      type="primary"
-                      :loading="loading"
-                      @click="cancel">取消
-            </a-button>
-            <a-button key="submit"
-                      type="primary"
-                      :loading="loading"
-                      @click="submit">新增
-            </a-button>
-        </template>
-        <a-form class="inlineForm"
-                ref="formRef"
-                :model="formState"
-                :rules="rules">
-            <a-row :gutter="24">
-                <a-col :span="12">
-                    <a-form-item label="期货公司"
-                                 name="fcid">
-                        <a-select class="inlineFormSelect"
-                                  style="width: 200px"
-                                  v-model:value="formState.fcid"
-                                  placeholder="请选择期货公司">
-                            <a-select-option :value="item.fcid"
-                                             :key="item.fcid"
-                                             v-for="item in companyList">{{item.fcname}}
-                            </a-select-option>
-                        </a-select>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="12">
-                    <a-form-item label="账户名称"
-                                 name="accountname">
-                        <a-input class="dialogInput"
-                                 style="width: 200px"
-                                 v-model:value="formState.accountname"
-                                 placeholder="请输入账户名称"/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="12">
-                    <a-form-item label="期货登录账号"
-                                 name="accountid">
-                        <a-input class="dialogInput"
-                                 style="width: 200px"
-                                 v-model:value="formState.accountid"
-                                 placeholder="请输入期货登录账号"/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="12">
-                    <a-form-item label="交易密码"
-                                 name="password">
-                        <a-input-password class="dialogInput"
-                                          style="width: 200px"
-                                          v-model:value="formState.password"
-                                          placeholder="请输入登录密码"/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="24">
-                    <a-form-item label="指定交易用户"
-                                 name="">
-                        <span class="white">{{getUserName()}}</span>
-                    </a-form-item>
-                </a-col>
-            </a-row>
-        </a-form>
-    </a-modal>
+  <!-- 新增期货账户 -->
+  <a-modal class="commonModal add-futures"
+           title="新增期货账户"
+           v-model:visible="visible"
+           @cancel="cancel"
+           centered
+           :maskClosable="false"
+           width="890px">
+    <template #footer>
+      <a-button key="submit"
+                type="primary"
+                :loading="loading"
+                @click="cancel">取消
+      </a-button>
+      <a-button key="submit"
+                type="primary"
+                :loading="loading"
+                @click="submit">新增
+      </a-button>
+    </template>
+    <a-form class="inlineForm"
+            ref="formRef"
+            :model="formState"
+            :rules="rules">
+      <a-row :gutter="24">
+        <a-col :span="12">
+          <a-form-item label="期货公司"
+                       name="fcid">
+            <a-select class="inlineFormSelect"
+                      style="width: 200px"
+                      v-model:value="formState.fcid"
+                      placeholder="请选择期货公司">
+              <a-select-option :value="item.fcid"
+                               :key="item.fcid"
+                               v-for="item in companyList">{{item.fcname}}
+              </a-select-option>
+            </a-select>
+          </a-form-item>
+        </a-col>
+        <a-col :span="12">
+          <a-form-item label="账户名称"
+                       name="accountname">
+            <a-input class="dialogInput"
+                     style="width: 200px"
+                     v-model:value="formState.accountname"
+                     placeholder="请输入账户名称" />
+          </a-form-item>
+        </a-col>
+        <a-col :span="12">
+          <a-form-item label="期货登录账号"
+                       name="accountid">
+            <a-input class="dialogInput"
+                     style="width: 200px"
+                     v-model:value="formState.accountid"
+                     placeholder="请输入期货登录账号" />
+          </a-form-item>
+        </a-col>
+        <a-col :span="12">
+          <a-form-item label="交易密码"
+                       name="password">
+            <a-input-password class="dialogInput"
+                              style="width: 200px"
+                              autocomplete="new-password"
+                              v-model:value="formState.password"
+                              placeholder="请输入登录密码" />
+          </a-form-item>
+        </a-col>
+        <a-col :span="24">
+          <a-form-item label="指定交易用户"
+                       name="">
+            <span class="white">{{getUserName()}}</span>
+          </a-form-item>
+        </a-col>
+      </a-row>
+    </a-form>
+  </a-modal>
 </template>
 
 <script lang="ts">
@@ -154,7 +155,7 @@
 </script>
 
 <style lang="less">
-    .add-futures {
-    }
+.add-futures {
+}
 </style
 >;