diff --git a/src/views/enm_rm/logDetail.vue b/src/views/enm_rm/logDetail.vue index 90701bdc..b4fee9d3 100644 --- a/src/views/enm_rm/logDetail.vue +++ b/src/views/enm_rm/logDetail.vue @@ -123,9 +123,12 @@ @@ -135,7 +138,19 @@ prop="mpoint_nickname" > - + + + + { + console.log("res", res); that.mpointStat = res.results; - this.$refs.mpointStatTable.queryData(form); + + // this.$refs.mpointStatTable.queryData(form); res.results.forEach((item) => { let month_s = item.month_s > 9 ? item.month_s : "0" + item.month_s; let day_s = item.day_s > 9 ? item.day_s : "0" + item.day_s; let work_date = item.year_s + "-" + month_s + "-" + day_s; - debugger; - console.log("work_date", work_date); - console.log("that.form.work_date", that.form.work_date); + // debugger; + // console.log("work_date", work_date); + // console.log("that.form.work_date", that.form.work_date); if (work_date == that.form.work_date) { that.mpForm.val = item.val; this.mpFormVal = true; @@ -801,15 +825,17 @@ export default { }); }, mpointStat_del(row) { - this.$confirm(`确定删除吗?`, "提示", { + let that = this; + that.$confirm(`确定删除吗?`, "提示", { type: "warning", }).then(() => { - this.$API.enm.mpoint.statDelete + that.$API.enm.mpoint.statDelete .req(row.id) .then((res) => { - this.$message.success("删除成功"); + that.$message.success("删除成功"); that.mpFormVal = false; - this.getMpointStat(); + that.getMpointStat(); + that.$refs.mpointStatTable.refresh(); }) .catch((err) => { this.$message.success(err); @@ -1030,6 +1056,7 @@ export default { that.isSaveing = false; that.$message.success("操作成功"); that.mpFormVal = true; + that.$refs.mpointStatTable.refresh(); }) .catch((res) => { that.isSaveing = false;