diff --git a/src/views/ems/info/dailyFaultRecord/index.vue b/src/views/ems/info/dailyFaultRecord/index.vue
index 803e004..cd19af8 100644
--- a/src/views/ems/info/dailyFaultRecord/index.vue
+++ b/src/views/ems/info/dailyFaultRecord/index.vue
@@ -132,6 +132,16 @@
v-hasPermi="['ems/info:dailyFaultRecord:export']"
>导出
+
+ 导入
+
@@ -231,6 +241,36 @@
取 消
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+ 是否更新已经存在的数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+
@@ -291,11 +331,21 @@
{ key: 8, label: `故障发生时间`, visible: true },
{ key: 9, label: `处置完毕时间`, visible: true },
{ key: 10, label: `处置时长`, visible: true },
- ]
+ ],
+ upload: {
+ title: "导入日常故障记录",
+ open: false,
+ url: "",
+ updateSupport: false,
+ isUploading: false,
+ headers: {}
+ }
};
},
created() {
this.getList();
+ this.upload.url = process.env.VUE_APP_BASE_API + "/ems/info/dailyFaultRecord/importData";
+ this.upload.headers = { Authorization: "Bearer " + this.$store.getters.token };
},
methods: {
/** 查询日常故障记录列表 */
@@ -396,6 +446,32 @@
this.download('ems/info/dailyFaultRecord/export', {
...this.queryParams
}, `dailyFaultRecord_${new Date().getTime()}.xlsx`)
+ },
+ /** 导入按钮操作 */
+ handleImport() {
+ this.upload.title = "导入日常故障记录";
+ this.upload.open = true;
+ },
+ /** 下载模板操作 */
+ importTemplate() {
+ this.download('ems/info/dailyFaultRecord/importTemplate', {
+ }, `日常故障记录数据模板_${new Date().getTime()}.xlsx`)
+ },
+ // 文件上传中处理
+ handleFileUploadProgress(event, file, fileList) {
+ this.upload.isUploading = true;
+ },
+ // 文件上传成功处理
+ handleFileSuccess(response, file, fileList) {
+ this.upload.open = false;
+ this.upload.isUploading = false;
+ this.$refs.upload.clearFiles();
+ this.$alert("
" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true });
+ this.getList();
+ },
+ // 提交上传文件
+ submitFileForm() {
+ this.$refs.upload.submit();
}
}
};
diff --git a/src/views/ems/info/faultHandlingRecord/index.vue b/src/views/ems/info/faultHandlingRecord/index.vue
index 8a5c463..b43cc52 100644
--- a/src/views/ems/info/faultHandlingRecord/index.vue
+++ b/src/views/ems/info/faultHandlingRecord/index.vue
@@ -98,6 +98,16 @@
v-hasPermi="['ems/info:faultHandlingRecord:export']"
>导出
+
+ 导入
+
@@ -192,6 +202,36 @@
取 消
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+ 是否更新已经存在的数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+
@@ -252,11 +292,21 @@
{ key: 8, label: `处置时长,单位:分钟`, visible: true },
{ key: 9, label: `维修更换的主要元器件`, visible: true },
{ key: 10, label: `备注`, visible: true },
- ]
+ ],
+ upload: {
+ title: "导入故障处置记录",
+ open: false,
+ url: "",
+ updateSupport: false,
+ isUploading: false,
+ headers: {}
+ }
};
},
created() {
this.getList();
+ this.upload.url = process.env.VUE_APP_BASE_API + "/ems/info/faultHandlingRecord/importData";
+ this.upload.headers = { Authorization: "Bearer " + this.$store.getters.token };
},
methods: {
/** 查询故障处置记录列表 */
@@ -357,6 +407,32 @@
this.download('ems/info/faultHandlingRecord/export', {
...this.queryParams
}, `faultHandlingRecord_${new Date().getTime()}.xlsx`)
+ },
+ /** 导入按钮操作 */
+ handleImport() {
+ this.upload.title = "导入故障处置记录";
+ this.upload.open = true;
+ },
+ /** 下载模板操作 */
+ importTemplate() {
+ this.download('ems/info/faultHandlingRecord/importTemplate', {
+ }, `故障处置记录数据模板_${new Date().getTime()}.xlsx`)
+ },
+ // 文件上传中处理
+ handleFileUploadProgress(event, file, fileList) {
+ this.upload.isUploading = true;
+ },
+ // 文件上传成功处理
+ handleFileSuccess(response, file, fileList) {
+ this.upload.open = false;
+ this.upload.isUploading = false;
+ this.$refs.upload.clearFiles();
+ this.$alert("" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true });
+ this.getList();
+ },
+ // 提交上传文件
+ submitFileForm() {
+ this.$refs.upload.submit();
}
}
};
diff --git a/src/views/ems/info/plcBufferBatteryLifecycle/index.vue b/src/views/ems/info/plcBufferBatteryLifecycle/index.vue
index 01a45e2..f101067 100644
--- a/src/views/ems/info/plcBufferBatteryLifecycle/index.vue
+++ b/src/views/ems/info/plcBufferBatteryLifecycle/index.vue
@@ -194,6 +194,16 @@
v-hasPermi="['ems/info:plcBufferBatteryLifecycle:export']"
>导出
+
+ 导入
+
@@ -205,7 +215,11 @@
-
+
+
+
+
+
@@ -265,9 +279,9 @@
-
-
-
+
+
+
@@ -385,6 +399,36 @@
取 消
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+ 是否更新已经存在的数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+
@@ -463,11 +507,21 @@
{ key: 17, label: `第10次`, visible: true },
{ key: 18, label: `第11次`, visible: true },
{ key: 19, label: `第12次`, visible: true },
- ]
+ ],
+ upload: {
+ title: "导入行李系统PLC缓冲电池生命周期",
+ open: false,
+ url: "",
+ updateSupport: false,
+ isUploading: false,
+ headers: {}
+ }
};
},
created() {
this.getList();
+ this.upload.url = process.env.VUE_APP_BASE_API + "/ems/info/plcBufferBatteryLifecycle/importData";
+ this.upload.headers = { Authorization: "Bearer " + this.$store.getters.token };
},
methods: {
/** 查询行李系统PLC缓冲电池生命周期列表 */
@@ -577,6 +631,32 @@
this.download('ems/info/plcBufferBatteryLifecycle/export', {
...this.queryParams
}, `plcBufferBatteryLifecycle_${new Date().getTime()}.xlsx`)
+ },
+ /** 导入按钮操作 */
+ handleImport() {
+ this.upload.title = "导入行李系统PLC缓冲电池生命周期";
+ this.upload.open = true;
+ },
+ /** 下载模板操作 */
+ importTemplate() {
+ this.download('ems/info/plcBufferBatteryLifecycle/importTemplate', {
+ }, `PLC缓冲电池生命周期数据模板_${new Date().getTime()}.xlsx`)
+ },
+ // 文件上传中处理
+ handleFileUploadProgress(event, file, fileList) {
+ this.upload.isUploading = true;
+ },
+ // 文件上传成功处理
+ handleFileSuccess(response, file, fileList) {
+ this.upload.open = false;
+ this.upload.isUploading = false;
+ this.$refs.upload.clearFiles();
+ this.$alert("" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true });
+ this.getList();
+ },
+ // 提交上传文件
+ submitFileForm() {
+ this.$refs.upload.submit();
}
}
};
diff --git a/src/views/ems/info/securityDoorBatteryLifecycle/index.vue b/src/views/ems/info/securityDoorBatteryLifecycle/index.vue
index f025c05..c517fbb 100644
--- a/src/views/ems/info/securityDoorBatteryLifecycle/index.vue
+++ b/src/views/ems/info/securityDoorBatteryLifecycle/index.vue
@@ -198,6 +198,16 @@
v-hasPermi="['ems/info:securityDoorBatteryLifecycle:export']"
>导出
+
+ 导入
+
@@ -214,8 +224,11 @@
-
-
+
+
+
+
+
@@ -288,9 +301,9 @@
-
-
-
+
+
+
@@ -408,6 +421,36 @@
取 消
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+ 是否更新已经存在的数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+
@@ -486,11 +529,21 @@
{ key: 17, label: `第10次`, visible: true },
{ key: 18, label: `第11次`, visible: true },
{ key: 19, label: `第12次`, visible: true },
- ]
+ ],
+ upload: {
+ title: "导入行李系统安全门铅酸电池生命周期",
+ open: false,
+ url: "",
+ updateSupport: false,
+ isUploading: false,
+ headers: {}
+ }
};
},
created() {
this.getList();
+ this.upload.url = process.env.VUE_APP_BASE_API + "/ems/info/securityDoorBatteryLifecycle/importData";
+ this.upload.headers = { Authorization: "Bearer " + this.$store.getters.token };
},
methods: {
/** 查询行李系统安全门铅酸电池生命周期列表 */
@@ -600,6 +653,32 @@
this.download('ems/info/securityDoorBatteryLifecycle/export', {
...this.queryParams
}, `securityDoorBatteryLifecycle_${new Date().getTime()}.xlsx`)
+ },
+ /** 导入按钮操作 */
+ handleImport() {
+ this.upload.title = "导入行李系统安全门铅酸电池生命周期";
+ this.upload.open = true;
+ },
+ /** 下载模板操作 */
+ importTemplate() {
+ this.download('ems/info/securityDoorBatteryLifecycle/importTemplate', {
+ }, `安全门电池生命周期数据模板_${new Date().getTime()}.xlsx`)
+ },
+ // 文件上传中处理
+ handleFileUploadProgress(event, file, fileList) {
+ this.upload.isUploading = true;
+ },
+ // 文件上传成功处理
+ handleFileSuccess(response, file, fileList) {
+ this.upload.open = false;
+ this.upload.isUploading = false;
+ this.$refs.upload.clearFiles();
+ this.$alert("" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true });
+ this.getList();
+ },
+ // 提交上传文件
+ submitFileForm() {
+ this.$refs.upload.submit();
}
}
};
diff --git a/src/views/ems/info/sparePartsInventory/index.vue b/src/views/ems/info/sparePartsInventory/index.vue
index 34910e8..5fe651b 100644
--- a/src/views/ems/info/sparePartsInventory/index.vue
+++ b/src/views/ems/info/sparePartsInventory/index.vue
@@ -114,6 +114,16 @@
v-hasPermi="['ems/info:sparePartsInventory:export']"
>导出
+
+ 导入
+
@@ -199,6 +209,36 @@
取 消
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+ 是否更新已经存在的数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+
@@ -257,11 +297,21 @@
{ key: 7, label: `入库数量`, visible: true },
{ key: 8, label: `剩余数量`, visible: true },
{ key: 9, label: `备注`, visible: true },
- ]
+ ],
+ upload: {
+ title: "导入备件库记录",
+ open: false,
+ url: "",
+ updateSupport: false,
+ isUploading: false,
+ headers: {}
+ }
};
},
created() {
this.getList();
+ this.upload.url = process.env.VUE_APP_BASE_API + "/ems/info/sparePartsInventory/importData";
+ this.upload.headers = { Authorization: "Bearer " + this.$store.getters.token };
},
methods: {
/** 查询备件库记录主列表 */
@@ -361,6 +411,32 @@
this.download('ems/info/sparePartsInventory/export', {
...this.queryParams
}, `sparePartsInventory_${new Date().getTime()}.xlsx`)
+ },
+ /** 导入按钮操作 */
+ handleImport() {
+ this.upload.title = "导入备件库记录";
+ this.upload.open = true;
+ },
+ /** 下载模板操作 */
+ importTemplate() {
+ this.download('ems/info/sparePartsInventory/importTemplate', {
+ }, `备件库记录数据模板_${new Date().getTime()}.xlsx`)
+ },
+ // 文件上传中处理
+ handleFileUploadProgress(event, file, fileList) {
+ this.upload.isUploading = true;
+ },
+ // 文件上传成功处理
+ handleFileSuccess(response, file, fileList) {
+ this.upload.open = false;
+ this.upload.isUploading = false;
+ this.$refs.upload.clearFiles();
+ this.$alert("" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true });
+ this.getList();
+ },
+ // 提交上传文件
+ submitFileForm() {
+ this.$refs.upload.submit();
}
}
};
diff --git a/src/views/ems/info/sparePartsInventoryCheck/index.vue b/src/views/ems/info/sparePartsInventoryCheck/index.vue
index 7389521..b946659 100644
--- a/src/views/ems/info/sparePartsInventoryCheck/index.vue
+++ b/src/views/ems/info/sparePartsInventoryCheck/index.vue
@@ -82,6 +82,16 @@
v-hasPermi="['ems/info:sparePartsInventoryCheck:export']"
>导出
+
+ 导入
+
@@ -147,6 +157,36 @@
取 消
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+ 是否更新已经存在的数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+
@@ -195,11 +235,21 @@
{ key: 2, label: `盘点名称`, visible: true },
{ key: 3, label: `盘点数量`, visible: true },
{ key: 4, label: `盘点日期`, visible: true },
- ]
+ ],
+ upload: {
+ title: "导入备件盘点记录明细",
+ open: false,
+ url: "",
+ updateSupport: false,
+ isUploading: false,
+ headers: {}
+ }
};
},
created() {
this.getList();
+ this.upload.url = process.env.VUE_APP_BASE_API + "/ems/info/sparePartsInventoryCheck/importData";
+ this.upload.headers = { Authorization: "Bearer " + this.$store.getters.token };
},
methods: {
/** 查询备件盘点记录明细列表 */
@@ -294,7 +344,33 @@
this.download('ems/info/sparePartsInventoryCheck/export', {
...this.queryParams
}, `sparePartsInventoryCheck_${new Date().getTime()}.xlsx`)
+ },
+ /** 导入按钮操作 */
+ handleImport() {
+ this.upload.title = "导入备件盘点记录明细";
+ this.upload.open = true;
+ },
+ /** 下载模板操作 */
+ importTemplate() {
+ this.download('ems/info/sparePartsInventoryCheck/importTemplate', {
+ }, `备件盘点记录明细数据模板_${new Date().getTime()}.xlsx`)
+ },
+ // 文件上传中处理
+ handleFileUploadProgress(event, file, fileList) {
+ this.upload.isUploading = true;
+ },
+ // 文件上传成功处理
+ handleFileSuccess(response, file, fileList) {
+ this.upload.open = false;
+ this.upload.isUploading = false;
+ this.$refs.upload.clearFiles();
+ this.$alert("" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true });
+ this.getList();
+ },
+ // 提交上传文件
+ submitFileForm() {
+ this.$refs.upload.submit();
}
}
};
- -->
+
diff --git a/src/views/ems/info/sparePartsRegistration/index.vue b/src/views/ems/info/sparePartsRegistration/index.vue
index a0de743..e66152b 100644
--- a/src/views/ems/info/sparePartsRegistration/index.vue
+++ b/src/views/ems/info/sparePartsRegistration/index.vue
@@ -9,10 +9,10 @@
@keyup.enter.native="handleQuery"
/>
-
+
@@ -202,6 +202,16 @@
v-hasPermi="['ems/info:sparePartsRegistration:export']"
>导出
+
+ 导入
+
@@ -209,12 +219,16 @@
-
+
-
+
+
+
+
+
@@ -261,8 +275,8 @@
-
-
+
+
@@ -277,7 +291,7 @@
-
+
取 消
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+ 是否更新已经存在的数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+
@@ -453,7 +497,7 @@
columns: [
{ key: 0, label: `主键,自增ID`, visible: false },
{ key: 1, label: `类型`, visible: true },
- { key: 2, label: `参照位置,参考坐标或设备ID`, visible: true },
+ { key: 2, label: `参照位置`, visible: true },
{ key: 3, label: `位置描述`, visible: true },
{ key: 4, label: `取电`, visible: true },
{ key: 5, label: `电池类型`, visible: true },
@@ -471,11 +515,21 @@
{ key: 17, label: `第10次`, visible: true },
{ key: 18, label: `第11次`, visible: true },
{ key: 19, label: `第12次`, visible: true },
- ]
+ ],
+ upload: {
+ title: "导入动力能源部行输科废旧备件登记",
+ open: false,
+ url: "",
+ updateSupport: false,
+ isUploading: false,
+ headers: {}
+ }
};
},
created() {
this.getList();
+ this.upload.url = process.env.VUE_APP_BASE_API + "/ems/info/sparePartsRegistration/importData";
+ this.upload.headers = { Authorization: "Bearer " + this.$store.getters.token };
},
methods: {
/** 查询动力能源部行输科废旧备件登记列表 */
@@ -585,6 +639,32 @@
this.download('ems/info/sparePartsRegistration/export', {
...this.queryParams
}, `sparePartsRegistration_${new Date().getTime()}.xlsx`)
+ },
+ /** 导入按钮操作 */
+ handleImport() {
+ this.upload.title = "导入动力能源部行输科废旧备件登记";
+ this.upload.open = true;
+ },
+ /** 下载模板操作 */
+ importTemplate() {
+ this.download('ems/info/sparePartsRegistration/importTemplate', {
+ }, `备件登记数据模板_${new Date().getTime()}.xlsx`)
+ },
+ // 文件上传中处理
+ handleFileUploadProgress(event, file, fileList) {
+ this.upload.isUploading = true;
+ },
+ // 文件上传成功处理
+ handleFileSuccess(response, file, fileList) {
+ this.upload.open = false;
+ this.upload.isUploading = false;
+ this.$refs.upload.clearFiles();
+ this.$alert("" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true });
+ this.getList();
+ },
+ // 提交上传文件
+ submitFileForm() {
+ this.$refs.upload.submit();
}
}
};
diff --git a/src/views/ems/info/sparePartsUsageRecord/index.vue b/src/views/ems/info/sparePartsUsageRecord/index.vue
index 18643c8..a4d1e30 100644
--- a/src/views/ems/info/sparePartsUsageRecord/index.vue
+++ b/src/views/ems/info/sparePartsUsageRecord/index.vue
@@ -128,6 +128,16 @@
v-hasPermi="['ems/info:sparePartsUsageRecord:remove']"
>删除
+
+ 导入
+
取 消
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+ 是否更新已经存在的数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+