auto show fileVersion when add ota task
This commit is contained in:
parent
9ec5847709
commit
f373edec7b
|
@ -112,7 +112,7 @@
|
|||
backgroundColor: item.primaryColor,
|
||||
color: 'white',
|
||||
}"
|
||||
@click="showTask(item.fileName)"
|
||||
@click="showTask(item.fileName,item.fileVersion)"
|
||||
>升级</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -192,7 +192,7 @@
|
|||
<div v-for="(item, index) in taskList" :key="index" class="item">
|
||||
<div class="head">{{ item.deviceId }}</div>
|
||||
<p>{{ item.fileName }}</p>
|
||||
<p>{{ item.file_version }}</p>
|
||||
<p>{{ item.fileVersion }}</p>
|
||||
<p>2023-08-24</p>
|
||||
<p>15:00:00</p>
|
||||
<p style="margin-top: 10px">
|
||||
|
@ -205,7 +205,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<el-button class="button_add_task" @click="addTaskVisible = true">新增升级任务</el-button>
|
||||
<el-button class="button_add_task" @click="showAddTask()">新增升级任务</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -220,8 +220,8 @@
|
|||
<el-form ref="form" label-width="100px" :model="newTask" size="medium">
|
||||
<el-row>
|
||||
<el-col :span="18" :offset="3">
|
||||
<el-form-item label="升级版本号:" prop="file_version">
|
||||
<el-input v-model="newTask.file_version" />
|
||||
<el-form-item label="升级版本号:" prop="fileVersion">
|
||||
<el-input v-model="newTask.fileVersion" disabled />
|
||||
</el-form-item>
|
||||
<el-form-item label="升级设备id:" prop="deviceId">
|
||||
<el-input v-model="newTask.deviceId" />
|
||||
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue