| | |
| | | :showFooter="false" |
| | | @dlgClosed="closeDialog" |
| | | :closeOnClickModal="true" |
| | | |
| | | > |
| | | <el-form :model="item" ref="dialogFormRef" :rules="dialogFormRules" label-width="76"> |
| | | <el-form-item :label="colList[key]?.label" prop="key" v-for="key in Object.keys(colList)"> |
| | | <el-form-item :label="colList[key]?.label" :prop="key" v-for="key in Object.keys(colList)"> |
| | | <el-input readonly :modelValue="item[key]"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | |
| | | import type { FormInstance, FormRules } from 'element-plus'; |
| | | |
| | | import { computed, ref, watch } from 'vue'; |
| | | import { computed, ref } from 'vue'; |
| | | |
| | | |
| | | const props = defineProps(['item','colList']); |
| | | const props = defineProps(['item', 'colList']); |
| | | //#region ====================== 增加、修改记录操作, dialog init====================== |
| | | const dialogTitle = computed(() => { |
| | | return `记录详情`; |
| | |
| | | // prompt: [{ required: true, message: '请输入提示词', trigger: 'blur' }], |
| | | }); |
| | | |
| | | |
| | | //#endregion |
| | | |
| | | const closeDialog = () => { |
| | | dialogIsShow.value = false; |
| | | }; |
| | | |
| | | |
| | | </script> |
| | | <style scoped lang="scss"></style> |