| | |
| | | <template> |
| | | <el-dialog v-model="dialogVisible" :before-close="resetForm" :fullscreen="full" title="新建考核项目" width="50%" draggable> |
| | | <el-dialog v-model="dialogVisible" :before-close="resetForm" :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-form :model="form" :disabled="disabled" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="类型"> |
| | |
| | | content: '', ////考核内容 |
| | | judgeStandard: '', ////评定标准 |
| | | }); |
| | | const disabled=ref(false) |
| | | const titles=ref() |
| | | const openDailog = (title: string, value: any) => { |
| | | dialogVisible.value = true; |
| | | titles.value=`${title}考核项目` |
| | | if (title == '查看') { |
| | | form.value = value; |
| | | disabled.value=true |
| | | }else if(title == '修改'){ |
| | | disabled.value=false |
| | | form.value = value; |
| | | } |
| | | }; |
| | |
| | | }; |
| | | return { |
| | | form, |
| | | disabled, |
| | | titles, |
| | | dialogVisible, |
| | | openDailog, |
| | | submitForm, |