|
@@ -709,7 +709,7 @@ export default {
|
|
|
id: this.user.id
|
|
|
}
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail(res.msg || res.code || '填报失败');
|
|
|
}
|
|
|
}).catch(err => { this.confirmLoading = false; this.$toast.clear(); console.log(err) });
|
|
|
} else {
|
|
@@ -739,7 +739,7 @@ export default {
|
|
|
this.$toast.success('删除成功')
|
|
|
this.getBillList()
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail(res.msg || res.code || '删除失败');
|
|
|
}
|
|
|
}).catch(err => { this.$toast.clear(); console.log(err) });
|
|
|
})
|
|
@@ -773,7 +773,8 @@ export default {
|
|
|
item.approveLoading = false
|
|
|
this.getExamineList()
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail('操作失败');
|
|
|
+
|
|
|
}
|
|
|
}).catch(err => { this.$toast.clear(); console.log(err) });
|
|
|
},
|
|
@@ -793,7 +794,7 @@ export default {
|
|
|
this.denyLoading = false
|
|
|
this.getExamineList()
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail(res.msg || res.code || '操作失败');
|
|
|
}
|
|
|
}).catch(err => { this.$toast.clear(); console.log(err) });
|
|
|
},
|
|
@@ -804,7 +805,7 @@ export default {
|
|
|
if (res.code == "ok") {
|
|
|
this.userList = res.data
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail(res.msg || res.code || '获取失败');
|
|
|
}
|
|
|
}).catch(err => { this.$toast.clear(); console.log(err) });
|
|
|
},
|
|
@@ -815,7 +816,7 @@ export default {
|
|
|
this.inProjectList = res.data
|
|
|
this.inProjectListCopy = JSON.parse(JSON.stringify(res.data))
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail(res.msg || res.code || '获取失败');
|
|
|
}
|
|
|
}).catch(err => { this.$toast.clear(); console.log(err) });
|
|
|
},
|
|
@@ -826,7 +827,7 @@ export default {
|
|
|
this.allexTypeList = res.data
|
|
|
this.inexTypeList = this.allexTypeList.filter(a => a.mainType == this.editForm.type)
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail(res.msg || res.code || '获取失败');
|
|
|
}
|
|
|
}).catch(err => { this.$toast.clear(); console.log(err) });
|
|
|
},
|
|
@@ -843,7 +844,7 @@ export default {
|
|
|
this.editForm.type = res.data[0].id
|
|
|
this.getExTypeList
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail(res.msg || res.code || '获取失败');
|
|
|
}
|
|
|
}).catch(err => { this.$toast.clear(); console.log(err) });
|
|
|
},
|
|
@@ -860,7 +861,7 @@ export default {
|
|
|
if (res.code == "ok") {
|
|
|
this.billList = res.data.records
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail(res.msg || res.code || '获取失败');
|
|
|
}
|
|
|
}).catch(err => { this.$toast.clear(); console.log(err) });
|
|
|
},
|
|
@@ -881,7 +882,7 @@ export default {
|
|
|
this.$set(this.examineList[i], 'approveLoading', false)
|
|
|
}
|
|
|
} else {
|
|
|
- this.$toast.fail('获取失败');
|
|
|
+ this.$toast.fail(res.msg || res.code || '获取失败');
|
|
|
}
|
|
|
}).catch(err => { this.$toast.clear(); console.log(err) });
|
|
|
},
|