From c0f7ece4325899ceabdbfcb54649070c1671a6aa Mon Sep 17 00:00:00 2001 From: coderxqt <335614092@qq.com> Date: Sun, 20 Sep 2026 17:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E5=8F=91=E9=80=81=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=92=8C=E7=94=B5=E8=AF=9D=E6=8B=A8=E6=89=93=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=A8=A1=E5=9D=97=E9=83=A8=E5=88=86=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/phoneDialRecord/index.vue | 31 ++++++++++---- .../system/shortMessageSendRecord/index.vue | 41 ++++++++++++++----- 2 files changed, 55 insertions(+), 17 deletions(-) diff --git a/src/views/system/phoneDialRecord/index.vue b/src/views/system/phoneDialRecord/index.vue index 2842bdd..3b01e4e 100644 --- a/src/views/system/phoneDialRecord/index.vue +++ b/src/views/system/phoneDialRecord/index.vue @@ -20,13 +20,22 @@ /> - + --> + 修改查看 - 删除 + > --> @@ -262,6 +271,7 @@ export default { title: "", // 是否显示弹出层 open: false, + sendTime: [], // 查询参数 queryParams: { pageNum: 1, @@ -281,6 +291,8 @@ export default { phoneDuration: null, phoneCost: null, billId: null, + dialTimeStart: null, + dialTimeEnd: null, }, // 表单参数 form: {}, @@ -334,11 +346,14 @@ export default { }, /** 搜索按钮操作 */ handleQuery() { + this.queryParams.dialTimeStart = this.sendTime[0]; + this.queryParams.dialTimeEnd = this.sendTime[1]; this.queryParams.pageNum = 1; this.getList(); }, /** 重置按钮操作 */ resetQuery() { + this.sendTime = []; this.resetForm("queryForm"); this.handleQuery(); }, @@ -354,14 +369,14 @@ export default { this.open = true; this.title = "添加电话拨打记录"; }, - /** 修改按钮操作 */ + /** 查看按钮操作 */ handleUpdate(row) { this.reset(); const id = row.id || this.ids; getPhoneDialRecord(id).then((response) => { this.form = response.data; this.open = true; - this.title = "修改电话拨打记录"; + this.title = "查看电话拨打记录"; }); }, /** 提交按钮 */ @@ -400,12 +415,14 @@ export default { }, /** 导出按钮操作 */ handleExport() { + this.queryParams.dialTimeStart = this.sendTime[0]; + this.queryParams.dialTimeEnd = this.sendTime[1]; this.download( "system/phoneDialRecord/export", { ...this.queryParams, }, - `phoneDialRecord_${new Date().getTime()}.xlsx` + `电话拨打记录_${new Date().getTime()}.xlsx` ); }, }, diff --git a/src/views/system/shortMessageSendRecord/index.vue b/src/views/system/shortMessageSendRecord/index.vue index 5c18c43..1bb3f49 100644 --- a/src/views/system/shortMessageSendRecord/index.vue +++ b/src/views/system/shortMessageSendRecord/index.vue @@ -25,13 +25,22 @@ /> - + --> + @@ -106,7 +115,7 @@ align="center" prop="messageUnitPrice" /> - + 修改查看 - 删除 + > --> @@ -201,7 +210,10 @@ /> - + @@ -247,12 +259,15 @@ export default { // 是否显示弹出层 open: false, // 查询参数 + sendTime: [], queryParams: { pageNum: 1, pageSize: 10, patientId: null, patientPhone: null, - sendTime: null, + // sendTime: null, + sendTimeStart: null, + sendTimeEnd: null, messageNodeContent: null, errorStatus: null, messageType: null, @@ -288,7 +303,8 @@ export default { id: null, patientId: null, patientPhone: null, - sendTime: null, + sendTimeStart: null, + sendTimeEnd: null, messageNodeContent: null, errorStatus: "0", createBy: null, @@ -303,10 +319,13 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; + this.queryParams.sendTimeStart = this.sendTime[0]; + this.queryParams.sendTimeEnd = this.sendTime[1]; this.getList(); }, /** 重置按钮操作 */ resetQuery() { + this.sendTime = []; this.resetForm("queryForm"); this.handleQuery(); }, @@ -329,7 +348,7 @@ export default { getShortMessageSendRecord(id).then((response) => { this.form = response.data; this.open = true; - this.title = "修改短信发送结果记录"; + this.title = "查看短信发送结果记录"; }); }, /** 提交按钮 */ @@ -368,12 +387,14 @@ export default { }, /** 导出按钮操作 */ handleExport() { + this.queryParams.sendTimeStart = this.sendTime[0]; + this.queryParams.sendTimeEnd = this.sendTime[1]; this.download( "system/shortMessageSendRecord/export", { ...this.queryParams, }, - `shortMessageSendRecord_${new Date().getTime()}.xlsx` + `短信发送记录_${new Date().getTime()}.xlsx` ); }, },