<template>
    <el-dialog draggable width="600px" v-model="dialogVisible" :title="title">
        <template #footer>
            <span class="dialog-footer">
                <el-button @click="dialogVisible = false">取消</el-button>
                <el-button type="primary" @click="submit">确认</el-button>
            </span>
        </template>
    </el-dialog>
</template>
<script lang="ts" setup>
import { ref, inject } from 'vue'
import { reactive } from 'vue'
import { update, add } from '@/api/user-boot/function'
import { nodeDeviceTree } from '@/api/device-boot/Business'

const dialogVisible = ref(false)
const title = ref('绑定监测点')
const open = () => {
    nodeDeviceTree().then(res => { 
    })
    
    dialogVisible.value = true
}
const submit = async () => {
    
    dialogVisible.value = false
}

defineExpose({ open })
</script>
