From 7aa252390ad86a90312bee95cef7b7d9d536837e Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周六, 14 9月 2024 05:45:16 +0800
Subject: [PATCH] 监控点位OP1004
---
yiqi_iwara-scada-web/src/views/main/WorkPieceOutbound/index.vue | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/yiqi_iwara-scada-web/src/views/main/WorkPieceOutbound/index.vue b/yiqi_iwara-scada-web/src/views/main/WorkPieceOutbound/index.vue
index ae62d89..9eebd27 100644
--- a/yiqi_iwara-scada-web/src/views/main/WorkPieceOutbound/index.vue
+++ b/yiqi_iwara-scada-web/src/views/main/WorkPieceOutbound/index.vue
@@ -31,7 +31,7 @@
<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'" />
@@ -74,6 +74,7 @@
<script>
import { STable } from '@/components'
import moment from 'moment'
+import { downloadFile,getThisWeekRange } from '@/utils/util'
import { WorkPieceOutboundPage, WorkPieceOutboundRevoke } from '@/api/modular/main/WorkPieceOutboundManage'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@@ -97,7 +98,9 @@
sm: { span: 15 }
},
advanced: false, // 楂樼骇鎼滅储 灞曞紑/鍏抽棴
- queryParam: {},
+ queryParam: {
+ dates:[],
+ },
columns: [
{
title: '搴忓彿',
@@ -176,9 +179,19 @@
scopedSlots: { customRender: 'action' }
})
}
+ this.initData();
},
methods: {
moment,
+ initData(){
+ this.queryParam.dates = [];
+ this.queryParam.dates = getThisWeekRange();
+ },
+ //閲嶇疆
+ resetQueryData(){
+ this.queryParam = { dates:[] }
+ this.initData();
+ },
/**
* 鏌ヨ鍙傛暟缁勮
*/
--
Gitblit v1.9.3