微调下拉框,数据库字段
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user