宣教库修改

This commit is contained in:
shidongli 2024-03-06 09:55:36 +08:00
parent 53abf85357
commit 43b1042334

View File

@ -752,7 +752,6 @@ export default {
created() { created() {
this.Departmentlist(); this.Departmentlist();
this.getList(); this.getList();
this.getlistcount();
}, },
watch: { watch: {
name(val) { name(val) {
@ -787,7 +786,7 @@ export default {
message: "复制成功" message: "复制成功"
}); });
this.getList() this.getList()
this.getlistcount() this.Departmentlist()
}); });
}).catch(() => { }).catch(() => {
@ -867,6 +866,14 @@ export default {
this.loading = true; this.loading = true;
selectNumByDept(this.querydepartmen).then(response => { selectNumByDept(this.querydepartmen).then(response => {
this.DepartmentoList = response.data; this.DepartmentoList = response.data;
let sum = 0;
this.DepartmentoList.forEach((item) => {
if (item.countNum != null) {
console.log(item.countNum)
sum += item.countNum;
}
this.count = sum;
});
this.loading = false; this.loading = false;
}); });
}, },
@ -885,17 +892,6 @@ export default {
} }
}, },
//
getlistcount() {
var qure={
pageNum: 1,
pageSize: 10,
}
listPropaganda(qure).then(response => {
this.count = response.total;
});
},
/** 查询患者宣教信息列表 */ /** 查询患者宣教信息列表 */
@ -1093,7 +1089,6 @@ export default {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
this.getlistcount()
}); });
} else { } else {
if (this.diseaseTypeName == "请选择病种") { if (this.diseaseTypeName == "请选择病种") {
@ -1114,7 +1109,7 @@ export default {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
this.getlistcount() this.Departmentlist()
}); });
} }
@ -1128,15 +1123,7 @@ export default {
return delPropaganda(ids); return delPropaganda(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.getlistcount() this.Departmentlist()
// var quer = {
// pageNum: 1,
// pageSize: 10,
// }
// listPropaganda(quer).then(response => {
// this.count = response.total;
// });
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => { }); }).catch(() => { });
}, },