@@ -418,11 +418,17 @@ export default {
this.timer = setTimeout(() => {
this.flagclick = true;
}, 2000);
- insertCustomAnswer(this.collectionItemList).then((res) => {
- if (res.code == 200) {
- this.$router.go(-1);
- }
- });
+ insertCustomAnswer(this.collectionItemList)
+ .then((res) => {
+ if (res.code == 200) {
+ this.$router.go(-1);
+ } else {
+ this.$toast(err.msg);
+ }
+ })
+ .catch((err) => {
+ });
}
},
getReportInfo() {
@@ -217,14 +217,20 @@ export default {
writeAgainCustomAnswer({
userSummaryId: this.$route.query.userSummaryId,
customItemList: customItemList,
- }).then((res) => {
- this.$toast('操作成功!');
- this.$router.replace({
- path: '/VisitSummary',
+ this.$toast('操作成功!');
+ this.$router.replace({
+ path: '/VisitSummary',
};