|
@@ -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();
|