css
shj
2022-07-18 9f4e449a4159c9debf5520a797393bd5df2e5908
src/views/goalManagement/safetyAssessment/component/Dailog.vue
@@ -1,5 +1,6 @@
<template>
   <el-dialog v-model="dialogVisible" title="目标分解" width="70%" draggable>
   <el-dialog v-model="dialogVisible" :fullscreen="full" title="目标分解" width="70%" draggable>
      <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
      <el-form :model="form" label-width="120px">
         <el-row>
            <el-col :span="11">
@@ -29,8 +30,7 @@
         </el-row>
      </el-form>
      <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
         <el-tab-pane label="目标指标分解" name="1">
         </el-tab-pane>
         <el-tab-pane label="目标指标分解" name="1"> </el-tab-pane>
      </el-tabs>
      <el-table :data="tableData" style="width: 100%">
         <el-table-column align="center" type="index" label="序号" width="70" />
@@ -60,8 +60,8 @@
</template>
<script lang="ts">
import { defineComponent, ref, reactive } from 'vue';
import { Search } from '@element-plus/icons-vue';
import DailogSearch from '../../../../components/DailogSearch/DailogSearch.vue'
import { Search, FullScreen } from '@element-plus/icons-vue';
import DailogSearch from '../../../../components/DailogSearch/DailogSearch.vue';
export default defineComponent({
   components:{DailogSearch},
   setup() {
@@ -105,10 +105,19 @@
         },
      ];
      // 安全目标指标弹窗
      const Shows=ref()
      const Shows = ref();
      const daiInpt=()=>{
         Shows.value.openDailog()
         Shows.value.openDailog();
      };
      //全屏
      const full = ref(false);
      const toggleFullscreen = () => {
         if (full.value == false) {
            full.value = true;
         } else {
            full.value = false;
      }
      };
      return {
         form,
         dialogVisible,
@@ -118,6 +127,9 @@
         Shows,
         daiInpt,
         Search,
         full,
         toggleFullscreen,
         FullScreen,
      };
   },
});