import{S as n,cc as c,c$ as r}from"./index.e80c366d.js";import{c as l}from"./createRequset.bf5f5380.js";import{i}from"./isBeyondTime.e174d920.js";const o=n(new Date),p=o.format("YYYY-MM-DD"),d=o.subtract(29,"days").format("YYYY-MM-DD"),E={formItems:[{field:"date",type:"date_picker",trigger:"change",defaultValue:[d,p],otherOptions:{type:"daterange",startPlaceholder:"\u53D1\u8D77\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u53D1\u8D77\u7ED3\u675F\u65F6\u95F4",valueFormat:"YYYY-MM-DD",startProp:"start_date",endProp:"end_date"}}]},m=[{prop:"name",label:"\u90E8\u95E8\u540D\u79F0",_slot_:"name"},{prop:"tag_1",label:"\u5E93\u5B58"},{prop:"tag_2",label:"\u975E\u5E93\u5B58"},{prop:"tag_3",label:"\u54A8\u8BE2\u91C7\u53CD"},{prop:"tag_total",label:"\u603B\u8BA1"}],g={columns:m,root:!0,notPagination:!0,superUserNoAction:!1,notNeedCompanyFilter:!0,beforeRequestList(u){const{start_date:e,end_date:a}=u;return!e||!a?(c.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u65F6\u95F4\u533A\u95F4 "),r.EMPTY):i({message:"\u65F6\u95F4\u533A\u95F4\u4E0D\u80FD\u8D85\u8FC7 30 \u5929",start:e,end:a,len:30})?r.EMPTY:r.NEXT},handleData(u){if(!u)return[];const e=Object.keys(u).reduce((t,s)=>[...t,u[s]],[]),a=e.findIndex(({name:t})=>t==="\u603B\u8BA1");if(a!==-1){const t=e.splice(a,1);e.push(...t)}return e},apis:{httpList:l("sm")}};export{g as c,E as s};
