|
@@ -64,13 +64,13 @@
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { defineComponent, ref, PropType, watchEffect } from 'vue';
|
|
import { defineComponent, ref, PropType, watchEffect } from 'vue';
|
|
|
-import { handleBusinessForm } from './setup';
|
|
|
|
|
import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
|
|
import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { loginAccountOperate } from '@/services/proto/accountinfo';
|
|
import { loginAccountOperate } from '@/services/proto/accountinfo';
|
|
|
import { LoginaccountOperateReq } from '@/services/proto/accountinfo/interface';
|
|
import { LoginaccountOperateReq } from '@/services/proto/accountinfo/interface';
|
|
|
-import { FormState } from '../reset-business/interface';
|
|
|
|
|
|
|
+import { ResetPasswordFormState } from '../interface';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
|
|
+import { handlePasswordForm } from '../setup';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'account_info_trade_btn_reset',
|
|
name: 'account_info_trade_btn_reset',
|
|
@@ -83,7 +83,7 @@ export default defineComponent({
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
// 控制关闭弹窗
|
|
// 控制关闭弹窗
|
|
|
const { visible, cancel } = closeModal('account_info_trade_btn_reset');
|
|
const { visible, cancel } = closeModal('account_info_trade_btn_reset');
|
|
|
- const { rules, formState, formRef } = handleBusinessForm();
|
|
|
|
|
|
|
+ const { rules, formState, formRef } = handlePasswordForm();
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
|
if (visible.value) {
|
|
if (visible.value) {
|
|
@@ -92,7 +92,7 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
function submit() {
|
|
function submit() {
|
|
|
- validateAction<FormState>(formRef, formState).then((res) => {
|
|
|
|
|
|
|
+ validateAction<ResetPasswordFormState>(formRef, formState).then((res) => {
|
|
|
let reqParam: LoginaccountOperateReq = {
|
|
let reqParam: LoginaccountOperateReq = {
|
|
|
userid: props.selectedData.userid,
|
|
userid: props.selectedData.userid,
|
|
|
loginid: props.selectedData.loginid,
|
|
loginid: props.selectedData.loginid,
|