木箱堆叠代码更新
This commit is contained in:
@@ -98,6 +98,7 @@
|
||||
type="success"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
:loading="chargeLoading"
|
||||
@click="charge_task(agvObj)"
|
||||
>
|
||||
AGV充电
|
||||
@@ -109,6 +110,7 @@
|
||||
type="success"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
:loading="chargeLoading"
|
||||
@click="charge_task(agvObj)"
|
||||
>
|
||||
AGV充电
|
||||
@@ -136,6 +138,7 @@ export default {
|
||||
form: {
|
||||
flag: '1'
|
||||
},
|
||||
chargeLoading: false,
|
||||
listA1: [],
|
||||
listLk: [],
|
||||
agvList: [
|
||||
@@ -185,11 +188,15 @@ export default {
|
||||
}
|
||||
},
|
||||
charge_task(data) {
|
||||
this.chargeLoading = true
|
||||
sendAgvChargeTask(data).then(res => {
|
||||
this.chargeLoading = false
|
||||
this.$message({
|
||||
message: '下发成功',
|
||||
type: 'success'
|
||||
})
|
||||
}).catch(() => {
|
||||
this.chargeLoading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user