| ... | ... | @@ -654,7 +654,11 @@ | 
|  |  | this.listLoading = true; | 
|  |  | selectDispatchNoteList(this.queryInfo).then((response) => { | 
|  |  | let res = response.data; | 
|  |  | if (res.code !== '200') return this.$message.error('获取车辆调度列表失败'); | 
|  |  | if (res.code !== '200') { | 
|  |  | //关闭加载 | 
|  |  | this.listLoading = false; | 
|  |  | return this.$message.error('获取车辆调度列表失败'); | 
|  |  | } | 
|  |  | // 获取车辆调度列表数据 | 
|  |  | this.DispatchNoteList = res.data.list; | 
|  |  | // 获取列表的总记录数 | 
| ... | ... | @@ -680,7 +684,11 @@ | 
|  |  | insertDispatchNote(this.addDispatchNodeForm).then((response) => { | 
|  |  | let res = response.data; | 
|  |  | //添加调度记录信息,失败 | 
|  |  | if (res.code !== '200') return this.$message.error('添加调度记录信息,失败'); | 
|  |  | if (res.code !== '200'){ | 
|  |  | //关闭加载 | 
|  |  | this.addLoading = false; | 
|  |  | return this.$message.error('添加调度记录信息,失败'); | 
|  |  | } | 
|  |  | //添加调度记录信息,成功 | 
|  |  | this.$message.success('添加调度记录信息,成功'); | 
|  |  | //关闭加载 | 
| ... | ... | @@ -711,6 +719,7 @@ | 
|  |  | deleteDispatchNote(row).then((response) => { | 
|  |  | let res = response.data; | 
|  |  | if (res.code !== '200') { | 
|  |  | this.delLoading = false; | 
|  |  | return this.$message.error('删除车辆调度记录,失败'); | 
|  |  | } | 
|  |  | this.$message.success('删除车辆调度记录,成功!'); | 
| ... | ... | @@ -737,6 +746,8 @@ | 
|  |  | updateDispatchNote(this.editForm).then((response) => { | 
|  |  | let res = response.data; | 
|  |  | if (res.code !== '200') { | 
|  |  | //关闭加载 | 
|  |  | this.editLoading = false; | 
|  |  | return this.$message.error('修改车辆调度记录信息,失败'); | 
|  |  | } | 
|  |  | this.$message.success('修改车辆调度记录信息,成功!'); | 
| ... | ... | @@ -761,6 +772,8 @@ | 
|  |  | startTask(row).then((response) => { | 
|  |  | let res = response.data; | 
|  |  | if (res.code !== '200') { | 
|  |  | //关闭加载 | 
|  |  | this.beginLoading = false; | 
|  |  | return this.$message.error('手动开始调度任务,失败'); | 
|  |  | } | 
|  |  | //关闭加载 | 
| ... | ... | @@ -782,6 +795,8 @@ | 
|  |  | completeTask(row).then((response) => { | 
|  |  | let res = response.data; | 
|  |  | if (res.code !== '200') { | 
|  |  | //关闭加载 | 
|  |  | this.endLoading = false; | 
|  |  | return this.$message.error('手动完成调度任务,失败'); | 
|  |  | } | 
|  |  | //关闭加载 | 
... | ... |  |