content.config.dc7a5a39.js 1.3 KB

1
  1. import{Z as n,au as l,bh as r}from"./index.1d5f2f42.js";import{c as i}from"./createRequset.a71f3020.js";import{i as p}from"./isBeyondTime.8b05db81.js";const o=n(new Date),c=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,c],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?(l.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u65F6\u95F4\u533A\u95F4 "),r.EMPTY):p({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:i("sm")}};export{g as c,E as s};