From 865055f09fbc7ee5cb9053418de19b6507a22b55 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 09 9月 2024 14:40:34 +0800
Subject: [PATCH] 注释不用的代码
---
yiqi_iwara-scada-web/src/views/main/WorkPieceOutboundRecord/index.vue | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/yiqi_iwara-scada-web/src/views/main/WorkPieceOutboundRecord/index.vue b/yiqi_iwara-scada-web/src/views/main/WorkPieceOutboundRecord/index.vue
index 8d1e504..4e6bf6f 100644
--- a/yiqi_iwara-scada-web/src/views/main/WorkPieceOutboundRecord/index.vue
+++ b/yiqi_iwara-scada-web/src/views/main/WorkPieceOutboundRecord/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'" />
@@ -60,6 +60,7 @@
<script>
import { STable } from '@/components'
import moment from 'moment'
+import { downloadFile,getThisWeekRange } from '@/utils/util'
import { WorkPieceOutboundRecordPage, WorkPieceOutboundRevoke } from '@/api/modular/main/WorkPieceOutboundManage'
import addForm from './addForm.vue'
import editForm from './editForm.vue'
@@ -83,7 +84,9 @@
sm: { span: 15 }
},
advanced: false, // 楂樼骇鎼滅储 灞曞紑/鍏抽棴
- queryParam: {},
+ queryParam: {
+ dates:[],
+ },
columns: [
{
title: '搴忓彿',
@@ -162,9 +165,20 @@
// 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