From 2f0401534dff229d53d7ae8509478d4b12cad254 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 14 May 2024 09:42:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=97=A5=E5=BF=97=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=B5=8B=E7=82=B9=E5=BD=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/enm_rm/logDetail.vue | 49 ++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 11 deletions(-) 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;