From d939d095aa38879953884ea263eb45984b3876e7 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周六, 08 6月 2024 14:30:38 +0800 Subject: [PATCH] 优化界面 --- iwara-scada-web/src/views/main/EquipmentWorkingLog/index.vue | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/iwara-scada-web/src/views/main/EquipmentWorkingLog/index.vue b/iwara-scada-web/src/views/main/EquipmentWorkingLog/index.vue index 10be54a..fff498b 100644 --- a/iwara-scada-web/src/views/main/EquipmentWorkingLog/index.vue +++ b/iwara-scada-web/src/views/main/EquipmentWorkingLog/index.vue @@ -29,15 +29,15 @@ </a-select> </a-form-item> </a-col> - <a-col :md="colMd" :sm="colSm"> - <a-form-item label="鏂板鏃堕棿"> + <a-col :md="colMd2" :sm="colSm2"> + <a-form-item label="鍙戠敓鏃堕棿"> <a-range-picker v-model="queryParam.logAddTimeRange" :placeholder="['寮�濮嬫棩鏈�', '缁撴潫鏃ユ湡']" /> </a-form-item> </a-col> <a-col :md="colMd" :sm="colSm"> <span class="table-page-search-submitButtons"> <a-button type="primary" @click="$refs.table.refresh(true)">鏌ヨ</a-button> - <a-button style="margin-left: 8px" @click="() => (queryParam = {})">閲嶇疆</a-button> + <a-button style="margin-left: 8px" @click="resetQueryData">閲嶇疆</a-button> <!-- <a @click="toggleAdvanced" style="margin-left: 8px"> {{ advanced ? '鏀惰捣' : '灞曞紑' }} <a-icon :type="advanced ? 'up' : 'down'" /> </a> --> @@ -73,7 +73,7 @@ <script> import { STable, XCard } from '@/components' -import { downloadFile } from '@/utils/util' +import { downloadFile,getThisWeekRange } from '@/utils/util' import moment from 'moment' import { EquipmentWorkingLogPage, equipmentWorkingLogToExcel } from '@/api/modular/main/EquipmentWorkingLogManage' @@ -89,6 +89,8 @@ gutter: 36, colMd: 6, colSm: 18, + colMd2: 10, + colSm2: 24, labelCol: { xs: { span: 24 }, sm: { span: 8 } @@ -161,7 +163,7 @@ dataIndex: 'equipmentStateTimeHand' }, { - title: '鏂板鏃堕棿', + title: '鍙戠敓鏃堕棿', align: 'center', sorter: true, dataIndex: 'logAddTime' @@ -190,9 +192,19 @@ }, created() { this.getEquipmentName() + this.initData(); }, methods: { + initData(){ + this.queryParam.logAddTimeRange = []; + this.queryParam.logAddTimeRange = getThisWeekRange(); + }, + //閲嶇疆 + resetQueryData(){ + this.queryParam = { logAddTimeRange:[] } + this.initData(); + }, moment, /** * 鏌ヨ鍙傛暟缁勮 -- Gitblit v1.9.3