|
@@ -173,7 +173,7 @@
|
|
<!-- >立即升级</el-button>-->
|
|
<!-- >立即升级</el-button>-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
</div>
|
|
</div>
|
|
- <el-table :data="updateRecordList">
|
|
|
|
|
|
+ <el-table :data="updateList">
|
|
<el-table-column label="序号" width="60" align="center">
|
|
<el-table-column label="序号" width="60" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.$index+1}}
|
|
{{scope.$index+1}}
|
|
@@ -292,11 +292,11 @@
|
|
show:false,
|
|
show:false,
|
|
download_url:'',
|
|
download_url:'',
|
|
firmware_download_url:'',
|
|
firmware_download_url:'',
|
|
- updateRecordList:[{
|
|
|
|
- box_id:'xx:xx:xx:xx:xx:xx',
|
|
|
|
- ToGatewayVersion:'1.11',
|
|
|
|
- update_result:'成功',
|
|
|
|
- box_name:'namexx'
|
|
|
|
|
|
+ updateList:[{
|
|
|
|
+ // box_id:'xx:xx:xx:xx:xx:xx',
|
|
|
|
+ // ToGatewayVersion:'1.11',
|
|
|
|
+ // update_result:'成功',
|
|
|
|
+ // box_name:'namexx'
|
|
}],
|
|
}],
|
|
randomKey: Math.random(),
|
|
randomKey: Math.random(),
|
|
currentRow:{},
|
|
currentRow:{},
|
|
@@ -389,7 +389,7 @@
|
|
});
|
|
});
|
|
|
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
- this.updateBoxList = res.result.data
|
|
|
|
|
|
+ this.updateList = res.result.data
|
|
console.log('res.code === 200')
|
|
console.log('res.code === 200')
|
|
} else {
|
|
} else {
|
|
this.$notify({
|
|
this.$notify({
|
|
@@ -398,12 +398,12 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
- console.log('500ms后执行的方法');
|
|
|
|
- var car = { box_id : '222'}
|
|
|
|
- this.updateBoxList.push(car)
|
|
|
|
- console.log('res is:', res.result.data)
|
|
|
|
- }, 500);
|
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // console.log('500ms后执行的方法');
|
|
|
|
+ // var car = { box_id : '222'}
|
|
|
|
+ // this.updateList.push(car)
|
|
|
|
+ // console.log('res is:', res.result.data)
|
|
|
|
+ // }, 500);
|
|
|
|
|
|
},
|
|
},
|
|
deleteRowButton(row) {
|
|
deleteRowButton(row) {
|
|
@@ -425,7 +425,7 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
removeRowButton(row) {
|
|
removeRowButton(row) {
|
|
- this.$confirm("确定删除吗", "提示", {
|
|
|
|
|
|
+ this.$confirm("确定删除吗?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
type: "warning"
|
|
@@ -433,7 +433,7 @@
|
|
console.log('///////remove from task',row)
|
|
console.log('///////remove from task',row)
|
|
const res = await versionUpdateRemove({
|
|
const res = await versionUpdateRemove({
|
|
task_id: row.task_id,
|
|
task_id: row.task_id,
|
|
- btk_gateway_version_auto_id: row.btk_gateway_version_auto_id,
|
|
|
|
|
|
+ btk_gateway_version_auto_id: row.BtkGatewayVersionAutoID,
|
|
});
|
|
});
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.$notify({
|
|
this.$notify({
|
|
@@ -443,11 +443,11 @@
|
|
|
|
|
|
|
|
|
|
const res = await updateBoxList({
|
|
const res = await updateBoxList({
|
|
- task_id: row.task_id,
|
|
|
|
|
|
+ task_id: this.currentRow.task_id,
|
|
});
|
|
});
|
|
|
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
- this.updateBoxList = res.result.data
|
|
|
|
|
|
+ this.updateList = res.result.data
|
|
console.log('res.code === 200')
|
|
console.log('res.code === 200')
|
|
} else {
|
|
} else {
|
|
this.$notify({
|
|
this.$notify({
|
|
@@ -456,12 +456,12 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
- console.log('500ms后执行的方法');
|
|
|
|
- var car = { box_id : '222'}
|
|
|
|
- this.updateBoxList.push(car)
|
|
|
|
- console.log('res is:', res.result.data)
|
|
|
|
- }, 500);
|
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // console.log('500ms后执行的方法');
|
|
|
|
+ // var car = { box_id : '222'}
|
|
|
|
+ // this.updateList.push(car)
|
|
|
|
+ // console.log('res is:', res.result.data)
|
|
|
|
+ // }, 500);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|