yu.jie 4 years ago
parent
commit
84e9280a82

+ 12 - 10
src/views/information/account_info/compoments/cancel-managers/index.vue

@@ -59,6 +59,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";
 
 export default defineComponent({
     name: 'account_info_manager_btn_logout',
@@ -78,16 +80,16 @@ export default defineComponent({
                 okText: '确认注销',
                 cancelText: '取消',
                 onOk() {
-                    // let reqParam: LoginaccountOperateReq = {
-                    //     userid: props.selectedData.userid,
-                    //     loginid: props.selectedData.loginid,
-                    //     operatetype: 7, // 5: 锁定 6:解锁
-                    //     logintaaccounts: [],
-                    // };
-                    // requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['账户注销成功', '账户注销失败:']).then(() => {
-                    //     cancel();
-                    //     context.emit('refresh');
-                    // });
+                    let reqParam: LoginaccountOperateReq = {
+                        userid: props.selectedData.userid,
+                        loginid: props.selectedData.loginid,
+                        operatetype: 7, // 5: 锁定 6:解锁
+                        logintaaccounts: [],
+                    };
+                    requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['账户注销成功', '账户注销失败:']).then(() => {
+                        cancel();
+                        context.emit('refresh');
+                    });
                 },
                 onCancel() {
                     console.log('Cancel');

+ 12 - 10
src/views/information/account_info/compoments/locked-managers/index.vue

@@ -59,6 +59,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";
 
 export default defineComponent({
     name: 'account_info_manager_btn_locked',
@@ -78,16 +80,16 @@ export default defineComponent({
                 okText: '确认锁定',
                 cancelText: '取消',
                 onOk() {
-                    // let reqParam: LoginaccountOperateReq = {
-                    //     userid: props.selectedData.userid,
-                    //     loginid: props.selectedData.loginid,
-                    //     operatetype: 7, // 5: 锁定 6:解锁
-                    //     logintaaccounts: [],
-                    // };
-                    // 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: [],
+                    };
+                    requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['账户锁定成功', '账户锁定失败:']).then(() => {
+                        cancel();
+                        context.emit('refresh');
+                    });
                 },
                 onCancel() {
                     console.log('Cancel');

+ 12 - 10
src/views/information/account_info/compoments/unlocked-managers/index.vue

@@ -59,6 +59,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";
 
 export default defineComponent({
     name: 'account_info_manager_btn_unlocked',
@@ -78,16 +80,16 @@ export default defineComponent({
                 okText: '确认解锁',
                 cancelText: '取消',
                 onOk() {
-                    // let reqParam: LoginaccountOperateReq = {
-                    //     userid: props.selectedData.userid,
-                    //     loginid: props.selectedData.loginid,
-                    //     operatetype: 7, // 5: 锁定 6:解锁
-                    //     logintaaccounts: [],
-                    // };
-                    // requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['账户注销成功', '账户注销失败:']).then(() => {
-                    //     cancel();
-                    //     context.emit('refresh');
-                    // });
+                    let reqParam: LoginaccountOperateReq = {
+                        userid: props.selectedData.userid,
+                        loginid: props.selectedData.loginid,
+                        operatetype: 6, // 5: 锁定 6:解锁
+                        logintaaccounts: [],
+                    };
+                    requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['账户解锁成功', '账户解锁失败:']).then(() => {
+                        cancel();
+                        context.emit('refresh');
+                    });
                 },
                 onCancel() {
                     console.log('Cancel');