推送租赁

This commit is contained in:
binbin_pan 2024-07-05 16:48:26 +08:00
parent b6859923de
commit 36c5b6eecc
1 changed files with 26 additions and 4 deletions

View File

@ -124,6 +124,17 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <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 <right-toolbar
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
@ -135,7 +146,7 @@
:data="devicesList" :data="devicesList"
@selection-change="handleSelectionChange" @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 <el-table-column
align="center" align="center"
label="序号" label="序号"
@ -759,8 +770,8 @@ export default {
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.maId) this.ids = selection.map((item) => item.maId)
this.single = selection.length != 1 // this.single = selection.length != 1
this.multiple = !selection.length // this.multiple = !selection.length
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -827,7 +838,18 @@ export default {
this.$refs.mapDialog.openMapDialog(true) this.$refs.mapDialog.openMapDialog(true)
this.$refs.mapDialog.getEquipmentInfo(params) this.$refs.mapDialog.getEquipmentInfo(params)
this.$refs.mapDialog.initMap() this.$refs.mapDialog.initMap()
} },
handlePush() {
this.$modal
.confirm('是否确认推送所选择的数据项?')
.then(() => {
console.log('推送', this.ids)
// this.$message.success('')
})
.catch(() => {
this.$message.info('已取消推送')
})
},
}, },
} }
</script> </script>