css
shj
2022-07-18 9f4e449a4159c9debf5520a797393bd5df2e5908
src/components/equipmentDailog/planDailog.vue
@@ -1,5 +1,6 @@
<template>
   <el-dialog v-model="dialogVisible" title="选择所属重大危险源单元"  width="50%" draggable>
   <el-dialog v-model="dialogVisible" :fullscreen="full" title="选择所属重大危险源单元" width="50%" draggable>
      <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
      <el-row>
         <el-col :span="17">
            <el-form ref="ruleFormRef" :model="ruleForm" status-icon>
@@ -67,7 +68,7 @@
</template>
<script lang="ts">
import { defineComponent, reactive, ref } from 'vue';
import { Delete } from '@element-plus/icons-vue';
import { Delete, FullScreen } from '@element-plus/icons-vue';
export default defineComponent({
   setup() {
      const dialogVisible = ref<boolean>(false);
@@ -113,12 +114,21 @@
      const dynamicTags = ref(['2016-05-03']);
      const handleClose = (tag: string) => {
         dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1);
         radio1.value=""
         radio1.value = '';
      };
      const radio1=ref('2016-05-03')
      const radio1 = ref('2016-05-03');
      const radio=(event:any)=>{
         dynamicTags.value[0]=event
         dynamicTags.value[0] = event;
      };
      //全屏
      const full = ref(false);
      const toggleFullscreen = () => {
         if (full.value == false) {
            full.value = true;
         } else {
            full.value = false;
      }
      };
      return {
         dialogVisible,
         openDailog,
@@ -132,6 +142,9 @@
         radio1,
         radio,
         Delete,
         full,
         toggleFullscreen,
         FullScreen,
      };
   },
});