推送租赁
This commit is contained in:
parent
b6859923de
commit
36c5b6eecc
|
|
@ -124,6 +124,17 @@
|
|||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<!-- 推送 -->
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
size="mini"
|
||||
@click="handlePush"
|
||||
:disabled="ids.length == 0"
|
||||
>推送租赁平台</el-button
|
||||
>
|
||||
</el-col>
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
@queryTable="getList"
|
||||
|
|
@ -135,7 +146,7 @@
|
|||
:data="devicesList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column type="selection" width="55" align="center" :selectable="(row) => row.maStatus == '15'" />
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="序号"
|
||||
|
|
@ -759,8 +770,8 @@ export default {
|
|||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.maId)
|
||||
this.single = selection.length != 1
|
||||
this.multiple = !selection.length
|
||||
// this.single = selection.length != 1
|
||||
// this.multiple = !selection.length
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
|
|
@ -827,7 +838,18 @@ export default {
|
|||
this.$refs.mapDialog.openMapDialog(true)
|
||||
this.$refs.mapDialog.getEquipmentInfo(params)
|
||||
this.$refs.mapDialog.initMap()
|
||||
}
|
||||
},
|
||||
handlePush() {
|
||||
this.$modal
|
||||
.confirm('是否确认推送所选择的数据项?')
|
||||
.then(() => {
|
||||
console.log('推送', this.ids)
|
||||
// this.$message.success('推送成功')
|
||||
})
|
||||
.catch(() => {
|
||||
this.$message.info('已取消推送')
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue