木箱堆叠代码更新
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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
<el-table
|
||||
ref="table"
|
||||
v-loading="crud.loading"
|
||||
:data="crud.data"
|
||||
:data="tableData"
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
@@ -104,7 +104,7 @@
|
||||
<el-table-column prop="solve_mode" label="解决方式" show-overflow-tooltip width="250px" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
<!-- <pagination />-->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -132,7 +132,6 @@ export default {
|
||||
add: false,
|
||||
reset: true
|
||||
},
|
||||
size: 20,
|
||||
idField: 'device_id',
|
||||
sort: 'device_id,desc',
|
||||
crudMethod: { ...crudFaultdevice }
|
||||
@@ -141,7 +140,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
permission: {},
|
||||
syncLoading: false,
|
||||
tableData: [],
|
||||
rules: {
|
||||
}
|
||||
}
|
||||
@@ -171,8 +170,8 @@ export default {
|
||||
initStatus() {
|
||||
const data = this.crud.query
|
||||
crudFaultdevice.deviceCharge(data).then(res => {
|
||||
this.crud.data = res.content
|
||||
this.crud.page.size = 10
|
||||
// this.crud.data = res.content
|
||||
this.tableData = res.content
|
||||
})
|
||||
},
|
||||
formatType1(row) {
|
||||
|
||||
Reference in New Issue
Block a user