21
This commit is contained in:
parent
9f17e03c00
commit
a88f31e5e2
|
|
@ -62,7 +62,9 @@ async function loadOptions() {
|
|||
loading.value = true
|
||||
try {
|
||||
const res = await getDictItemsByTypeCode(props.type)
|
||||
console.log(`[DictSelect] 加载字典 ${props.type}:`, res.data)
|
||||
options.value = (res.data || []).filter(item => item.status === 1)
|
||||
console.log(`[DictSelect] 过滤后选项:`, options.value)
|
||||
} catch (error) {
|
||||
console.error(`加载字典[${props.type}]失败`, error)
|
||||
options.value = []
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态">
|
||||
<DictSelect v-model="queryParams.status" dict-type="booking_status" placeholder="请选择状态" clearable />
|
||||
<DictSelect v-model="queryParams.status" type="booking_status" placeholder="请选择状态" clearable style="width: 180px" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleSearch"><el-icon><Search /></el-icon>搜索</el-button>
|
||||
|
|
@ -122,7 +122,7 @@
|
|||
<el-tag :type="getStatusType(statusForm.currentStatus)">{{ statusForm.currentStatusName }}</el-tag>
|
||||
</el-form-item>
|
||||
<el-form-item label="新状态">
|
||||
<DictSelect v-model="statusForm.status" dict-type="booking_status" placeholder="请选择状态" style="width: 100%" />
|
||||
<DictSelect v-model="statusForm.status" type="booking_status" placeholder="请选择状态" style="width: 100%" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user