|
@@ -245,7 +245,7 @@
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
show-overflow-tooltip
|
|
|
- width="280"
|
|
|
+ width="300"
|
|
|
>
|
|
|
<template #default="{ row }">
|
|
|
<!-- <el-button type="text" @click="listeningHost(row)">
|
|
@@ -254,6 +254,9 @@
|
|
|
<el-button type="text" @click="handlePremission(row)">
|
|
|
关联房间
|
|
|
</el-button>
|
|
|
+ <el-button type="text" @click="allFloorDistributeByIdFn(row)">
|
|
|
+ 下发数据
|
|
|
+ </el-button>
|
|
|
<el-button type="text" @click="handleDetail(row)">详情</el-button>
|
|
|
<el-button type="text" @click="handleEdit(row)">编辑</el-button>
|
|
|
<el-button type="text" @click="handleDelete(row)">删除</el-button>
|
|
@@ -288,6 +291,7 @@
|
|
|
getList,
|
|
|
synchronization,
|
|
|
allFloorDistribute,
|
|
|
+ allFloorDistributeById,
|
|
|
} from './api/index'
|
|
|
import {
|
|
|
Delete,
|
|
@@ -380,6 +384,16 @@
|
|
|
const handlePremission = (row) => {
|
|
|
state['premission'].showEdit(row)
|
|
|
}
|
|
|
+ //下发数据
|
|
|
+ const allFloorDistributeByIdFn = async (row) => {
|
|
|
+ state.listLoading = true
|
|
|
+ const { msg } = await allFloorDistributeById({
|
|
|
+ id: row.id,
|
|
|
+ })
|
|
|
+ $baseMessage(msg, 'success', 'vab-hey-message-success')
|
|
|
+ await fetchData()
|
|
|
+ state.listLoading = false
|
|
|
+ }
|
|
|
//用户删除
|
|
|
const handleDelete = (row) => {
|
|
|
if (row.id) {
|
|
@@ -490,6 +504,7 @@
|
|
|
remoteMethodTruename,
|
|
|
remoteMethodAccount,
|
|
|
handlePremission,
|
|
|
+ allFloorDistributeByIdFn,
|
|
|
getPupilFn,
|
|
|
handleImport,
|
|
|
Delete,
|