-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -137,6 +130,7 @@ export default {
},
data() {
return {
+ downLoadDeviceErrorLogging: false,
permission: {
add: ['admin', 'deviceErrorLog:add'],
edit: ['admin', 'deviceErrorLog:edit'],
@@ -195,20 +189,18 @@ export default {
}
},
doExportDeviceErrorLogging() {
- this.downLoadTaskLogging = true
- const params = {
- device_code: this.query.device_code,
- error_code: this.query.error_code,
- error_info: this.query.error_info,
- start_time: this.query.start_time,
- end_time: this.query.end_time
+ this.downLoadDeviceErrorLogging = true
+ const params = this.crud.query
+ if (this.crud.query.createTime !== undefined) {
+ params.begin_time = this.crud.query.createTime[0]
+ params.end_time = this.crud.query.createTime[1]
}
const url = '/api/deviceErrorLog/download'
download(url, params).then(result => {
- downloadFile(result, this.crud.title + '数据', 'csv')
- this.downLoadTaskTreeLogging = false
+ downloadFile(result, '设备报警记录', 'pdf')
+ this.downLoadDeviceErrorLogging = false
}).catch(() => {
- this.downLoadTaskTreeLogging = false
+ this.downLoadDeviceErrorLogging = false
})
}
}
diff --git a/acs/nladmin-ui/src/views/acs/history/taskRecord/index.vue b/acs/nladmin-ui/src/views/acs/history/taskRecord/index.vue
index a68b83b..960d693 100644
--- a/acs/nladmin-ui/src/views/acs/history/taskRecord/index.vue
+++ b/acs/nladmin-ui/src/views/acs/history/taskRecord/index.vue
@@ -32,20 +32,6 @@
@keyup.enter.native="crud.toQuery"
/>
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-