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

新建学科取消返回

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