From 1bbc16b3f89e070f849d99522169fa813b49cf8b Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期一, 25 九月 2023 10:21:02 +0800
Subject: [PATCH] 优化设备维修休假、假期、计划停机以及非计划停机管理页面导出功能
---
src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue | 6 ++++--
src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerList.vue | 6 +++---
src/views/mdc/base/MdcplancloseList.vue | 6 +++---
src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue | 4 ++--
src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue | 4 ++--
src/views/mdc/base/MdcDriveTypeParamConfigList.vue | 3 +--
src/components/table2excel/table2excel.js | 2 --
src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityList.vue | 2 +-
8 files changed, 16 insertions(+), 17 deletions(-)
diff --git a/src/components/table2excel/table2excel.js b/src/components/table2excel/table2excel.js
index 0767353..4891d2b 100644
--- a/src/components/table2excel/table2excel.js
+++ b/src/components/table2excel/table2excel.js
@@ -3,7 +3,6 @@
import jQuery from 'jquery'
(function ( $, window, document, undefined ) {
var pluginName = "table2excel",
-
defaults = {
exclude: ".noExl",
name: "Table2Excel",
@@ -253,7 +252,6 @@
$.data( e, "plugin_" + pluginName, new Plugin( this, options ) );
}
});
-
// chain jQuery functions
return e;
};
diff --git a/src/views/mdc/base/MdcDriveTypeParamConfigList.vue b/src/views/mdc/base/MdcDriveTypeParamConfigList.vue
index bb1382a..0af6e3b 100644
--- a/src/views/mdc/base/MdcDriveTypeParamConfigList.vue
+++ b/src/views/mdc/base/MdcDriveTypeParamConfigList.vue
@@ -135,7 +135,7 @@
<a-button
type="primary"
icon="download"
- @click="handleExportXls('璁惧椹卞姩鍙傛暟閰嶇疆')"
+ @click="handleExportXls('椹卞姩鍙傛暟绠$悊')"
>瀵煎嚭</a-button>
<a-upload
name="file"
@@ -360,7 +360,6 @@
deleteBatch: "/mdc/mdcDriveTypeParamConfig/deleteBatch",
exportXlsUrl: "/mdc/mdcDriveTypeParamConfig/exportXls",
importExcelUrl: "mdc/mdcDriveTypeParamConfig/importExcel",
-
},
dictOptions: {},
superFieldList: [],
diff --git a/src/views/mdc/base/MdcplancloseList.vue b/src/views/mdc/base/MdcplancloseList.vue
index 2305fcd..b624ead 100644
--- a/src/views/mdc/base/MdcplancloseList.vue
+++ b/src/views/mdc/base/MdcplancloseList.vue
@@ -34,7 +34,7 @@
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
<a-button type="primary" icon="download" @click="importTemplate('璁″垝鍋滄満妯℃澘')">瀵煎叆妯℃澘</a-button>
- <a-button type="primary" icon="download" @click="handleExportXls('璁″垝鍋滄満')">瀵煎嚭</a-button>
+ <a-button type="primary" icon="download" @click="handleExportXls('璁″垝鍋滄満绠$悊')">瀵煎嚭</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">瀵煎叆</a-button>
</a-upload>
@@ -156,8 +156,8 @@
list: "/mdc/mdcPlanClose/list",
delete: "/mdc/mdcPlanClose/delete",
deleteBatch: "/mdc/mdcPlanClose/deleteBatch",
- exportXlsUrl: "/plan/mdcplanclose/exportXls",
- importExcelUrl: "plan/mdcplanclose/importExcel",
+ exportXlsUrl: "/mdc/mdcPlanClose/exportXls",
+ importExcelUrl: "mdc/mdcPlanClose/importExcel",
},
dictOptions:{},
diff --git a/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue b/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue
index 51dfb35..45c49f0 100644
--- a/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue
+++ b/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue
@@ -177,8 +177,8 @@
delete: '/mdc/mdcVacationManagement/deleteVacation',
deleteBatch: '/mdc/mdcVacationManagement/deleteBatchVacation',
getEquipmentByPid: '/mdc/mdcequipment/getEquipmentByPid',
- exportXlsUrl: "/mdc/MdcTorqueConfig/exportXls",
- importExcelUrl: "/mdc/MdcTorqueConfig/importExcel",
+ exportXlsUrl: "/mdc/mdcVacationManagement/exportXls",
+ importExcelUrl: "/mdc/mdcVacationManagement/importExcel",
}
}
},
diff --git a/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerList.vue b/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerList.vue
index 5b1a8a2..e939c94 100644
--- a/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerList.vue
+++ b/src/views/mdc/base/modules/UnplannedDowntimemManager/UnplannedDowntimemManagerList.vue
@@ -36,7 +36,7 @@
<a-button @click="handleAdd" type="primary" icon="plus">鏂板
</a-button>
<a-button type="primary" icon="download" @click="importTemplate('闈炶鍒掑仠鏈烘ā鏉�')">瀵煎叆妯℃澘</a-button>
- <a-button type="primary" icon="download" @click="handleExportXls('闈炶鍒掑仠鏈�')">瀵煎嚭</a-button>
+ <a-button type="primary" icon="download" @click="handleExportXls('闈炶鍒掑仠鏈虹鐞�')">瀵煎嚭</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">瀵煎叆</a-button>
</a-upload>
@@ -196,8 +196,8 @@
delete: '/mdc/mdcNoplanClose/delete',
deleteBatch: '/mdc/mdcNoplanClose/deleteBatch',
getEquipmentByPid: '/mdc/mdcequipment/getEquipmentByPid',
- exportXlsUrl: "/mdc/MdcTorqueConfig/exportXls",
- importExcelUrl: "/mdc/MdcTorqueConfig/importExcel",
+ exportXlsUrl: "/mdc/mdcNoplanClose/exportXls",
+ importExcelUrl: "/mdc/mdcNoplanClose/importExcel",
}
}
},
diff --git a/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue b/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue
index f4c5aa5..528dff2 100644
--- a/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue
+++ b/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue
@@ -26,7 +26,8 @@
<a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button>
</a-col>
<a-col :lg="2" :md="3" :sm="3" :xs="3">
- <a-button type="primary" @click="exportExcel" icon="download">瀵煎嚭</a-button>
+ <!--<a-button type="primary" @click="exportExcel" icon="download">瀵煎嚭</a-button>-->
+ <a-button type="primary" @click="handleExportXls('缁翠慨浼戠彮绠$悊')" icon="download">瀵煎嚭</a-button>
</a-col>
</a-row>
</a-form>
@@ -163,6 +164,7 @@
list: '/mdc/mdcEquipmentRepair/pageList',
deleteBatch: '/mdc/mdcEquipmentRepair/delete',
getEquipmentByPid: '/mdc/mdcequipment/getEquipmentByPid',
+ exportXlsUrl:'/mdc/mdcEquipmentRepair/exportXls'
}
}
},
@@ -541,7 +543,7 @@
$("#DeviceList").table2excel({
exclude: ".noExl",
name: "Excel Document Name",
- filename: "璁惧缁翠慨璇︽儏",
+ filename: "缁翠慨浼戠彮绠$悊",
exclude_img: true,
fileext: ".xls",
exclude_links: true,
diff --git a/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue b/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
index 62623ce..e679650 100644
--- a/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
+++ b/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
@@ -142,7 +142,7 @@
dataList: [],
url: {
list: '/mdc/efficiencyReport/efficiencyList',
- listByType: '/mdc/MdcUtilizationRate/getByType'
+ listByType: '/mdc/MdcUtilizationRate/getByType',
},
tableHeads: [],
@@ -319,7 +319,7 @@
$("#Efficiency").table2excel({
exclude: ".noExl",
name: "Excel Document Name",
- filename: "鍒╃敤鐜�",
+ filename: "璁惧鍒╃敤鐜�",
exclude_img: true,
fileext: ".xls",
exclude_links: true,
diff --git a/src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityList.vue b/src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityList.vue
index 84c0ef2..e35c6cf 100644
--- a/src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityList.vue
+++ b/src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityList.vue
@@ -36,7 +36,7 @@
<a-button @click="handleAdd" type="primary" icon="plus">鏂板
</a-button>
<a-button type="primary" icon="download" @click="importTemplate('鍔犲伐鏁伴噺妯℃澘')">瀵煎叆妯℃澘</a-button>
- <a-button type="primary" icon="download" @click="handleExportXls('鍔犲伐鏁伴噺')">瀵煎嚭</a-button>
+ <a-button type="primary" icon="download" @click="handleExportXls('鍔犲伐鏁伴噺绠$悊')">瀵煎嚭</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">瀵煎叆</a-button>
</a-upload>
--
Gitblit v1.9.3