宣教库修改

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() {
this.Departmentlist();
this.getList();
this.getlistcount();
},
watch: {
name(val) {
@ -787,7 +786,7 @@ export default {
message: "复制成功"
});
this.getList()
this.getlistcount()
this.Departmentlist()
});
}).catch(() => {
@ -867,6 +866,14 @@ export default {
this.loading = true;
selectNumByDept(this.querydepartmen).then(response => {
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;
});
},
@ -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.open = false;
this.getList();
this.getlistcount()
});
} else {
if (this.diseaseTypeName == "请选择病种") {
@ -1114,7 +1109,7 @@ export default {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
this.getlistcount()
this.Departmentlist()
});
}
@ -1128,15 +1123,7 @@ export default {
return delPropaganda(ids);
}).then(() => {
this.getList();
this.getlistcount()
// var quer = {
// pageNum: 1,
// pageSize: 10,
// }
// listPropaganda(quer).then(response => {
// this.count = response.total;
// });
this.Departmentlist()
this.$modal.msgSuccess("删除成功");
}).catch(() => { });
},