| | |
| | | <template> |
| | | <el-dialog v-model="dialogVisible" title="新建仪器仪表" width="60%"> |
| | | <el-dialog v-model="dialogVisible" :fullscreen="full" title="新建仪器仪表" width="60%"> |
| | | <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button> |
| | | <el-form :model="form" label-width="120px" class="formType"> |
| | | <el-form-item label="装置设施名称"> |
| | | <el-input v-model="form.name" placeholder="请填写装置设施名称" /> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import categoryDailog from './categoryDailog.vue'; |
| | | import regionDailog from './regionDailog.vue'; |
| | | import maintenanceDailog from './maintenanceDailog.vue'; |
| | |
| | | resource: '', |
| | | desc: '', |
| | | }); |
| | | const Dailogtype=ref(false) |
| | | const openDailog = (type:boolean) => { |
| | | const Dailogtype = ref(false); |
| | | const openDailog = (type: boolean) => { |
| | | dialogVisible.value = true; |
| | | Dailogtype.value=type |
| | | Dailogtype.value = type; |
| | | }; |
| | | const activeName = ref('first'); |
| | | const tableData = [ |
| | |
| | | () => false |
| | | ); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | Dailogtype, |
| | |
| | | handleRemove, |
| | | handlePreview, |
| | | handleExceed, |
| | | beforeRemove |
| | | beforeRemove, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |