|
|
@@ -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 {
|