From 28189102d735bfc2c41720d1ef292bd9024b49f2 Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期四, 18 四月 2024 11:21:01 +0800
Subject: [PATCH] 1、首页 (1)设备级看板单击设备效率统计仪表盘图标跳转至统计分析页面并根据唯一编号筛选页面对应数据 (2)设备级看板点击设备班次按钮跳转至工作日历页面并根据设备编号筛选页面对应数据 (3)增加所有层级看板图表数据加载动画 (4)公司级以及分厂级看板利用率胶囊以及上月OEE车间单柱图表轴线刻度最大值采用动态设置方式而非固定100% (5)工段级看板上月OEE单柱图表轴线刻度最大值采用动态设置方式而非固定100% (6)工段级看板单击前7天利用率图表跳转至统计分析页面并根据唯一编号筛选页面对应数据 (7)工段级看板单击上月OEE图表跳转至设备综合效率分析页面并根据唯一编号筛选页面对应数据 2、调整全局导航栏页签间距,以便能在不超出导航栏的情况下同时放置更多页面页签

---
 src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue b/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue
index 184f6bd..3b17e56 100644
--- a/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue
+++ b/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue
@@ -3,7 +3,7 @@
     <!-- 鏌ヨ鍖哄煙 -->
     <div style="width: 100%; background-color: #fff" class="table-page-search-wrapper">
       <a-form layout="inline" @keyup.enter.native="searchQuery">
-        <a-row :gutter="24">
+        <a-row :gutter="24" style="width: 100%;">
           <a-col :md="7" :sm="7">
             <a-form-item label="鏃堕棿">
               <a-range-picker @change="dateParamChange" v-model="dates"  format="YYYY-MM-DD"/>
@@ -43,6 +43,7 @@
       <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
       <a-button type="primary" icon="import">瀵煎叆</a-button>
       </a-upload>
+      <a-button type="primary" icon="printer" v-print="'#DeviceList'" v-has="'holidayManagement:print'">鎵撳嵃</a-button>
 
       <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">
@@ -185,6 +186,18 @@
             fixed:'right'
           }
         ],
+        /* 鍒嗛〉鍙傛暟 */
+        ipagination:{
+          current: 1,
+          pageSize: 30,
+          pageSizeOptions: ['30', '50', '100'],
+          showTotal: (total, range) => {
+            return range[0] + "-" + range[1] + " 鍏�" + total + "鏉�"
+          },
+          showQuickJumper: true,
+          showSizeChanger: true,
+          total: 0
+        },
         url: {
           list: '/mdc/mdcVacationManagement/pageList',
           delete: '/mdc/mdcVacationManagement/deleteVacation',
@@ -235,7 +248,7 @@
     },
     methods: {
       dateParamChange(v1, v2) {
-        // console.log(v1,v2)
+        console.log(v1,v2)
         this.queryParam.startTime = v2[0]
         this.queryParam.endTime = v2[1]
         // console.log(v2[0],v2[1])
@@ -350,8 +363,6 @@
         param.field = this.getQueryField();
         param.parentId = this.queryParams.parentId;
         param.equipmentId = this.queryParams.equipmentId;
-        param.startTime = this.queryParam.startTime;
-        param.endTime =  this.queryParam.endTime;
         getAction(this.url.list,param).then((res) => {
           if(res.success){
             this.dataSource = res.result.records||res.result;
@@ -437,8 +448,10 @@
         param.field = this.getQueryField();
         param.parentId = this.queryParams.parentId;
         param.equipmentId = this.queryParams.equipmentId;
-        param.startTime = this.queryParam.startTime;
-        param.endTime =  this.queryParam.endTime;
+        if(this.queryParam.startTime && this.queryParam.endTime){
+          param.startTime = this.queryParam.startTime;
+          param.endTime =  this.queryParam.endTime;
+        }
         // console.log(param);
         getAction(this.url.list,param).then((res) => {
           if(res.success){

--
Gitblit v1.9.3