| | |
| | | <el-row :gutter="24"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="数据类型" prop="dataType"> |
| | | <el-input v-model="formData.dataType" placeholder=""/> |
| | | <el-select v-model="formData.dataType" placeholder="请选择"> |
| | | <el-option |
| | | v-for="dict in getStrDictOptions(DICT_TYPE.SUGGEST_SNAPSHOT_DATA_TYPE)" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | <script lang="ts" setup> |
| | | import * as ConfigDetApi from '@/api/model/sche/suggest/snapshotConfigDet' |
| | | import {deleteIcon} from "@/api/model/mpk/icon"; |
| | | import {DICT_TYPE, getIntDictOptions, getStrDictOptions} from '@/utils/dict' |
| | | |
| | | defineOptions({ name: 'ConfigDetForm' }) |
| | | |
| | | const { t } = useI18n() // 国际化 |
| | | const message = useMessage() // 消息弹窗 |
| | | |
| | |
| | | dialogTitle.value = t('action.' + type) |
| | | formType.value = type |
| | | resetForm() |
| | | formData.confId = confId |
| | | formData.value.confId = confId |
| | | // 修改时,设置数据 |
| | | if (id) { |
| | | formLoading.value = true |