Newer
Older
robot_dog_patrol_front / src / views / home / well / components / gasDialog.vue
<script lang="ts" setup name="GasDialog">
import monitorDataGasList from './monitorDataGasList.vue'
const dialogFormVisible = ref(false)
const wellId = ref('')
// 初始化对话框
const initDialog = (id: string) => {
  wellId.value = id
  dialogFormVisible.value = true
}
defineExpose({
  initDialog,
})

const cancel = () => {
  dialogFormVisible.value = false
}
</script>

<template>
  <el-dialog v-model="dialogFormVisible" title="燃气浓度" append-to-body width="60%">
    <monitor-data-gas-list v-if="dialogFormVisible" :id="wellId" />
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="cancel">
          关闭
        </el-button>
      </div>
    </template>
  </el-dialog>
</template>

<style lang="scss" scoped>
.el-dialog {
  width: 700px;
}

.el-select {
  width: 100%;
}
</style>