Commit 9d2a0a7e by huaying

Merge branch 'feature/act-code' into dev

parents ef458c17 0b8a5565
......@@ -82,6 +82,7 @@ export default {
if (res.data.code == 0) {
setTimeout(() => {
this.$route.meta.refresh = true;
this.$parent.btnLoading = false;
this.$router.go(-1);
this.form = {
hmType: 1,
......@@ -90,6 +91,7 @@ export default {
};
}, 1000);
} else {
this.$parent.btnLoading = false;
return this.$message.error(res.data.message);
}
});
......
......@@ -112,6 +112,8 @@ export default {
if (res.data.code == 0) {
setTimeout(() => {
this.$router.go(-1);
this.$parent.btnLoading = false;
this.form = {
hmType: 1,
name: '',
......@@ -120,6 +122,7 @@ export default {
};
}, 1000);
} else {
this.$parent.btnLoading = false;
return this.$message.error(res.data.message);
}
});
......@@ -129,6 +132,7 @@ export default {
if (res.data.code == 0) {
setTimeout(() => {
this.$route.meta.refresh = true;
this.$parent.btnLoading = false;
this.$router.go(-1);
this.form = {
hmType: 1,
......@@ -138,6 +142,7 @@ export default {
};
}, 1000);
} else {
this.$parent.btnLoading = false;
return this.$message.error(res.data.message);
}
});
......
......@@ -27,7 +27,7 @@
</el-form>
</div>
<div class="saveBtn">
<el-button type="primary" @click="save">保存</el-button>
<el-button type="primary" @click="save" :loading="btnLoading">保存</el-button>
</div>
</div>
</template>
......@@ -59,6 +59,7 @@ export default {
},
data() {
return {
btnLoading: false,
welcomeType: 1,
form: {
// hmType: 1, //1单人 2多人
......@@ -167,6 +168,7 @@ export default {
this.$refs.form.validate(async valid => {
if (valid) {
this.form.passFlag = this.form.passFlag ? 1 : 0;
this.btnLoading = true;
this.$emit('sumbit', this.form);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment