Sfoglia il codice sorgente

删除多余代码

huangbin 4 anni fa
parent
commit
33c0845f22

+ 3 - 6
src/views/information/account_info/compoments/cancel-managers/index.vue

@@ -19,10 +19,7 @@
                 @click="submit">注销
       </a-button>
     </template>
-    <a-form class="inlineForm"
-            ref="formRef"
-            :model="formState"
-            :rules="rules">
+    <a-form class="inlineForm">
       <a-row :gutter="24">
         <a-col :span="12">
           <a-form-item label="账户权限"
@@ -59,8 +56,8 @@ import { closeModal } from '@/common/setup/modal/index';
 import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
 import { Modal } from 'ant-design-vue';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
-import {LoginaccountOperateReq} from "@/services/proto/accountinfo/interface";
-import {loginAccountOperate} from "@/services/proto/accountinfo";
+import { LoginaccountOperateReq } from '@/services/proto/accountinfo/interface';
+import { loginAccountOperate } from '@/services/proto/accountinfo';
 
 export default defineComponent({
     name: 'account_info_manager_btn_logout',

+ 1 - 4
src/views/information/account_info/compoments/credit-futures/index.vue

@@ -19,10 +19,7 @@
                 @click="submit">注销
       </a-button>
     </template>
-    <a-form class="inlineForm"
-            ref="formRef"
-            :model="formState"
-            :rules="rules">
+    <a-form class="inlineForm">
       <a-row :gutter="24">
         <a-col :span="12">
           <a-form-item label="账户权限"

+ 1 - 4
src/views/information/account_info/compoments/detail-managers/index.vue

@@ -12,10 +12,7 @@
                 type="primary"
                 @click="cancel">关闭</a-button>
     </template>
-    <a-form class="inlineForm"
-            ref="formRef"
-            :model="formState"
-            :rules="rules">
+    <a-form class="inlineForm">
       <a-row :gutter="24">
         <a-col :span="12">
           <a-form-item label="账户权限"

+ 3 - 6
src/views/information/account_info/compoments/locked-managers/index.vue

@@ -19,10 +19,7 @@
                 @click="submit">锁定
       </a-button>
     </template>
-    <a-form class="inlineForm"
-            ref="formRef"
-            :model="formState"
-            :rules="rules">
+    <a-form class="inlineForm">
       <a-row :gutter="24">
         <a-col :span="12">
           <a-form-item label="账户权限"
@@ -59,8 +56,8 @@ import { closeModal } from '@/common/setup/modal/index';
 import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
 import { Modal } from 'ant-design-vue';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
-import {LoginaccountOperateReq} from "@/services/proto/accountinfo/interface";
-import {loginAccountOperate} from "@/services/proto/accountinfo";
+import { LoginaccountOperateReq } from '@/services/proto/accountinfo/interface';
+import { loginAccountOperate } from '@/services/proto/accountinfo';
 
 export default defineComponent({
     name: 'account_info_manager_btn_locked',

+ 11 - 5
src/views/information/account_info/list/account_info_futures/index.vue

@@ -62,10 +62,13 @@
               @refresh="handleBtnAction" />
     <Modify :selectedData="addModelData"
             @refresh="handleBtnAction" />
-    <ModifyChild />
-    <Detail />
-    <Cancel />
-    <Credit />
+    <ModifyChild @refresh="handleBtnAction"
+                 :selectedData="moreModelData" />
+    <Detail :selectedData="moreModelData" />
+    <Cancel @refresh="handleBtnAction"
+            :selectedData="moreModelData" />
+    <Credit @refresh="handleBtnAction"
+            :selectedData="moreModelData" />
   </div>
 </template>
 
@@ -106,7 +109,8 @@ export default defineComponent({
 
         // 新增弹窗
         const { selectedData: addModelData, openAction } = handleModalData<ErmcpTaAccountEx>();
-
+        // 修改 重置密码、详情等弹窗
+        const { selectedData: moreModelData, openAction: moreOptenAction } = handleModalData<ErmcpTaAccountEx>();
         initData(() => {
             queryTable();
         });
@@ -117,6 +121,8 @@ export default defineComponent({
         return {
             addModelData,
             openAction,
+            moreModelData,
+            moreOptenAction,
             loading,
             search,
             tableList,