xiongchao 3 anos atrás
pai
commit
941463f37a
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      src/views/check/checkstandard/CheckStandard.vue

+ 4 - 1
src/views/check/checkstandard/CheckStandard.vue

@@ -54,7 +54,7 @@
         icon="download"
         @click="doExport">导出
       </a-button>
-      <a-button style="margin-left:8px;" type="primary" @click="doUpdateNo">
+      <a-button :confirmLoading="confirmLoading" style="margin-left:8px;" type="primary" @click="doUpdateNo">
         <a-icon type="upload"/>
         初始化编码
       </a-button>
@@ -146,6 +146,7 @@ export default {
   data () {
     return {
       // 查询参数
+      confirmLoading: false,
       queryParam: {
         type: this.checkType
       },
@@ -338,7 +339,9 @@ export default {
       })
     },
     doUpdateNo (record) {
+      this.confirmLoading = true
       updateCheckStandardNo().then(res => {
+        this.confirmLoading = false
         this.$message.info('编码生成成功')
         this.handleOk()
         this.$refs.table.clearSelected()