|
@@ -233,13 +233,13 @@ export default {
|
|
|
if (res.errCode) {
|
|
|
this.$message.error(res.errMsg);
|
|
|
} else {
|
|
|
- this.$message.success("成功");
|
|
|
+ this.$message.success("新增成功!");
|
|
|
}
|
|
|
// this.isShow = false
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.log(err);
|
|
|
- this.$message.error("失败!");
|
|
|
+ this.$message.error(err);
|
|
|
});
|
|
|
} else {
|
|
|
return false;
|
|
@@ -257,13 +257,13 @@ export default {
|
|
|
if (res.errCode) {
|
|
|
this.$message.error(res.errMsg);
|
|
|
} else {
|
|
|
- this.$message.success("成功");
|
|
|
+ this.$message.success("时间变更成功!");
|
|
|
}
|
|
|
// this.isShow = false
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.log(err);
|
|
|
- this.$message.error("时间变更失败!");
|
|
|
+ this.$message.error(err);
|
|
|
});
|
|
|
} else {
|
|
|
return false;
|
|
@@ -310,7 +310,6 @@ export default {
|
|
|
},
|
|
|
edit(row) {
|
|
|
// 数据回填
|
|
|
- console.log(row.target);
|
|
|
this.formData = row;
|
|
|
this.$store.state["sheepType"].forEach(item => {
|
|
|
if ((row.target & item.value) == item.value)
|
|
@@ -318,25 +317,7 @@ export default {
|
|
|
});
|
|
|
this.isShow = true;
|
|
|
},
|
|
|
- // del(row) {
|
|
|
- // reqDelImmunePlan(row.id)
|
|
|
- // .then(res => {
|
|
|
- // // 免疫程序列表
|
|
|
- // this.getImmunePlanList();
|
|
|
- // if (res.code == "success") {
|
|
|
- // this.$message.success(res.msg);
|
|
|
- // }
|
|
|
- // if (res.errCode == "delete failed") {
|
|
|
- // this.$message.error(res.errMsg);
|
|
|
- // }
|
|
|
- // })
|
|
|
- // .catch(err => {
|
|
|
- // console.log(err);
|
|
|
- // this.$message.error("删除失败!");
|
|
|
- // });
|
|
|
- // },
|
|
|
pageChange(p) {
|
|
|
- console.log(p);
|
|
|
this.pageNum = p;
|
|
|
// 免疫程序列表
|
|
|
this.getImmunePlanList();
|