From 67c066315cb3cfe3e9bdd8bafe73cde154445df6 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 15 四月 2024 09:15:41 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/system/report/index.vue | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/system/report/index.vue b/src/views/system/report/index.vue index b302426..474fafb 100644 --- a/src/views/system/report/index.vue +++ b/src/views/system/report/index.vue @@ -175,13 +175,14 @@ </el-form-item> <el-form-item label="鎶ュ鏃堕棿" prop="expirTime"> <el-date-picker - v-model="expirTime" + v-model="form.expirTime" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" + @change="handleExpirTimeChange" ></el-date-picker> </el-form-item> <el-form-item label="鎶ュ鍐呭" prop="reportContent"> @@ -458,13 +459,14 @@ this.auditingForm = {} }); }, + handleExpirTimeChange() { + if (null != this.form.expirTime && '' != this.form.expirTime) { + this.form["beginCreateTime"] = this.form.expirTime[0]; + this.form["endCreateTime"] = this.form.expirTime[1]; + } + }, /** 鎻愪氦鎸夐挳 */ submitForm() { - - if (null != this.expirTime && '' != this.expirTime) { - this.form["beginCreateTime"] = this.expirTime[0]; - this.form["endCreateTime"] = this.expirTime[1]; - } // todo 鍒ゆ柇鏄簨鍓嶆姤澶� -- Gitblit v1.8.0