| | |
| | | <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"> |
| | |
| | | <el-col :span="11"> |
| | | <el-form-item label="设定人"> |
| | | <el-input v-model="form.name"> |
| | | <template #append> <el-button :icon="Search" @click="daiInpt" /></template> |
| | | </el-input> |
| | | <template #append> <el-button :icon="Search" @click="daiInpt" /></template> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="11" :offset="2"> |
| | |
| | | <el-input v-model="form.name" type="textarea" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="11" :offset="2" v-if="clickType"> |
| | | <el-form-item label="设定日期"> |
| | | <el-date-picker v-model="form.date1" type="date" placeholder="Pick a date" style="width: 100%" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="11" :offset="2" v-if="clickType"> |
| | | <el-form-item label="设定日期"> |
| | | <el-date-picker v-model="form.date1" type="date" placeholder="Pick a date" style="width: 100%" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick"> |
| | |
| | | </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, |
| | |
| | | Show, |
| | | daiAdd, |
| | | Shows, |
| | | clickType, |
| | | clickType, |
| | | daiInpt, |
| | | Search, |
| | | full, |
| | | toggleFullscreen, |
| | | FullScreen, |
| | | }; |
| | | }, |
| | | }); |