import{b as e,k as l,l as a,s as t}from"./options-1de98036-1780912037814v=1.0.0.js";import{u as r}from"./useGetTagHook-60a2ed5a-1780912037814v=1.0.0.js";import{J as p,r as i,e as s,a as o,F as d,a1 as c}from"./index-d052b22f-1780912037814v=1.0.0.js";const{getProjectList:h,getTagGroupSpecialList:n,getFileList:_,getChanelList:m}=r(),u=(r,m,u=310,b)=>{const{proxy:f}=c(),y=p(),Y=i([{prop:"keyword",search:{el:"input",placeholder:"请输入项目名称/编号进行搜索"}},{prop:"build_progress",label:"项目进展",enum:e,search:{el:"select",placeholder:"请选择项目进展阶段"}},{label:"项目特色",prop:"tag_ids",enum:n,fieldNames:{value:"tag_id",label:"tag_id_str",children:"tag_id_arr"},search:{el:"cascader",props:{props:{multiple:!0},collapseTags:!0},placeholder:"请选择项目特色"}},{label:"项目类型",prop:"type_id",enum:h,search:{el:"select",placeholder:"请选择项目类型"}},{label:"项目性质",prop:"kind",enum:l,search:{el:"select",placeholder:"请选择项目性质"}},{label:"项目级别",prop:"level",enum:a,search:{el:"select",placeholder:"请选择项目级别"}},{label:"审核状态",prop:"status",enum:t,search:{el:"select",placeholder:"请选择审核状态"}},{label:"项目开始时间",prop:"start_time",search:{el:"date-picker",props:{type:"datetime",format:"YYYY/MM/DD hh:mm:ss",valueFormat:"x"},placeholder:"请选择项目开始时间"}},{label:"项目建成时间",prop:"build_time",search:{el:"date-picker",props:{type:"datetime",format:"YYYY/MM/DD hh:mm:ss",valueFormat:"x"},placeholder:"请选择项目建成时间"}},{label:"文件类型",prop:"file_type_ids_and",enum:_,search:{el:"select",props:{multiple:!0},placeholder:"请选择文件类型"}},{prop:"year",label:"项目年份",search:{el:"date-picker",props:{type:"year",format:"YYYY",valueFormat:"YYYY"},placeholder:"请选择项目年份"}}]);b&&(Y.value=[...Y.value,...b]);const g=i([{type:"index",label:"序号",width:70,fixed:"left"},{prop:"name",label:"项目名称",width:160,render:e=>s(d,null,[s(o("el-button"),{type:"primary",link:!0,onClick:()=>{w(e.row)}},{default:()=>[e.row.name]})])},{prop:"no",label:"编号",width:160},{prop:"type_str",label:"项目类型",width:160},{prop:"level_str",label:"项目级别",width:160},{prop:"company_area_str",label:"项目属地",width:160},{prop:"kind_str",label:"项目性质",width:100},{prop:"build_time",label:"建成并投入使用时间",width:170},{prop:"file_count",label:"文件数量",width:120,sortable:!0},{prop:"organ_unit_str",label:"创建单位",width:150},{prop:"start_time",label:"开工时间",width:150},{prop:"operator",label:"创建人",width:120},...r,{prop:"operation",label:"操作",fixed:"right",width:u}]);m&&g.value.unshift({type:"selection",fixed:"left",width:70});const w=e=>{y.push({name:"areaQueryProjecDetail",query:{type_id:e.type_id,project_id:e.project_id}})};return{columns:Y,tableColumns:g,dataCallBack:e=>(e.list.forEach((e=>{e.build_time=e.build_time?f.$dayjs(1e3*e.build_time).format("YYYY-MM-DD"):"",e.start_time=e.start_time?f.$dayjs(1e3*e.start_time).format("YYYY-MM-DD"):""})),e),paramCallBack:e=>{if(e.tag_ids&&e.tag_ids.length>0){let l=[];e.tag_ids.forEach((e=>{e instanceof Array?l.push(e[e.length-1]):l.push(e)})),e.tag_ids=l.join(",")}return e.file_type_ids_and&&e.file_type_ids_and.length>0&&(e.file_type_ids_and=e.file_type_ids_and.join(",")),e}}};export{u};
