| | |
| | | <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> |
| | |
| | | </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); |
| | |
| | | const radio=(event:any)=>{ |
| | | dynamicTags.value[0]=event |
| | | } |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | }else{ |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | openDailog, |
| | |
| | | handleClose, |
| | | radio1, |
| | | radio, |
| | | full, |
| | | toggleFullscreen, |
| | | Delete, |
| | | FullScreen |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <template> |
| | | <el-dialog v-model="dialogVisible" title="用户选择" width="60%" draggable> |
| | | <el-dialog v-model="dialogVisible" :fullscreen="full" title="用户选择" width="60%" draggable> |
| | | <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <div class="userTree"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { FullScreen } from '@element-plus/icons-vue'; |
| | | interface Tree { |
| | | label: string; |
| | | children?: Tree[]; |
| | |
| | | const openDailog = () => { |
| | | dialogVisible.value = true; |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | }else{ |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | names, |
| | |
| | | handleCurrentChange, |
| | | radio1, |
| | | dynamicTags, |
| | | handleClose |
| | | handleClose, |
| | | FullScreen, |
| | | full, |
| | | toggleFullscreen |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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 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, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <template> |
| | | <el-dialog v-model="dialogVisible" title="新建仪器仪表" width="60%"> |
| | | <el-dialog :fullscreen="full" v-model="dialogVisible" title="新建仪器仪表" width="60%"> |
| | | <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button> |
| | | <el-form :model="form" label-width="130px"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search,Plus } from '@element-plus/icons-vue'; |
| | | import { Search,Plus,FullScreen } from '@element-plus/icons-vue'; |
| | | import categoryDailog from './categoryDailog.vue'; |
| | | import planDailog from './planDailog.vue'; |
| | | import maintenanceDailog from './maintenanceDailog.vue'; |
| | |
| | | } |
| | | return true; |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | }else{ |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | Dailogtype, |
| | |
| | | imageUrl, |
| | | handleAvatarSuccess, |
| | | beforeAvatarUpload, |
| | | Plus |
| | | Plus, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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> |
| | |
| | | </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); |
| | |
| | | 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, |
| | |
| | | radio1, |
| | | radio, |
| | | Delete, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue' |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue'; |
| | | export default defineComponent({ |
| | | components:{DailogSearchUser}, |
| | | setup() { |
| | |
| | | dialogVisible.value = true; |
| | | }; |
| | | // 开启用户弹窗 |
| | | const Show=ref() |
| | | const Show = ref(); |
| | | const openUser=()=>{ |
| | | Show.value.openDailog() |
| | | Show.value.openDailog(); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | Show, |
| | | openUser, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <template> |
| | | <el-dialog v-model="dialogVisible" title="新建仪器仪表" width="50%" draggable> |
| | | <el-dialog :fullscreen="full" v-model="dialogVisible" title="新建仪器仪表" 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"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue' |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue'; |
| | | export default defineComponent({ |
| | | components:{DailogSearchUser}, |
| | | setup() { |
| | |
| | | dialogVisible.value = true; |
| | | }; |
| | | // 开启用户弹窗 |
| | | const Show=ref() |
| | | const Show = ref(); |
| | | const openUser=()=>{ |
| | | Show.value.openDailog() |
| | | Show.value.openDailog(); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | Show, |
| | | openUser, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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> |
| | |
| | | </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); |
| | |
| | | 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, |
| | |
| | | radio1, |
| | | radio, |
| | | Delete, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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> |
| | |
| | | </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); |
| | |
| | | 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, |
| | |
| | | radio1, |
| | | radio, |
| | | Delete, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue' |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue'; |
| | | export default defineComponent({ |
| | | components:{DailogSearchUser}, |
| | | setup() { |
| | |
| | | dialogVisible.value = true; |
| | | }; |
| | | // 开启用户弹窗 |
| | | const Show=ref() |
| | | const Show = ref(); |
| | | const openUser=()=>{ |
| | | Show.value.openDailog() |
| | | Show.value.openDailog(); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | Show, |
| | | openUser, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue' |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue'; |
| | | export default defineComponent({ |
| | | components:{DailogSearchUser}, |
| | | setup() { |
| | |
| | | dialogVisible.value = true; |
| | | }; |
| | | // 开启用户弹窗 |
| | | const Show=ref() |
| | | const Show = ref(); |
| | | const openUser=()=>{ |
| | | Show.value.openDailog() |
| | | Show.value.openDailog(); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | Show, |
| | | openUser, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <template> |
| | | <el-dialog |
| | | v-model="dialogVisible" |
| | | title="导入Excel" |
| | | width="50%" |
| | | draggable |
| | | > |
| | | <el-dialog v-model="dialogVisible" title="导入Excel" width="50%" :fullscreen="full" draggable> |
| | | <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button> |
| | | <el-upload |
| | | v-model:file-list="fileList" |
| | | class="upload-demo" |
| | |
| | | <el-button>下载模板</el-button> |
| | | <el-button type="primary">点击上传</el-button> |
| | | <template #tip> |
| | | <div class="el-upload__tip"> |
| | | 只允许导入“xls”或“xlsx”格式文件! |
| | | </div> |
| | | <div class="el-upload__tip">只允许导入“xls”或“xlsx”格式文件!</div> |
| | | </template> |
| | | </el-upload> |
| | | </el-dialog> |
| | | </template> |
| | | <script lang="ts"> |
| | | import { ref,toRefs, reactive,defineComponent,computed } from "vue"; |
| | | import { ElMessage, ElMessageBox } from "element-plus"; |
| | | import type { UploadProps, UploadUserFile } from "element-plus"; |
| | | import { ref, toRefs, reactive, defineComponent, computed } from 'vue'; |
| | | import { ElMessage, ElMessageBox } from 'element-plus'; |
| | | import type { UploadProps, UploadUserFile } from 'element-plus'; |
| | | import { FullScreen } from '@element-plus/icons-vue'; |
| | | export default defineComponent({ |
| | | setup() { |
| | | let dialogVisible =ref<boolean>(false) |
| | | let dialogVisible = ref<boolean>(false); |
| | | const fileList = ref<UploadUserFile[]>([ |
| | | { |
| | | name: "element-plus-logo.svg", |
| | | url: "https://element-plus.org/images/element-plus-logo.svg", |
| | | name: 'element-plus-logo.svg', |
| | | url: 'https://element-plus.org/images/element-plus-logo.svg', |
| | | }, |
| | | { |
| | | name: "element-plus-logo2.svg", |
| | | url: "https://element-plus.org/images/element-plus-logo.svg", |
| | | name: 'element-plus-logo2.svg', |
| | | url: 'https://element-plus.org/images/element-plus-logo.svg', |
| | | }, |
| | | ]); |
| | | |
| | | const handleRemove: UploadProps["onRemove"] = (file, uploadFiles) => { |
| | | const handleRemove: UploadProps['onRemove'] = (file, uploadFiles) => { |
| | | console.log(file, uploadFiles); |
| | | }; |
| | | |
| | | const handlePreview: UploadProps["onPreview"] = (uploadFile) => { |
| | | const handlePreview: UploadProps['onPreview'] = (uploadFile) => { |
| | | console.log(uploadFile); |
| | | }; |
| | | |
| | | const handleExceed: UploadProps["onExceed"] = (files, uploadFiles) => { |
| | | ElMessage.warning( |
| | | `The limit is 3, you selected ${ |
| | | files.length |
| | | } files this time, add up to ${ |
| | | files.length + uploadFiles.length |
| | | } totally` |
| | | ); |
| | | const handleExceed: UploadProps['onExceed'] = (files, uploadFiles) => { |
| | | ElMessage.warning(`The limit is 3, you selected ${files.length} files this time, add up to ${files.length + uploadFiles.length} totally`); |
| | | }; |
| | | |
| | | const beforeRemove: UploadProps["beforeRemove"] = ( |
| | | uploadFile, |
| | | uploadFiles |
| | | ) => { |
| | | return ElMessageBox.confirm( |
| | | `Cancel the transfert of ${uploadFile.name} ?` |
| | | ).then( |
| | | const beforeRemove: UploadProps['beforeRemove'] = (uploadFile, uploadFiles) => { |
| | | return ElMessageBox.confirm(`Cancel the transfert of ${uploadFile.name} ?`).then( |
| | | () => true, |
| | | () => false |
| | | ); |
| | | }; |
| | | // 打开弹窗 |
| | | const openDialog = (type:string,value:any,projectList: any,projectId:string) => { |
| | | dialogVisible.value=true |
| | | dialogVisible.value = true; |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | }else{ |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | fileList, |
| | |
| | | handlePreview, |
| | | handleExceed, |
| | | beforeRemove, |
| | | openDialog |
| | | openDialog, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref } from 'vue'; |
| | | import { FullScreen } from '@element-plus/icons-vue'; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const dialogVisible = ref(false); |
| | | const form = ref({}); |
| | | const openDailog=()=>{ |
| | | dialogVisible.value=true |
| | | dialogVisible.value = true; |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | form, |
| | | openDailog |
| | | openDailog, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | |
| | | </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 DailogSearch from './DailogSearch.vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue' |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue'; |
| | | export default defineComponent({ |
| | | components: { DailogSearch,DailogSearchUser }, |
| | | setup() { |
| | |
| | | const daiInpts = () => { |
| | | Show.value.openDailog(); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | Show, |
| | | daiInpts, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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> |
| | |
| | | /> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-tag v-for="tag in dynamicTags" :key="tag" class="mx-1" style="margin:5px" closable :disable-transitions="false" @close="handleClose(tag)"> |
| | | <el-tag |
| | | v-for="tag in dynamicTags" |
| | | :key="tag" |
| | | class="mx-1" |
| | | style="margin: 5px" |
| | | closable |
| | | :disable-transitions="false" |
| | | @close="handleClose(tag)" |
| | | > |
| | | {{ tag }} |
| | | </el-tag> |
| | | </el-col> |
| | |
| | | </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); |
| | |
| | | const handleClose = (tag: string) => { |
| | | dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | openDailog, |
| | |
| | | dynamicTags, |
| | | handleClose, |
| | | Delete, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | |
| | | </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'; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const dialogVisible = ref<boolean>(false); |
| | |
| | | }; |
| | | // 导航 |
| | | const activeName = ref('1'); |
| | | // 表格 |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | |
| | | return { |
| | | form, |
| | |
| | | openDailog, |
| | | activeName, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | |
| | | </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 DailogSearch from './DailogSearch.vue'; |
| | | import { ElMessage, ElMessageBox } from 'element-plus'; |
| | | import type { UploadProps, UploadUserFile } from 'element-plus'; |
| | |
| | | () => false |
| | | ); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | handleRemove, |
| | | handlePreview, |
| | | handleExceed, |
| | | beforeRemove |
| | | beforeRemove, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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> |
| | |
| | | /> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-tag v-for="tag in dynamicTags" :key="tag" class="mx-1" style="margin:5px" closable :disable-transitions="false" @close="handleClose(tag)"> |
| | | <el-tag |
| | | v-for="tag in dynamicTags" |
| | | :key="tag" |
| | | class="mx-1" |
| | | style="margin: 5px" |
| | | closable |
| | | :disable-transitions="false" |
| | | @close="handleClose(tag)" |
| | | > |
| | | {{ tag }} |
| | | </el-tag> |
| | | </el-col> |
| | |
| | | </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); |
| | |
| | | const handleClose = (tag: string) => { |
| | | dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | openDailog, |
| | |
| | | dynamicTags, |
| | | handleClose, |
| | | Delete, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import DailogSearch from './DailogSearch.vue' |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import DailogSearch from './DailogSearch.vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue'; |
| | | import { ElMessage, ElMessageBox } from 'element-plus'; |
| | | |
| | |
| | | () => false |
| | | ); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | handleRemove, |
| | | handlePreview, |
| | | handleExceed, |
| | | beforeRemove |
| | | beforeRemove, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <template> |
| | | <el-dialog v-model="dialogVisible" title="新建考核标准设定" width="60%" draggable> |
| | | <el-dialog v-model="dialogVisible" :fullscreen="full" title="新建考核标准设定" width="60%" 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"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import DailogKhS from './DailogKhS.vue' |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import DailogKhS from './DailogKhS.vue'; |
| | | export default defineComponent({ |
| | | components: { DailogKhS }, |
| | | setup() { |
| | |
| | | resource: '', |
| | | desc: '', |
| | | }); |
| | | const clickType=ref() |
| | | const clickType = ref(); |
| | | const openDailog = (type: boolean) => { |
| | | dialogVisible.value = true; |
| | | clickType.value=type |
| | | clickType.value = type; |
| | | }; |
| | | // 导航 |
| | | const activeName = ref('1'); |
| | |
| | | const daiInpt = () => { |
| | | Shows.value.openDailog(); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | clickType, |
| | | daiInpt, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | |
| | | </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 DailogAdd from './DailogAdd.vue' |
| | | // import DailogSearch from '../../../../components/DailogSearch/DailogSearch.vue' |
| | | export default defineComponent({ |
| | |
| | | const daiInpt = () => { |
| | | Shows.value.openDailog(); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | Shows, |
| | | daiInpt, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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> |
| | |
| | | /> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-tag v-for="tag in dynamicTags" :key="tag" class="mx-1" style="margin:5px" closable :disable-transitions="false" @close="handleClose(tag)"> |
| | | <el-tag |
| | | v-for="tag in dynamicTags" |
| | | :key="tag" |
| | | class="mx-1" |
| | | style="margin: 5px" |
| | | closable |
| | | :disable-transitions="false" |
| | | @close="handleClose(tag)" |
| | | > |
| | | {{ tag }} |
| | | </el-tag> |
| | | </el-col> |
| | |
| | | </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); |
| | |
| | | const handleClose = (tag: string) => { |
| | | dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | openDailog, |
| | |
| | | dynamicTags, |
| | | handleClose, |
| | | Delete, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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"> |
| | |
| | | </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" /> |
| | |
| | | </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() { |
| | |
| | | }, |
| | | ]; |
| | | // 安全目标指标弹窗 |
| | | 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, |
| | |
| | | Shows, |
| | | daiInpt, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import DailogAdd from './DailogAdd.vue' |
| | | import DailogSearch from '../../../../components/DailogSearch/DailogSearch.vue' |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import DailogAdd from './DailogAdd.vue'; |
| | | import DailogSearch from '../../../../components/DailogSearch/DailogSearch.vue'; |
| | | export default defineComponent({ |
| | | components:{DailogAdd,DailogSearch}, |
| | | setup() { |
| | |
| | | }, |
| | | ]; |
| | | // 新增弹窗 |
| | | const Show=ref() |
| | | const Show = ref(); |
| | | const daiAdd=()=>{ |
| | | Show.value.openDailog() |
| | | } |
| | | Show.value.openDailog(); |
| | | }; |
| | | // 安全目标指标弹窗 |
| | | 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, |
| | |
| | | Shows, |
| | | daiInpt, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-form :model="form" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '../../../../components/DailogSearchUser/index.vue' |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '../../../../components/DailogSearchUser/index.vue'; |
| | | export default defineComponent({ |
| | | components:{DailogSearchUser}, |
| | | setup() { |
| | |
| | | dialogVisible.value = true; |
| | | }; |
| | | // 开启用户弹窗 |
| | | const Show=ref() |
| | | const Show = ref(); |
| | | const openUser=()=>{ |
| | | Show.value.openDailog() |
| | | Show.value.openDailog(); |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | form, |
| | | dialogVisible, |
| | |
| | | Show, |
| | | openUser, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | <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-table :data="tableData" style="width: 100%"> |
| | | <el-table-column align="center" label="序号" type="index" width="80"/> |
| | | <el-table-column align="center" prop="date" label="责任部门"/> |
| | |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">关闭</el-button> |
| | | <el-button type="primary" @click="dialogVisible = false" |
| | | >确定</el-button |
| | | > |
| | | <el-button type="primary" @click="dialogVisible = false">确定</el-button> |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent,reactive,ref} from 'vue' |
| | | |
| | | import { defineComponent, reactive, ref } from 'vue'; |
| | | import { FullScreen } from '@element-plus/icons-vue'; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const dialogVisible = ref(false) |
| | | const tableData=ref() |
| | | const dialogVisible = ref(false); |
| | | const tableData = ref(); |
| | | const openDailog=(data:any)=>{ |
| | | dialogVisible.value=true |
| | | tableData.value=data |
| | | dialogVisible.value = true; |
| | | tableData.value = data; |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return{ |
| | | dialogVisible, |
| | | tableData, |
| | | openDailog |
| | | } |
| | | openDailog, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }) |
| | | }); |
| | | </script> |
| | |
| | | <template> |
| | | <el-dialog v-model="dialogVisible" title="Tips" width="50%" :before-close="handleClose"> |
| | | <el-dialog v-model="dialogVisible" :fullscreen="full" title="Tips" width="50%" :before-close="handleClose"> |
| | | <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"> |
| | |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent, ref, reactive } from 'vue'; |
| | | import { Plus, Delete, Upload, Download, Refresh, View, Search } from '@element-plus/icons-vue'; |
| | | import { Plus, Delete, Upload, Download, Refresh, View, Search, FullScreen } from '@element-plus/icons-vue'; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const dialogVisible = ref(false); |
| | |
| | | dialogVisible.value = true; |
| | | }; |
| | | const activeName = ref('first'); |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | | if (full.value == false) { |
| | | full.value = true; |
| | | } else { |
| | | full.value = false; |
| | | } |
| | | }; |
| | | return { |
| | | dialogVisible, |
| | | form, |
| | | openDailog, |
| | | activeName, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |