interface Iconfig{ /** 请求列表的接口*/ fetchFn:Function, /**用户可搜索的内容,select为下拉列表 */ serchList:Array<{label:String,value:String,select?:Array<{name:string,value:string|Number}>|String }>, /**table配置 */ tableList:Array, } import { useDictData } from '@/hooks/useDictOptions' import { apiSupervisionProjectLists } from '@/api/supervision_project' import { apiSupervisionParticipatingUnitsLists, } from '@/api/supervision_participating_units' import { apiSupervisionCheckItemLists } from '@/api/supervision_check_item' export const supervision_project:Iconfig = { fetchFn: apiSupervisionProjectLists, serchList: [ { label: '项目名称', value: "project_name" }, { label: '项目编号', value: "project_code" }, // { // label: '项目分类', // value: "project_type", // select: [ // { label: "是", value: 0 }, // { label: "否", value: 1 }, // ] // } ], tableList: [ { project_name: "项目名称" }, { project_code: "项目编号" }, { industry_text: "性质" }, { build_unit: "建设单位" }, { build_area_text: "建设区域" }, { address: "项目地址" }, { project_level_text: "项目等级" }, { total_investment: "总投资" }, { initiation_date: "立项日期" }, { contract: "关联合同" }, { contract_amount: "合同金额" }, { project_overview: "项目概况" }, { contract_content: "合同服务内容" }, { project_requirements: "项目要求" }, { remark: "备注" }, { supervision_department: "监管部门" }, { implementation_department: "实施部门" }, { project_department: "项目部" }, { engineering_status_text: "工程状态" }, { project_manager: "项目负责人员" }, { part_a_unit: "甲方单位" }, ] } export const supervision_participating_units:Iconfig = { fetchFn: apiSupervisionParticipatingUnitsLists, serchList: [ { label: '单位名称', value: "unit_name" }, { label: '资质等级', value: "qualification_grade" }, ], tableList: [ { unit_name: "单位名称" }, { unit_type_text: "单位类别" }, { qualification_grade: "资质等级" }, { telephone: "联系电话" }, { duty: "责任范围" }, ] } export const supervision_check_item:Iconfig = { fetchFn: apiSupervisionCheckItemLists, serchList: [ { label: '节点名称', value: "node_name" }, { label: '节点类型', value: "node_type", select:'check_item_node_type' }, ], tableList: [ { project_name: "项目名称" }, { node_name: "节点名称" }, { node_type_text: "节点类型" }, { node_code: "节点编号" }, ] }