提交 181ee444 编写于 作者: guofeng.chen's avatar guofeng.chen

新建学科取消返回

上级 6719ea21
......@@ -109,7 +109,7 @@
</template>
<el-form-item style="margin-top: 30px">
<el-button type="primary" @click="onSubmit">提交</el-button>
<el-button @click="onReset">取消</el-button>
<el-button @click="goBack">取消</el-button>
</el-form-item>
</el-form>
</div>
......@@ -292,12 +292,15 @@ export default {
if (res.code == "000000") {
this.$message.success('提交成功')
setTimeout(() => {
this.$router.back();
this.goBack();
}, 2000)
}
});
});
},
goBack() {
this.$router.back();
},
// 重置
onReset() {
if (this.detailInfo.id) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册