|
|
@@ -99,7 +99,6 @@ export default {
|
|
|
this.$apis.getCommitByCommitId(this.commitId)
|
|
|
.then(_res => {
|
|
|
this.commit = _res.data.res;
|
|
|
- console.log("commit", this.commit);
|
|
|
}).catch(_err => {
|
|
|
console.log(_err);
|
|
|
|
|
|
@@ -132,8 +131,13 @@ export default {
|
|
|
},
|
|
|
// 点击"停止"按钮,停止当前提交的运行;
|
|
|
async handleStopRecordButtonClick(recordId) {
|
|
|
- await this.$apis.stopRecordById(recordId);
|
|
|
- this.fetchData();
|
|
|
+ const response = await this.$apis.stopRecordById(recordId);
|
|
|
+ if (response.data.res) {
|
|
|
+ this.$message.success(`记录${recordId}被用户手动停止`);
|
|
|
+ setTimeout(() => this.fetchData(), 0);
|
|
|
+ } else {
|
|
|
+ this.$message.error(response.data);
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
};
|