|
|
@ -294,12 +294,13 @@ |
|
|
|
this.stopList.comment = this.comment |
|
|
|
request.breakTask(this.stopList).then((response) => { |
|
|
|
if (response.code === '200') { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '执行成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
window.parent.postMessage({ |
|
|
|
cmd: 'returnHeight', |
|
|
|
params: { |
|
|
|
//告诉父级页面,子页面的弹框高度。 |
|
|
|
code: 1 |
|
|
|
} |
|
|
|
}, '*') |
|
|
|
// this.refreshIt() |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
@ -318,9 +319,13 @@ |
|
|
|
this.submitdisabled = true |
|
|
|
req.save(this.formobj).then(resp => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
_this.handleReturn('true') |
|
|
|
} |
|
|
|
window.parent.postMessage({ |
|
|
|
cmd: 'returnHeight', |
|
|
|
params: { |
|
|
|
//告诉父级页面,子页面的弹框高度。 |
|
|
|
code: 1 |
|
|
|
} |
|
|
|
}, '*') |
|
|
|
}).catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
@ -341,9 +346,13 @@ |
|
|
|
this.submitdisabled = true |
|
|
|
req.submitVehicleReturn(this.formobj).then(resp => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
_this.handleReturn('true') |
|
|
|
} |
|
|
|
window.parent.postMessage({ |
|
|
|
cmd: 'returnHeight', |
|
|
|
params: { |
|
|
|
//告诉父级页面,子页面的弹框高度。 |
|
|
|
code: 1 |
|
|
|
} |
|
|
|
}, '*') |
|
|
|
}).catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
|