微调下拉框,数据库字段

This commit is contained in:
sjl
2024-10-30 19:07:41 +08:00
parent 18b9ef9e51
commit d2d4153114
12 changed files with 203 additions and 67 deletions

View File

@@ -49,6 +49,8 @@ import PlanDialog from "@/views/plan/planList/components/PlanDialog.vue"; // 导
import Open from '@/views/plan/planList/components/PlanOpen.vue'
import { useViewSize } from '@/hooks/useViewSize'
import { useRouter } from "vue-router";
import { useDictStore } from '@/stores/modules/dict'
const dictStore = useDictStore()
const { popupBaseView, viewWidth, viewHeight } = useViewSize()
const openView = ref()
const planData = planDataList
@@ -100,19 +102,25 @@ const columns = reactive<ColumnProps<Plan.PlanList>[]>([
prop: 'test_State',
label: '检测状态',
width: 100,
search: { el: 'select', props: { filterable: true } },
enum: dictStore.getDictData('planTestState'),
search: { el: 'select', props: { filterable: true } },
fieldNames: { label: 'label', value: 'code' },
},
{
prop: 'report_State',
label: '检测报告状态',
width: 150,
search: { el: 'select', props: { filterable: true } },
enum: dictStore.getDictData('planReportState'),
search: { el: 'select', props: { filterable: true } },
fieldNames: { label: 'label', value: 'code' },
},
{
prop: 'result',
label: '检测结果',
width: 100,
search: { el: 'select', props: { filterable: true } },
enum: dictStore.getDictData('planResult'),
search: { el: 'select', props: { filterable: true } },
fieldNames: { label: 'label', value: 'code' },
},
{
prop: 'father_Plan_Id',