huangbin 4 years ago
parent
commit
a548863866

+ 2 - 0
src/views/information/custom/compoments/add/index.vue

@@ -10,6 +10,8 @@
     <template #footer>
       <a-button key="submit"
                 class="cancelBtn"
+                :loading="loading"
+                :disabled="loading"
                 @click="submit(1)">保存草稿
       </a-button>
       <a-button key="submit"

+ 3 - 0
src/views/information/custom/compoments/cancel/index.vue

@@ -9,10 +9,13 @@
     <template #footer>
       <a-button key="submit"
                 class="cancelBtn"
+                :loading="loading"
+                :disabled="loading"
                 @click="cancel">取消</a-button>
       <a-button key="submit"
                 type="primary"
                 :loading="loading"
+                :disabled="loading"
                 @click="submit">确认撤销</a-button>
     </template>
     <Detail :selectedRow="selectedRow" />

+ 8 - 6
src/views/information/custom/compoments/check/index.vue

@@ -14,11 +14,13 @@
       <a-button key="submit"
                 type="primary"
                 :loading="loading"
+                :disabled="loading"
                 @click="submit">审核通过
       </a-button>
       <a-button key="submit"
                 type="primary"
                 :loading="loading"
+                :disabled="loading"
                 @click="refuseSubmit">审核拒绝
       </a-button>
     </template>
@@ -30,11 +32,11 @@
 import { defineComponent, PropType, ref } from 'vue';
 import { closeModal } from '@/common/setup/modal/index';
 import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
-import {AuditWskhUserInfoReq, UserInfoCheckMangeReq} from '@/services/proto/accountinfo/interface';
+import { AuditWskhUserInfoReq, UserInfoCheckMangeReq } from '@/services/proto/accountinfo/interface';
 import { getUserId } from '@/services/bus/account';
 import { Modal } from 'ant-design-vue';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
-import {auditWskhUserInfo, userInfoCheck} from '@/services/proto/accountinfo';
+import { auditWskhUserInfo, userInfoCheck } from '@/services/proto/accountinfo';
 import Detail from '../common-detail/index.vue';
 
 export default defineComponent({
@@ -60,8 +62,8 @@ export default defineComponent({
                     let reqParam: AuditWskhUserInfoReq = {
                         UserID: props.selectedRow.userid, // uint64 用户ID(自增ID)SEQ_WSKH_USERINFO
                         UserState: 4, // uint32 审核状态:4-审核通过,5-审核拒绝
-                        AuditedBy: getUserId(),// uint64 审核人
-                        AuditRemark: ""
+                        AuditedBy: getUserId(), // uint64 审核人
+                        AuditRemark: '',
                     };
                     requestResultLoadingAndInfo(auditWskhUserInfo, reqParam, loading, ['审核成功', '审核失败:']).then(() => {
                         cancel();
@@ -82,8 +84,8 @@ export default defineComponent({
                     let reqParam: AuditWskhUserInfoReq = {
                         UserID: props.selectedRow.userid, // uint64 用户ID(自增ID)SEQ_WSKH_USERINFO
                         UserState: 5, // uint32 审核状态:4-审核通过,5-审核拒绝
-                        AuditedBy: getUserId(),// uint64 审核人
-                        AuditRemark: ""
+                        AuditedBy: getUserId(), // uint64 审核人
+                        AuditRemark: '',
                     };
                     requestResultLoadingAndInfo(auditWskhUserInfo, reqParam, loading, ['审核拒绝成功', '审核拒绝失败:']).then(() => {
                         cancel();

+ 1 - 0
src/views/information/custom/compoments/delete/index.vue

@@ -10,6 +10,7 @@
       <a-button key="submit"
                 type="primary"
                 :loading="loading"
+                :disabled="loading"
                 @click="submit">删除客户资料
       </a-button>
     </template>

+ 3 - 0
src/views/information/custom/compoments/disable/index.vue

@@ -10,11 +10,14 @@
     <template #footer>
       <a-button key="submit"
                 class="cancelBtn"
+                :loading="loading"
+                :disabled="loading"
                 @click="cancel">取消
       </a-button>
       <a-button key="submit"
                 type="primary"
                 :loading="loading"
+                :disabled="loading"
                 @click="submit">确认停用
       </a-button>
     </template>

+ 3 - 0
src/views/information/custom/compoments/modify/index.vue

@@ -11,11 +11,14 @@
     <template #footer>
       <a-button key="submit"
                 class="cancelBtn"
+                :loading="loading"
+                :disabled="loading"
                 @click="submit(1)">保存草稿
       </a-button>
       <a-button key="submit"
                 type="primary"
                 :loading="loading"
+                :disabled="loading"
                 @click="submit(2)">提交修改</a-button>
     </template>
     <a-form class="inlineForm"