Browse Source

修改备注

zangbin 3 years ago
parent
commit
efabf9a210
2 changed files with 4 additions and 7 deletions
  1. 1 1
      web-ui/src/views/module/agent/agent.vue
  2. 3 6
      web-ui/src/views/module/agent/info.vue

+ 1 - 1
web-ui/src/views/module/agent/agent.vue

@@ -629,7 +629,7 @@ export default {
           this.form.cityName = this.startArea.cityName
           this.form.districtName = this.startArea.districtName
 
-
+          // 不允许重复提交
           const loading = this.$loading({
             lock: true,
             text: 'Loading',

+ 3 - 6
web-ui/src/views/module/agent/info.vue

@@ -243,8 +243,7 @@
         </el-form-item> -->
       </el-form>
       <div slot="footer" class="dialog-footer">
-        {{this.subLoading}}
-        <el-button type="primary" @click="submitForm" :loading="subLoading">确 定</el-button>
+        <el-button type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
@@ -265,7 +264,6 @@ export default {
   },
   data() {
     return {
-      subLoading: false,
       // 登录用户
       user: {},
       maxRate: '',
@@ -575,15 +573,14 @@ export default {
           this.form.cityName = this.startArea.cityName
           this.form.districtName = this.startArea.districtName
 
+          // 不允许重复提交
           const loading = this.$loading({
             lock: true,
             text: 'Loading',
             spinner: 'el-icon-loading',
             background: 'rgba(0, 0, 0, 0.7)'
-          });
+          });    
           
-          // 不允许重复提交
-          this.subLoading = true
           if (this.form.id != null) {
             updateAgent(this.form).then(response => {
               loading.close();