| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">区域类型</div> |
| | | <div class="val">{{ getDictLabel(formData.areaType, dictObj.areaType) }}</div> |
| | | <div class="val">{{ getDictLabel(formData.areaTypeKeys, dictObj.areaType) }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">关联场景</div> |
| | |
| | | </el-row> |
| | | </div> |
| | | <template #footer> |
| | | <el-button color="#2B2B4C" @click="handleCancel">关闭</el-button> |
| | | <el-button v-if="dialogMode != 'view'" color="#2B2B4C" @click="handleCancel">关闭</el-button> |
| | | </template> |
| | | </el-dialog> |
| | | </template> |
| | |
| | | |
| | | const formData = ref(initForm()) // 弹框显隐 |
| | | const visible = defineModel() // 弹框模式 |
| | | const dialogMode = ref('view') // ???? |
| | | const dialogMode = ref('view') // 弹窗模式 |
| | | const titleEnum = ref({ view: '查看' }) |
| | | const dictObj = inject('dictObj') |
| | | |
| | | console.log(formData.value, '9090') |
| | | console.log(dictObj.value, '8080') |
| | | |
| | | // 关闭弹框 |
| | | function handleCancel() { |
| | | visible.value = false |