diff --git a/xiuosiot-frontend/src/views/terminal/OTA/index.vue b/xiuosiot-frontend/src/views/terminal/OTA/index.vue index d6c722a..11687ee 100644 --- a/xiuosiot-frontend/src/views/terminal/OTA/index.vue +++ b/xiuosiot-frontend/src/views/terminal/OTA/index.vue @@ -112,7 +112,7 @@ backgroundColor: item.primaryColor, color: 'white', }" - @click="showTask(item.fileName)" + @click="showTask(item.fileName,item.fileVersion)" >升级 @@ -192,7 +192,7 @@
{{ item.deviceId }}

{{ item.fileName }}

-

{{ item.file_version }}

+

{{ item.fileVersion }}

2023-08-24

15:00:00

@@ -205,7 +205,7 @@

@@ -220,8 +220,8 @@ - - + + @@ -275,6 +275,7 @@ export default { nextDisabled: true, firmwareList: [], currentFileName: '', + currentFileVersion: '', fileList: [], newFile: { fileName: '', @@ -291,7 +292,7 @@ export default { }, taskList: [], newTask: { - file_version: '', + fileVersion: '', deviceId: '', updateType: '' }, @@ -422,7 +423,10 @@ export default { this.verifyStatus = num this.getList() }, - add() {}, + showAddTask() { + this.newTask.fileVersion = this.currentFileVersion + this.addTaskVisible = true + }, closeDialog() { this.active = 1 this.newFile = this.$options.data().newFile @@ -474,8 +478,9 @@ export default { }) } }, - showTask(fileName) { + showTask(fileName, fileVersion) { this.currentFileName = fileName + this.currentFileVersion = fileVersion getTaskList({ fileName }).then((res) => { this.$message.success('升级任务查询成功') this.taskList = res.data.map(task => {