| | |
| | | <template> |
| | | <el-dialog v-model="dialogVisible" :fullscreen="full" title="新建设备设施类型管理" width="50%" draggable> |
| | | <el-dialog v-model="dialogVisible" :fullscreen="full" :title="titles" width="50%" 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"> |
| | | <el-form-item label="是否为设备内容" size="default"> |
| | | <el-select v-model="form.region" placeholder="请选择" style="width: 100%"> |
| | | <el-option label="Zone one" value="shanghai" /> |
| | | <el-option label="Zone two" value="beijing" /> |
| | | <el-option label="1">是</el-option> |
| | | <el-option label="2">否</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | export default defineComponent({ |
| | | setup() { |
| | | const dialogVisible = ref(false); |
| | | const form = ref({}); |
| | | const openDailog = () => { |
| | | const form = ref({ |
| | | |
| | | }); |
| | | const titles=ref() |
| | | const openDailog = (title:string,id:number) => { |
| | | dialogVisible.value = true; |
| | | titles.value=`${title}设备设施类型管理` |
| | | |
| | | |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | |
| | | return { |
| | | dialogVisible, |
| | | form, |
| | | titles, |
| | | openDailog, |
| | | full, |
| | | toggleFullscreen, |