From 5ebc500a3e8c519a3e3388c4176e51bf2e5fe38e Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 25 九月 2024 10:33:11 +0800 Subject: [PATCH] 地图倾斜 --- src/views/system/work-order/index.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/system/work-order/index.vue b/src/views/system/work-order/index.vue index 593c822..d27bd64 100644 --- a/src/views/system/work-order/index.vue +++ b/src/views/system/work-order/index.vue @@ -24,6 +24,16 @@ <el-option label="瀹℃牳鏈�氳繃" value="AUDITING_FAIL"></el-option> </el-select> </el-form-item> + <el-form-item label="鏃堕棿鑼冨洿" prop="timeRange"> + <el-date-picker + v-model="queryParams.timeRange" + type="daterange" + range-separator="鑷�" + value-format="yyyy-MM-dd" + start-placeholder="寮�濮嬫棩鏈�" + end-placeholder="缁撴潫鏃ユ湡"> + </el-date-picker> + </el-form-item> <el-form-item> <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">鎼滅储</el-button> <el-button icon="el-icon-refresh" size="small" @click="resetQuery">閲嶇疆</el-button> @@ -88,7 +98,7 @@ <el-col :span="24" class="time">鏁呴殰鏃堕棿锛歿{ item.createTime }}</el-col> </el-row> <el-row class="work-order-item"> - <el-col class="time" :span="24"><div>鏁呴殰鐐逛綅锛�</div><div>{{ item.source }}</div></el-col> + <el-col class="time" :span="24"><div>鍥芥爣鐮侊細{{ item.serialNumber }}</div><div>{{ item.source }}</div></el-col> </el-row> <el-row style="position: absolute;bottom: 10px"> <el-button @@ -769,8 +779,10 @@ this.empty = false; this.loading = true this.queryParams.params = {} - this.queryParams['start'] = this.daterangeYwHandleTime ? this.daterangeYwHandleTime[0] : null - this.queryParams['end'] = this.daterangeYwHandleTime ? this.daterangeYwHandleTime[1] : null + if (this.queryParams.timeRange && this.queryParams.timeRange.length > 0) { + this.queryParams.start = this.queryParams.timeRange[0] + this.queryParams.end = this.queryParams.timeRange[1] + } listWorkOrder(this.queryParams).then(response => { response.data.forEach(item => { -- Gitblit v1.8.0