Commit 3eb84f60 by 1377875331@qq.com

Merge remote-tracking branch 'origin/master'

parents 08947264 6c3c40e5
......@@ -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)
......@@ -194,7 +205,15 @@ export default {
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
var cacheFileName = rtnmsg.data.cacheFileName;
Api.post("trncor/init", {params:{"cacheFileName":cacheFileName}});
let rejrowRtnmsg = await Api.post("trncor/init", {params:{"cacheFileName":cacheFileName}})
if(rejrowRtnmsg.respCode == "AAAAAA"){
this.$message({
type: 'success',
message: 'Reject成功!'
});
await this.sleep(2000);
this.$router.go(0);
}
}
else {
......
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