Newer
Older
smartwell_front / src / views / home / well / components / gasDialog.vue
lyg on 13 Nov 1 KB 底图和需求修改
<script lang="ts" setup name="GasDialog">
import monitorDataGasList from './monitorDataGasList.vue'
const dialogFormVisible = ref(false)
const wellId = ref('')
// 初始化对话框
const gasRef = ref()
const initDialog = (id: string) => {
  wellId.value = id
  dialogFormVisible.value = true
  nextTick(() => {
    gasRef.value.switchView()
  })
}
defineExpose({
  initDialog,
})

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

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

<style lang="scss" scoped>
.body {
  width: 100%;

  ::v-deep(.table-container) {
    .button-area {
      .custom {
        width: 100%;
      }
    }
  }
}

.el-dialog {
  width: 700px;
}

.el-select {
  width: 100%;
}

// .body {
//   ::v-deep(.button-left) {
//     width: 100%;
//   }
// }
::v-deep(.table-container) {
  .button-left {
    width: 100%;
  }
}
</style>