Commit 93d0e957 by wangguangchao

release优化

parent 2f36849d
......@@ -50,6 +50,7 @@ export default {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("trnrel/searow", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
......@@ -147,13 +148,23 @@ export default {
type: 'success',
message: 'Release成功!'
});
// this.onSearow();
await this.sleep(2000);
this.$router.go(0);
}
else {
that.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
},
sleep (ms) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve()
}, ms)
})
},
onPrinte() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid)
......
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