marymelisa vor 4 Jahren
Ursprung
Commit
a43096e064

+ 25 - 13
src/views/information/account_info/compoments/cancel-business/index.vue

@@ -23,6 +23,7 @@ import { initData } from '@/common/methods/index';
 import { defineComponent, ref, reactive, toRaw, UnwrapRef } from 'vue';
 import { AllEnums } from '@/services/go/commonService/interface';
 import { RuleObject, ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
+import { Modal} from 'ant-design-vue';
 
 export default defineComponent({
     name: 'add-custom',
@@ -46,18 +47,29 @@ export default defineComponent({
         // function isPersonal(): boolean {
         //     return formState.userinfotype === '1';
         // }
-        // function submit() {
-        //     formRef.value
-        //         .validate()
-        //         .then(() => {
-        //             const param = toRaw(formState);
-        //             applyAction(param);
-        //             console.log('values', formState);
-        //         })
-        //         .catch((error: ValidateErrorEntity<FormState>) => {
-        //             console.log('error', error);
-        //         });
-        // }
+        function submit() {
+            // formRef.value
+            //     .validate()
+            //     .then(() => {
+            //         const param = toRaw(formState);
+            //         applyAction(param);
+            //         console.log('values', formState);
+            //     })
+            //     .catch((error: ValidateErrorEntity<FormState>) => {
+            //         console.log('error', error);
+            //     });
+             Modal.confirm({
+                title: '是否确认注销该账户',
+                okText: '确认注销',
+                cancelText: '取消',
+                onOk() {
+                    
+                },
+                onCancel() {
+                    console.log('Cancel');
+                },
+            });
+        }
         return {
             // formState,
             // rules,
@@ -66,7 +78,7 @@ export default defineComponent({
             // isPersonal,
             visible,
             cancel,
-            // submit,
+            submit,
             // loading,
         };
     },

+ 23 - 10
src/views/information/account_info/compoments/locked-business/index.vue

@@ -24,6 +24,8 @@ import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
 import {loginAccountOperate} from "@/services/proto/accountinfo";
 import {LoginaccountOperateReq} from "@/services/proto/accountinfo/interface";
 import {ErmcpLoginUser} from "@/services/go/ermcp/account/interface";
+import { Modal} from 'ant-design-vue';
+
 
 export default defineComponent({
     name: 'add-custom',
@@ -39,16 +41,27 @@ export default defineComponent({
         const { visible, cancel } = closeModal('account_info_business_btn_locked');
         const loading = ref<boolean>(false);
         function submit() {
-            let reqParam: LoginaccountOperateReq = {
-                userid: props.selectedData.userid,
-                loginid: props.selectedData.loginid,
-                operatetype: 5,  // 5: 锁定 6:解锁
-                logintaaccounts: [],
-            }
-            debugger
-            requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['账户锁定成功', '账户锁定失败:']).then(() => {
-                cancel();
-                context.emit('refresh');
+            // let reqParam: LoginaccountOperateReq = {
+            //     userid: props.selectedData.userid,
+            //     loginid: props.selectedData.loginid,
+            //     operatetype: 5,  // 5: 锁定 6:解锁
+            //     logintaaccounts: [],
+            // }
+            // debugger
+            // requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['账户锁定成功', '账户锁定失败:']).then(() => {
+            //     cancel();
+            //     context.emit('refresh');
+            // });
+            Modal.confirm({
+                title: '是否确认锁定该账户',
+                okText: '确认锁定',
+                cancelText: '取消',
+                onOk() {
+                    
+                },
+                onCancel() {
+                    console.log('Cancel');
+                },
             });
         }
         return {